Alter Voucher using Modify Object - Sample TDL

Discussion in 'Tally Developer' started by admin, Apr 17, 2012.

    
  1. admin

    admin Administrator Staff Member


    this tdl helps you to Alter Voucher using Modify Object.

    Code:
    ;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara
     
    [#Form    : NRM Ledger Outstandings]
        Add    : Button    : Modify Parent
     
    [#Form    : DayBook]
        Add    : Button    : Modify Parent
     
    [#Report    : DayBook]
        Variable: SV Parent Name
     
    [Button    : Modify Parent]
        Key        : Alt+F4
        Title      : $$LocaleString:"Change Parent"
        Action List    : Accept Parent Name,Save Parent
        Mode        : Display
        Scope        : Selected
     
        [Button    : Accept Parent Name]
            Key            : Alt+F4
            Action        : Alter        : Accept Parent Name
            Mode        : Display
     
        [Key    :  Save Parent]
            Key    : Alt+F4
            Action    : Modify Object    : Narration    :  ##SVParentName
            Mode    : Display
            Scope    : Current 
     
     
     
    [Report    : Accept Parent Name]    ;;Auto Report
        Auto        : Yes
        Title        : $$LocaleString:"Remarks"
        Form        : Accept Parent Name
     
    [Form    : Accept Parent Name]
     
        Background      : @@SV_REPSTAT
        Parts          : Accept Parent Name
        Space Bottom    : 1
        Full Width      : No
        Full Height    : No
        Horizontal Align: Centre
        Vertical Align  : Centre
        Option            : Small Size Form
        Space Top        : 1
     
        [Part    : Accept Parent Name]
            Line            : Accept Parent Name
     
            [Line    : Accept Parent Name]
     
                Field        : Simple Prompt
                Right Field    : Name Field 
     
                Local        : Field : Simple Prompt        : Set as    : "Remarks :"
                Local        : Field : Name Field        : Lines        : 2
                Local        : Field : Name Field        : Max        : 600
                Local        : Field : Name Field        : SetAs        : $VoucherNumber
                Local        : Field : Name Field        : Variable    : SVParentName
                Local        : Field : Name Field        : Modifies    : SVParentName
                Local        : Field : Name Field        : Show Table: Always
                Space Top    : 1
     
     
    [Variable    : SV Parent Name]
        Type    : String
     
     
    
     

    Attached Files:

    Ras Raj likes this.


  2. Girdhar

    Girdhar Member


    Thank you
     


  3. Arun Prasath

    Arun Prasath Member



  4. Dhanapal Amulraj

    Dhanapal Amulraj New Member


    Is it possible to do this in Voucher screen itself, If possible please share the code
     


  5. hiteshhkj

    hiteshhkj Member


    hello sir
    is it possible to cusmize dot matrix printing setting in draft mode like fonts, page size etc
     


  6. Hari@Abco

    Hari@Abco New Member


    Useful !
     


  7. Vishal1419

    Vishal1419 New Member


    how do you explode a line on Modify Object?
     


  8. NSA

    NSA Member


    Sir,
    I was trying to make a custom button in Daybook to alter the details in supplementary forms of vouchers. I think, I am missing something in the coding. Can anyone please guide me?

    ;;-----------------Modification of Place of Supply-----------
    [#Report : DayBook]
    Variable: VARRCP StateName
    Variable: VARRCP CountryofResidence
    [Variable: VARRCP StateName]
    Type : String
    [Variable: VARRCP CountryofResidence]
    Type : String
    [#Form: Daybook]
    Add: Button: RCP Modify Place of Supply

    [Button: RCP Modify Place of Supply]
    Key : CTRL+5
    Title : $$LocaleString:"VCH Type Change"
    Action List : ActionRCPModifyPlaceofSupply, SaveVoucherAfterModification
    Mode : Display
    Scope : Selected Lines

    [Button:ActionRCPModifyPlaceofSupply]

    Key : CTRL+5
    Action : Alter : ActionRCPModifyPlaceofSupplyRpt

    [Button: SaveVoucherAfterModification]

    Key : CTRL+5
    Action:Modify Object:partyName[].PartyName:$PartyLedgerName
    Action:Modify Object:StateName[].StateName:##VARRCPStateName
    Action:Modify Object:CountryofResidence[].CountryofResidence:##VARRCPCountryofResidence
    Mode : Display
    Scope : Selected Lines
    [Report: ActionRCPModifyPlaceofSupplyRpt] ;;Auto Report
    Auto : Yes
    Title : $$LocaleString:"Please Insert Appropriate Changes"
    Form : ActionRCPModifyPlaceofSupplyForm

    [Form: ActionRCPModifyPlaceofSupplyForm]

    Background : @@SV_REPSTAT
    Parts : ActionRCPModifyPlaceofSupplyPart
    Space Bottom : 1
    Full Width : No
    Full Height : No
    Horizontal Align: Centre
    Vertical Align : Centre

    Space Top : 1

    [Part: ActionRCPModifyPlaceofSupplyPart]

    Lines : ActionRCPModifyCountryofResidenceLne, ActionRCPModifyStateNameLne

    [Line: ActionRCPModifyCountryofResidenceLne]

    Fields : Simple Prompt
    Right Fields: Name Field

    Local : Field : Simple Prompt : Set as : "Country :"
    Local : Field : Name Field : Variable : VARRCP CountryofResidence
    Local : Field : Name Field : Modifies : VARRCP CountryofResidence
    Local : Field : Name Field : Table : CMPDefault Countries, NotApplicable, NewCountryName, CountryShowMore
    Local : Field : Name Field : Show Table : Always

    Space Top : 1

    [Line: ActionRCPModifyStateNameLne]

    Fields : Simple Prompt
    Right Fields: Name Field

    Local : Field : Simple Prompt : Set as : "Select the governorates:"
    Local : Field : Name Field : Variable : VARRCP StateName
    Local : Field : Name Field : Modifies : VARRCP StateName
    Local : Field : Name Field : Table : List of Oman States
    Local : Field : Name Field : Show Table : Always
    Space Top : 1
     


  9. NSA

    NSA Member


    It is already resolve.............
     


Share This Page