Voucher create action

Discussion in 'Tally Developer' started by Kanti, Sep 6, 2016.

    
?

I want to extract the xml of a voucher which is been created deleted or modified and store it at a g

  1. code

    100.0%
  2. code

    0 vote(s)
    0.0%
  1. Kanti

    Kanti New Member


    I want to extract the xml of a voucher which is been created deleted or modified and store it at a given location.
    Is it possible ??
     



  2. Yes, you have to create a report in tdl which will give you this information in at one place and then export the report in xml to store the same at your desired location.

    Thanks!
    www.aaradhyaasolutions.in
     


  3. NAGARAJKMAR SUBRAMANIAN

    NAGARAJKMAR SUBRAMANIAN Active Member


    From Rel 4.8 New System event has been Introduced

    use this to call a function to write XML using this system event , Before Delete or After Delete

    Syntax

    [System : Events]
    <Label> : Before Delete Object : <Logical Condition Expr> +
    : <Action Keyword> : <Action Parameters>
    <Label> : After Delete Object : <Logical Condition Expr> +
    : <Action Keyword> : <Action Parameters>

    Sample Code

    [System : Event]
    BeforeStockItemDeletion : Before Delete Object : $$IsStockItem+
    : Call : BeforeDeleteObjectFunc
    AfterStockItemDeletion : After Delete Object : $$IsStockItem+
    : Call : AfterDeleteObjectFunc

    [Function : BeforeDeleteObjectFunc]
    00 : Log : "Before Delete Object Event starts here"
    10 : Log : $Name + “under the Stock Group” + $Parent + “is being +
    deleted by ”+ $$CmpUserName
    20 : Log : $MasterID
    30 : Log : "Before Delete Object Event ends here"
     
    Last edited: Sep 8, 2016


  4. Johar

    Johar Member


    Dear Nagarajkumar,

    That was nice to share :)
     


  5. Kanti

    Kanti New Member


    Thank you so much
    :)
     


Share This Page