Need help on TDL code to import xml data

Discussion in 'Tally Developer' started by shibsankar ghosh, May 22, 2020.

    
  1. shibsankar ghosh

    shibsankar ghosh New Member


    Hello Everyone,
    I am new in Tally TDL development. So wanted your help to create a TDL which would import XML file in Tally.

    Please find below my code

    [#menu: gateway of tally]

    Title : "Import XML"

    item : Import XML : Menu : Voucher Type

    [Menu : Voucher Type]

    Item : Journal Voucher : Browse :"D:\Tally Import XML\Journal Voucher.XML"
    Item : Payment Voucher : Browse :"D:\Tally Import XML\Payment Voucher.XML"

    With the above code, the XML file opens on web browser and does not get imported the data in Tally.
    What would be the syntax instead of "Browse" to import the XML file?
    Many thanks in advance.
    Best Regards,
     


  2. sivam

    sivam Active Member


    Hear Browse is not an Open Dialogue Box. It is used for Open a Link From Tally. If u Need Open Dialogue Box in Tally, Write an DLL and use it..
     
    shibsankar ghosh likes this.


  3. shibsankar ghosh

    shibsankar ghosh New Member


    Thank you so much for your reply @knsivan89.. Could you please help me on writing the dll which would import the xml file since i am new to TDL coding.
    Many thanks in advance.
    Best Regards,
     



  4. You need to call following function in menu. & not browse.

    [Menu : Voucher Type]

    Item : Journal Voucher : Call : Import Voucher:"D:\Tally Import XML\Journal Voucher.XML"

    [Function:Import Voucher]
    Parameter : FileNameWithPath : String

    20 : SET : ImportVoucher : @@IMXML
    50 : SET : ImportFile : ##FileNameWithPath

    60 : IMPORT : Vouchers : True
    70 : MSGBOX : "Status" :"JV Imported Succesfull"
     


  5. sivam

    sivam Active Member


    You ask me dll and said new for TDL.? I think Both are Different.
     


Share This Page