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
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