explode narration of daybook using toggle button

Discussion in 'Tally Developer' started by HAROON2015, Oct 23, 2019.

    
  1. HAROON2015

    HAROON2015 Member


    hi,
    trying to explode narration yes or no suing toggle button

    but no success
    hope some one will help
    Code:
    [#form : Ledger Vouchers]
    add:button : Vbutton
    
    
    [button: Vbutton]
        Key         : ctrl+t
        Title     : "NarrarionYesOrNo"
            Action     : Set : SetDecimalValuex : NOT ##SetDecimalValuex
    
    [Variable : SetDecimalValuex]
        type : Logical
    
    [System : Variable]
        SetDecimalValuex : no
    
    [system : formula]
    
    SetDecValx : If ##SetDecimalValuex then "ExplodeNarrFlag :Yes" else "ExplodeNarrFlag :no"  ;; use this formula in those fields
    
    [#Report: Ledger Vouchers]
    set:@@SetDecValx
    
    
    [#Report: Ledger Vouchers]
    set:@@SetDecValx
     


  2. ASHTAMOORTHY

    ASHTAMOORTHY New Member


    Code:
    [#form : Ledger Vouchers]
    add:button : Vbutton
    [button: Vbutton]
        Key         : ctrl+t
        Title     : "NarrarionYesOrNo"
           Action     :  Call: SetExlodeFlag
    [Function:SetExlodeFlag]
    04    :     If :  ##ExplodeNarrFlag ="Yes"
    05    :         SET: ExplodeNarrFlag : "No"
    10    :    ELSE
    15    :     SET:    ExplodeNarrFlag : "Yes"
    20    : END IF
    
     


  3. HAROON2015

    HAROON2015 Member


    thank you sir
     


Share This Page