Dear Members, I want to have a button in ledger vouchers which displays Either "Debit Entries Only", " Credit Entries Only", "All Vouchers". I believe this can be done using a variable but I am unable to frame the logic and code. Please guide me [#Form: Default] Add: Button: DebitCredits [Button: DebitCredits] Title: "DebitCredit" Key: Alt + W Action: What Should be the action? Also How to paste the code within Tags in the forum? Thank you
1- Refer ONLY to FORM : :Ledger Vouchers instead of Default... so it is available only in Ledger. 2 - Action : Set : {variableName} : "DefultValue" --- examine Report : Ledger Vouchers to find the variable name and its default value. 3 - In the totle bar of this forum's message box, find INSERT then select Code and then paste your code.
Sir, I tried this way [#Form : Ledger Vouchers] add:button : Dbutton [button: Dbutton] Key : ctrl+t Title : "Debit-Entries" Action : Set: OnlyDrVouchers : Yes [#Form : Ledger Vouchers] add:button : Cbutton [button: Cbutton] Key : ctrl+Y Title : "Credit-Entries" Action : Set: OnlyCrVouchers : Yes How to Use a Single Button To Toggle between "Dr", "Cr,","All"? Thank you for the guidance I am still not able to find the Insert button to post the code.
Sir, Then what modifications should be done to get either "Dr" or "Cr" . Once I Select "Cr" I am not able to get back to the Debit entries again later.
Use the below only: [#Form : Ledger Vouchers] add:button : Dbutton [button: Dbutton] Key : ctrl+t Title : "Debit-Entries" Action : Set: OnlyDrVouchers : Not ##OnlyDrVouchers
Wga What if we want to switch between DRentries and Creentries Using only 1 button? Possible to switch?
MENE BHI TRY KIYA OR DR CR 2 BATTON BANAYE [#Form : Ledger Vouchers] add:button : Dbutton [button: Dbutton] Key : ctrl+t Title : "Debit-Entries" Action : Set: OnlyDrVouchers : Not ##OnlyDrVouchers [#Form : Ledger Vouchers] add:button : Cbutton [button: Cbutton] Key : ctrl+Y Title : "Credit-Entries" Action : Set: OnlyCrVouchers : Not ##OnlyCrVouchers
Then [Button: Example] Key:Alt +Z Title: If ##Var Then "First Value" else "second value" Action: Set : Var: Not ##Var And After this Define Variable