Set By Default "No"

Discussion in 'Tally Developer' started by Hasan@123, May 27, 2020.

    
  1. Hasan@123

    Hasan@123 Member


    Dear Developers,
    i want this button to set by default "No".. I only want to activate it when i make it "Yes" otherwise by default this button should always remain "No".. How can i do that? Please check my code.

    [Button:CostDisable]
    Key:F4
    Action:Alter:CostDisable
    Title:Show/Hide Cost

    [Report:CostDisable]
    Object:Company
    Form:CostDisable


    [Form:CostDisable]
    Top Part:CostDisableTop
    Full Width:No
    No Confirmation:Yes
    Space Bottom: 3 MM
    Space Left: 4 MM
    Space Right: 4 MM
    Space Top: 3 MM

    [Part:CostDisableTop]
    Line:CostDisableTop

    [Line:CostDisableTop]
    Field:MEDIUM PROMPT,CostDisableTop
    Local:Field:MEDIUM PROMPT:Set as:"Show Cost Column"
    Space Bottom: 1 MM


    [Field:CostDisableTop]
    Use:LOGICAL FIELD
    Set as:$$Value
    Storage:CostDisable


    [System:UDF]
    CostDisable:Logical:1550
     



  2. [Button:CostDisable]
    Key:F4
    Action:Alter:CostDisable
    Title:Show/Hide Cost
     



  3. [Button:CostDisable]
    Key:F4
    Action:Alter:CostDisable
    Title:Show/Hide Cost
    Inactive: NOT $CostDisable:Company:##SVCurrentCompany

    I hope you got your solution.
     


  4. Hasan@123

    Hasan@123 Member


    It completely disable that button... not working
     


Share This Page