yes/ no --- button for prining of korecomment column

Discussion in 'Free Source Codes' started by bikash agarwal, Mar 22, 2024.

    

  1. hello Sir, can anyone help me in adding print option for created column

    Here i want to add button for print yes/no for korecomment column

    yes/ no --- button for printing of korecomment column - shown in attachment picture example


    ;-------------------------or this will be for display in party ledger for korecomment

    [#Line: DSP VchAccTitles]

    Add :Right Field : At Beginning : kkorecomment
    Local : Field : Default : Style : normal
    Local : Field : kkorecomment : Set As : "korecomment"
    Local : Field : kkorecomment : Width : 36
    Local : Field : kkorecomment : space RIGHT :4
    Local : Field : kkorecomment : Invisible : $$InPrintMode

    [#Line: DSP VchDetail]
    Add : Right Fields : Before : DSP Vchtype : kkorecomment


    [Field : kkorecomment]
    Use : Short Name Field
    Set as : $Allledgerentries.Korecomment
    Align : left
    Style : normal
    Width : If $$InPrintMode Then 3.8 Else 5 cms
    space left :0.3
    Border : Thin Left Right

    [#Collection:Vouchers of Ledger]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Daybook Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Vouchers of Group]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Specific Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Filtered Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection: Ledger Vouchers]
    Fetch : AllLedgerEntries,Korecomment,RRemarks

    ;---------------- end
     

    Attached Files:

    • 344.jpg
      344.jpg
      File size:
      106.4 KB
      Views:
      43


  2. Hems

    Hems Member






    [#Part: EI Consignee]

    Option:hksppthks:mad:@issales

    [!Part:hksppthks]
    Add: Line:Before:EI Consignee:ppthks

    [Line:ppthks]
    Field:simple prompt,ppthks

    Local : Field : Simple Prompt: Info : $$LocaleString:"Print your Field :"

    [Field:ppthks]

    Use: short name field
    Set as: "Yes"
    Storage:ppthks123
    Table : YesNoTable


    [System:UDF]

    ppthks123 :String:44650

    [System:Formula]
    Printppthks123: $ppthks123= "yes"

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [#Part:expinv totals]
    Add:Option:printppthks:mad:@Printppthks123


    [!Part: printppthks]

    Here your line and field.


    This way every voucher set for print yes or no.
     



  3. i want for ledger report ??
     


  4. Hems

    Hems Member


    Same way
    अपनी लेजर रिपोर्ट में 1 बटन ऐड कर लीजिए
    उस बटन से 1 नए वैरिएबल को yes no करवाये
    फिर अपने फील्ड में इन्विसिबल इस नए वैरिएबल के यस और नो की कंडीशन पर प्रिंटमोड में सेट कीजिये ।
     




  5. [#Form: ledger]
    Add: Button:printo_Korecomment

    [Button:printo_Korecomment]
    Key : Alt + k
    Action : Set : Printo_Korecomment : Not ##Printo_Korecomment
    Title : IF ##Printo_Korecomment then "printo kore -no" else "printo kore -yes"


    [Variable : Printo_Korecomment]
    Type : Logical
    Default : No
    Persistent : Yes

    [System : Variables]
    Printo_Korecomment : No

    [Line:ppthks]
    Field:simple prompt,ppthks

    Local : Field : Simple Prompt: Info : $$LocaleString:"Print your Field :"

    [Field:ppthks]

    Use: short name field
    Set as: "Yes"
    Storage:ppthks123
    Table : YesNoTable


    [System:UDF]

    ppthks123 :String:44650

    [System:Formula]
    Printppthks123: $ppthks123= "yes"

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    [#Part:expinv totals]
    Add:Option:printppthks:mad:@Printppthks123


    [!Part: printppthks]




    [#Line: DSP VchAccTitles]

    Add :Right Field : At Beginning : kkorecomment
    Local : Field : Default : Style : normal
    Local : Field : kkorecomment : Set As : "korecomment"
    Local : Field : kkorecomment : Width : 36
    Local : Field : kkorecomment : space RIGHT :4
    Local : Field : kkorecomment : Invisible : $$InPrintMode

    [#Line: DSP VchDetail]
    Add : Right Fields : Before : DSP Vchtype : kkorecomment


    [Field : kkorecomment]
    Use : Short Name Field
    Set as : $Allledgerentries.Korecomment
    Align : left
    Style : normal
    Width : If $$InPrintMode Then 3.8 Else 5 cms
    space left :0.3
    Border : Thin Left Right

    [#Collection:Vouchers of Ledger]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Daybook Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Vouchers of Group]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Specific Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection:Filtered Vouchers of Company]
    Fetch : AllLedgerEntries,Korecomment,RRemarks
    [#Collection: Ledger Vouchers]
    Fetch : AllLedgerEntries,Korecomment,RRemarks


    please help hems sir
     


  6. Hems

    Hems Member


    Ye button ledger me add hua ya nahi check kr lena.
    [Form : ledger vouchers]
    Ho skta hai.


    Code:
    [#Form: ledger]
    Add: Button:printo_Korecomment
    
    [Button:printo_Korecomment]
    Key : Alt + k
    Action : Set : Printo_Korecomment : Not ##Printo_Korecomment
    Title : IF ##Printo_Korecomment then "printo kore -no" else "printo kore -yes"
    
    
    [Variable : Printo_Korecomment]
    Type : Logical
    Default : No
    Persistent : Yes
    
    [System : Variables]
    Printo_Korecomment : No
    
    
    
    [#Line: DSP VchAccTitles]
    
    Add :Right Field : At Beginning : kkorecomment
    Local : Field : Default : Style : normal
    Local : Field : kkorecomment : Set As : "korecomment"
    Local : Field : kkorecomment : Width : 36
    Local : Field : kkorecomment : space RIGHT :4
    Local : Field : kkorecomment : Invisible : IF ##Printo_Korecomment and  $$InPrintMode then "yes" else "no"
    
    [#Line: DSP VchDetail]
    Add : Right Fields : Before : DSP Vchtype : kkorecomment
    
    
    [Field : kkorecomment]
    Use : Short Name Field
    Set as : $Allledgerentries.Korecomment
    Align : left
    Style : normal
    Width : If $$InPrintMode Then 3.8 Else 5 cms
    space left :0.3
    Border : Thin Left Right
    Invisible : IF ##Printo_Korecomment and  $$InPrintMode then "yes" else "no"
     


  7. Hems

    Hems Member


    Bikash ji
    I m not sir

    Me bhi aapki tarah hi learner hu.
     



  8. ok hems :)

    ... but this button showing ?? like this ... jenny helped me

    [#Form: Ledger Vouchers]
    Add: Button[​IMG]rinto_Korecomment
    [#Form : DayBook]
    Add: Button[​IMG]rinto_Korecomment
    [Button[​IMG]rinto_Korecomment]
    Key : Alt+J
    Action : Set : Printo_Korecomment : Not ##Printo_Korecomment
    Title : IF ##Printo_Korecomment then "printo kore -no" else "printo kore -yes"
     
    Last edited: Mar 23, 2024


  9. Hems

    Hems Member




    Maine bataya apko

    [Form: ledger vouchers ]

    Hoga try this
     



  10. alt + j was also error // yes you told ok
     


  11. Hems

    Hems Member


    Ledger open karne pr
    Jo key tally walo ne pahle Se di hui hoti hai.
    Wo hum use nhi kr sakte hai.

    Aap koi dusri key upyog kre.

    Alt + f

    Kr lijiye
     




  12. Jenny

    Jenny Active Member


    First go thru basic knowledge of code...what exactly u want and what is the use for it...just install tally devloper and read...u got it..
     



  13. :D:D little little
     


Share This Page