Change Caption

Discussion in 'Tally Developer' started by Anand Sharma, Aug 10, 2019.

    
  1. Anand Sharma

    Anand Sharma Member


    I Want To Change Caption As per User Requirement
    But Code Not Working
    Plz Help

    [#Menu:Gateway of Tally]
    Add:Item:Before:mad:@LocQuit:Change Caption:Alter:Caption

    [Report:Caption]
    Form:Caption
    Object:Company

    [Form:Caption]
    Part:Caption

    [Part:Caption]
    Line:Caption

    [Line:Caption]
    Field:Caption

    [Field:Caption]
    Width: 40
    Max:40
    Storage:Caption

    [#Line: LEDDesc]
    Field : Short Prompt, LEDDesc
    Invisible : NOT ##LEDDescription
    Local : Field: Short Prompt : Set as : @@Caption

    [System:UDF]
    Caption:String:25000

    [System:Formulas]
    Caption : #Caption
     


  2. Ria

    Ria Member


    Change the formula :

    [System : Formulas]

    Caption : $Caption:Company:##svCurrentCompany


    Why do you have a UDF when you are not even using it?
     


  3. Anand Sharma

    Anand Sharma Member


    Thank You Ria Man..... Thank you Very Much.........
     


  4. Anand Sharma

    Anand Sharma Member


    But Shortcut Creation Not Working :

    [#Menu:Gateway of Tally]
    Add:Item:Before:mad:@LocQuit:Create Shortcut:Alter:Shortcut
    Button:BSShortcut

    [Report:Shortcut]
    Form:Shortcut
    Object:Company:##SVCurrentCompany

    [Form:Shortcut]
    Part:Shortcut


    [Part:Shortcut]
    Line:Shortcut

    [Line:Shortcut]
    Field:Medium Prompt,Shortcut
    Local:Field:Medium Prompt:Info:"Shortcut Key Name : "

    [Field:Shortcut]
    Width:50
    Max:50
    Storage:Shortcut

    [System:UDF]
    Shortcut:String:20005

    [Button:BSShortcut]
    Action:Display:mad:@FnShortcut
    Key:Ctrl+B

    [System:Formulas]
    FnShortcut:$Shortcut:##SVCurrentCompany
     


  5. Ria

    Ria Member


    I am not able to understand the purpose of this code...

    "$" is used to get the value from a method or UDF, the way you have used it is incorrect.

    If you only want the display the report where you are storing the shortcut, you should do this:

    [Button : BSShortcut]
    Action : Display : Shortcut

    Your formula is wrong, although it is not of any use right now.

    [System:Formula]
    FnShortcut : $Shortcut:Company:##svCurrentCompany

    You should try to understand the code, not just put things in without purpose.
     


  6. Anand Sharma

    Anand Sharma Member


    Ria Ji, Thanks For Replay

    Actually I Want To Create Shortcut Key. User Define Shortcut Key As Per His Requirement & Use Any Time, Any Report

    I Want To Store Report Name Like Balance Sheet, Ledger & Use As per Requirement But Code Not Working



    Any Suggestion
     


  7. Ria

    Ria Member


    Sorry, I have no idea about it...
     


  8. teja varma

    teja varma Active Member


    if you want a shortcut key for any forms in the tally:

    use this:
    Code:
    ;;;;
    
    [#menu:GatewayofTally]
    add:button:Shortcut
    
    [#Form:Default]
        Add:Button:Shortcut
      
    [Button:Shortcut]
        Title:Shortcutname
        Key:ctrl+t
        Action:Display:BalanceSheet        ;;(report  name)


    you have replace the report with your udf or variable
    :) happy coding
     


  9. Ria

    Ria Member


    I think he wants the key and report name as variables, which can be modified by the user...
     


  10. teja varma

    teja varma Active Member


    no we cannot directly manipulate the button key and action at run time it is only possible at compile time(at the time of development)
     


Share This Page