Customization using Productivity Suites - Form attribute 'XML Map' for repeating data

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

         
  1. admin

    admin Administrator Staff Member


    [​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!
     
    Md Nayeem Akhtar and Ras Raj like this.


  2. Md Nayeem Akhtar

    Md Nayeem Akhtar New Member


    Dear Admin,
    BEST WISHES OF THE DAY !!!!!
    Sir Is it possible to customize sales invoice using xmlmap without the help of tally developer 9, only by note pad.
    please clear my points as soon as possible
    thanks and regards
     


  3. Amit Kamdar

    Amit Kamdar Moderator Staff Member


    Yes it is possible.

    One needs Tally Developer only as a reference point and to compile TDL modules.

    A notepad's .txt can also work seamlessly in tally.
     


  4. Md Nayeem Akhtar

    Md Nayeem Akhtar New Member


    Dear Admin,
    BEST WISHES OF THE DAY !!!!!
    Sir
    seeing ur video i hv developed /copied the data but unfortunately its not working. maybe i hv gone wrong in some places.
    So i kindly request u to please go through the tdl i am sending and suggest me its remedy as soon as possible.
    thanks and regards
     

    Attached Files:



  5. Md Nayeem Akhtar

    Md Nayeem Akhtar New Member


    Dear Admin,
    BEST WISHES OF THE DAY !!!!!
    Sir
    I am still waiting for my query posted above with attachment.
    thanks and regards
     


Share This Page