How to execute TDL code?

Discussion in 'Free Source Codes' started by Abisha, Jun 14, 2023.

    
  1. Abisha

    Abisha New Member


    I'm trying to export or import data in JSON format with the given reference: https://help.tallysolutions.com/art...ion-capabilities/json_based_export_import.htm
    I was struggling to execute the sample code snippet provided by TallySolution.

    Steps done:
    I created one new project with name My First TDL, and under that, I created one text file with name MyFirstTDLtxt.
    Set the output path location (Created empty Json file)
    While executing, Tally is open in developer mode, but nothing happens.

    Please refer the attachments and help to execute the TDL code:(
     

    Attached Files:

    Last edited: Jun 14, 2023


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In TALLY -- press Ctrl+Alt+T and then press F4 key.

    Select or type the full path to your TXT file here and SET LOAD to yes.
     


  3. Sai Vineeth

    Sai Vineeth Active Member


    If you're executing directly from tally prime developer, you no need to load TDL again
    Nothing is happening because you defined function, but you never called it.

    Instead of jumping directly into functional code try reading this TDL Components (tallysolutions.com) and refer samples provided in Developer Installation folder and reproduce them.
    or specifically samples related to JSON.
     
    Last edited: Jun 14, 2023
    Abisha likes this.


  4. Abisha

    Abisha New Member


    Thank you for the solution:)
     
    Sai Vineeth likes this.


Share This Page