TDLBytes #5 : Easy customization for swift delivery

Discussion in 'Tally.Developer 9 Release 6.0: Videos & TDL Bytes' started by admin, Nov 7, 2015.

         
  1. admin

    admin Administrator Staff Member


    [​IMG]
    [​IMG]
    Easy customization for swift delivery
    TDLByte #5
    [​IMG]
    Dear Developers,
    Further to previous TDLByte #4, that explained the form attribute 'XML Map', we will explain how you can use XML Map to print or export repeating data to productivity suites.

    Feature
    Customization using Productivity Suites
    Concept
    Form attribute 'XML Map' for repeating data
    How to print or export repeating data to Productivity Suite?
    Use XML Map with its 3rd parameter!
    (Considering current object context to be voucher object, with 4 inventory entries)
    Code
    [​IMG]
    To repeat the details of Inventory entries, specify the third parameter of XML Map
    which is the collection name. Just pick a method from the collection that has to be repeated and define a XML Map for the same.
    Source Document Template
    [​IMG]
    Specify the token which is defined as XML Map in the source document at the right place in the line which has to be repeated. Once the token is specified, the system creates as many lines as the objects of the collection. Each repetition of the line is associated with an object of the collection.

    Any token specified in that line will get evaluated in the context of the object it is associated with.


    [​IMG]
    ↓
    Default methods are available in Inventory entry object.
    Therefore, there is no need to define XML Maps for them

    Note: In '$Discount %', $Discount is the default method. Since discount has to be displayed in %, the percentage (%) symbol is appended to the method.

    Output
    [​IMG]
    ↓
    4 lines for 4 objects in inventory entries
    Where is it used?
    The form attribute 'XML Map' is used to print VAT forms, 'DL_CST_Form 4.ods' (Form 4 of Delhi CST), and 'DL_DVAT_Form 16_Annexure 30.ods' (Annexure 30 of Form 16 of Delhi VAT) in Tally.ERP 9 Release 5.0.
    Stay tuned!
     


Share This Page