Import Multiple xml file at a time

Discussion in 'Tally Developer' started by skumar, Feb 18, 2013.

    
  1. skumar

    skumar New Member


    Dear Experts

    It is possible to import the multiple xml file at a time. suppose a folder contains 5 xml file. i need to import these 5 files to import with out manual interaction.


    With Regards
    Senthil kumar.B
     
    Amol Ashok Bhalgat likes this.


  2. admin

    admin Administrator Staff Member


    You can use directory as data source and make a collection.

    Write a function to read all the files in that collection and start importing :)
     


  3. skumar

    skumar New Member


    Dear Admin

    Can you give the sample coding .
     


  4. admin

    admin Administrator Staff Member


    Check Tally.Developer 9 Sample TDL's . this program is there in that sample TDLs.
     


  5. shruti

    shruti New Member


    Is it possible to import the multiple xml file at a time.....Plz give the code i m not able to get sample code.I am trying it using .tdl extension but not getting.plz help its urgent
     
    Last edited: Aug 8, 2014


  6. Maulik Patel

    Maulik Patel Active Member


    Dear Shruti,
    You can create a collection like
    Code:
    [Collection: MLK File Collection]
       
        Data Source : Directory    : <Your Directory Path>
        Filter        : MLKXMLFiles
    
        Fetch        : $Name
    [System : Formula]
       MLK XML File   :  NOT $$IsDirectory:$Name AND $Name CONTAINS ".xml"
        
    After this collection create a funciton like
    Code:
    [Function: MLK XML File]
       
        Variable     : MLK File Path     : String
    
        00    : WALK COLLECTION : MLK Direcotry Colleciton
        10    : ;;wirte your code here to import your files one by one. $Name will contain file name.
        99    : END WALK
     
    khushbu likes this.


  7. shruti

    shruti New Member


    Thanks ....
     


Share This Page