You dont have javascript enabled! Please enable it! Structure of a TDL Code
You cannot view this unit as you're not logged in yet.

92 thoughts on “Structure of a TDL Code

  1. Prasanna Pathak says:

    please explain uni date field again didn’t get any result of it report is blank at that place

    1. Hello Prasanna,

      Uni Date field universal date Field. When you set a field as a uni date field, the field will display the value in a date format.
      Please post your code in the DropBox Folder in a .txt file. Give a name like Prasanna.txt to the file
      Then, I will check your code and will explain to you what was the issue

  2. Anirban Bhattacharya says:

    I’ve defined Uni Date Field as follows:

    [Field : My 2nd Field]
    Use : Uni Date Field
    Set as : “15081947”
    Color : green

    but it doesn’t work.
    Please resolve Sir.

    1. You can’t define a uni date Field that way.

      Type it as :
      [Field : My 2nd Field]
      Use : Name Field
      Set as : “15081947”
      Color : green

  3. Adarsh Agarwal says:

    GEtting error in my First.txt posted in the folder Adarsh,Pathankot in the drop box.
    Guide us to correct the error

    1. Definition name should start with an alphabet only! If you give a name like 2nd line or 3rd line, it won’t work so change the definition to secondline, third line

      My Suggestion is that our code don’t work, we should go to the minimum level. For e.g. when you have 3 lines and it won’t work then try by disabling the other two lines and test, once that is done that enable the other line/code and test and if that don’t work that means you have the issue with a particular line/definition so now change the name of that definition and it will help for sure

  4. Srikanth Kamath says:

    [Line:mkrline]
    field : ranafield

    [Field : ranafield]
    Use : Uni Date Field

    this does not show in the form report. can you check the code, either the “set as” is missing and even if ‘Set As” is set to “1234” does not show up in the form / report.

  5. Srikanth Kamath says:

    btw “right click disabled” is of not much consequence because i can still copy the same, but with a work arround. but while commenting its easy to copy paste the code instead of typing the lines..?

  6. Hanif shaikh says:

    Please explain what is wrong with 3rd line ?
    How to display Number without comma ?

      1. NILESH TAJANE says:

        HOW MANY TYPES OF FORMATS AVAILABLE TO MODIFY & WHER I CAN GET THIS LIST

        1. That depends on the nature of reports, forms or parts you wanted to amend.
          There is around more than 2 lac default definitions.
          I suggest, you start learning the chapters and slowly you will get a better idea and I may be able to understand your question more precisely.

  7. Bhavin Vora says:

    Sir file saved in dropbox “exercise structure code TDL.txt”, else everything is displaying but uni date Field is not showing anything, please explain.

    1. Uni Date Field is a Property of the Voucher Object so can’t be displayed in a blank report this way.

      So, change your field type and use something else. We will cover that in future

  8. ankitkiran says:

    COLOUR AND DATE NOT COMING PLEASE SEE THE CODE IN DROP BOX 2ND TDL

    1. Hello Ankit,

      There are some small mistakes in your code.
      Please check my remarks in your tdl code file.
      If you face any issue, please give me a TeamViewer Session.

  9. What is the difference between “Item” and “Key-Item”?

  10. Manish Chheda says:

    C:\Users\admin\Dropbox\Tally Mentors Folder(Tally TDL)\Manish Chheda\Multiple Lines.txt
    Screen Shot file name:Screen Shot 1

  11. Manish Chheda says:

    Hello Sir,

    Kindly check the Screen shot uploaded on 5th August to move forward.

  12. Manish Chheda says:

    I could not see the result of
    [Line:mkrline]
    Field:ranafield
    [Field:ranafield

    And could not understand the purpose of above 3 lines

  13. Date is not displayed
    pls guide me
    code is in the drop box named second.txt

    1. Hi At the report level date will not work that way. I suggest you use a name field or number field to display your text.

  14. Shashi Bhushan Singh says:

    Dear Sir,
    Good Morning
    I Am shashi Bhushan from Bhubaneswar
    I had tried to Unit 5 I have completed up to set as ” Hello Mahendra”
    after that I Couldn’t Understand
    I am showing from which line
    [Part: My Fisrt Part]
    Line: My1stLine, My 2nd Line, mkrline………………………..
    please Guide me sir.

  15. Sir

    i have add my screenshot can you pls go through it and advice

    can you pls explain me what is the use of mkrline i am not able to understand this

    1. Hello Dixit,

      Mkrline is just name of line. you need to give name to field, form, parts, reports line etc.
      It is something like as your name is Dixit how can you explain what is the use of your name is Dixit?
      So there is no use it is just for the identification purpose.
      WE need reports, Form, Part, line and field and we need to give them an unique number.

  16. Giridharan Varadharajan says:

    Giridharan Varadharajan
    saivrg59@gmail.com
    TDL codes for my Report and screen shot of output in tally is being shared with you.
    For Your Kind information

    1. Hello,
      You have to save your codes/images in the Dropbox folder which I shared with you. You don’t need to share your file with me.
      Please check your mail and accept the invitation from me
      that will add the TM Student folder to your dropbox there will be one folder in your name. You have to save your code in that folder only.

  17. Virat Mehta says:

    when i try to do date code but in tally no date show so whats the reason for this date

    1. In any party master in Tally press f12 set contact details to yes and save the form. It will enable the contact in the master.

  18. Dear Rana,
    I have completed this unit and sent you screen shot in word file by drop box. but i could not get uni date field in third line. Please send the correct field description.

    1. hello bsn,

      Your Dropbox folder is empty. There is no file.
      And uni date field you can’t display in a blank report.
      use a numberic or a text field only. because Unit date field is just a field type

  19. gunaaji74 says:

    Sir, This unit
    whats mean by Report
    whats mean by Form
    Whats mean by parts
    Whats mean by Lines
    Whats mean by Fields
    and also ‘use’ set as’
    above those meaning tell in simple way, because we cant understand Pure english

    1. Hello Guna,
      There is nothing to understand
      TAlly needs a report
      Reprot needs a form
      Form Needs a part
      Part needs a line
      line needs a field
      and field contains the data

      You don’t need to understand them

      you only have to memorise this simple things.

      Set as very simple
      It is something like your name is set as : “guna and mine name is set as “Mahendra”

      I suggest you just write the codes and look how it works.

      Because this things are self explanatory and I am not sure how to explain them in the simplex way?

  20. code and screen shot is uploaded in dropbox.

    CA Manish Ojha
    8275058999

  21. knbestsolution says:

    i had given number field only for the mob number
    but is showing with comma
    why?

  22. Yogesh Kanojia says:

    Hi Sir,

    Greetings..!!!

    I Just joined the course, My folder is “Shiv Yogesh” in the Dropbox. Please check my first coding.

    Yogesh
    Dehradun

    1. Hello Yogesh,
      Sure, I will check it in evening.
      But I suggest you test it and ensure that it is working fine with Tally if not then message me your Team Viewer details and I will resolve the issue.

      1. Yogesh Kanojia says:

        Hi Sir,

        Greetings…!!!

        I’d checked & run the code in Tally it is working fine Sir.

        Thankyou Sir.

  23. mominsahiil says:

    Hello sir,
    uploaded codes and screenshot(3 lines.txt), mobile number treated as amount and mkrline not display any results, even if i tried both of your suggestions “Name and Number Field”
    kindly guide me.

    Thank you.

    1. Hello Sahil,

      I corrected your codes. Please check the same.
      you can put “” with set as only to display the text/string or words
      If you put set as ” ” 87876″ or to a date field then it will be treated as a string and hence it won’t display the result properly
      So, it will be something like
      [Field : MyField ]
      Use : number Field
      set as :9426407469 ;; No need to put Number between double quote ” ”
      Format : “No Comma, No Zero”
      Now, it will display as number

  24. Aalap Shah says:

    Dear Sir

    I have written below code .
    [#Menu:Gateway of Tally]
    Add:Item:LR Entry Details:Display:LR Info Report
    [Report:LR Info Report]
    Form:LR Info form
    [Form:LR Info form]
    Part:LR Info Part
    [Part: LR Info Part]
    Line: LR Info1 Line, LR Info2 Line, LR info3 Line
    [Line: LR Info1 Line]
    Field: Semi Field, Big Field
    [Field: Semi Field]
    Use: Name Field
    Set as: “Hello this is semi field”
    [Field: Big Field]
    Use: Number Field
    Set as:9033880612
    [Line: LR Info2 Line]
    Field: newfield
    [Field: newfield]
    Use: Name Field
    Set as: “This is second line field”
    Color: red
    [Line: LR Info3 Line]
    Field: galaxyfield
    [Field: galaxyfield]
    Use: Uni Date field

    But date is does not display .

    i will share screenshot on drop Box Sir

  25. madhupandat says:

    Date Field Defined. but no Display any Date format on screen

  26. Rakesh Nakade says:

    Hi Sir code was executed without any error however the did not show the value for 3rd Line

    Below is code
    [#Menu: Gateway of Tally]
    Add: Key Item: MyMultiLine : H : Display : MyMultiLine Report

    [Report: MyMultiLine Report]
    Form: MyMultilineForm

    [Form:MyMultilineForm]
    Part: MyMultilinePart

    [Part: MyMultilinePart]

    Line: My1stLine,My2ndLine,My3rdLine

    [Line:My1stLine]
    Field:Semifield, BigField
    [Field:Semifield]
    Use: Name Field
    Set as:”This is the First Semifield”

    [Field:BigField]
    Use: Number Field
    Set as: “+919890467399″
    [Line:My2ndLine]
    Field:NewField
    [Field:NewField]
    Use: Name Field
    Set as:”This is the Second Line”
    Color: red
    [Line:My3rdLine]
    Field: DOB
    [Field:DOB]
    Use: Uni Date Field
    Set as: “24-Aug-1985”
    Color: blue

  27. Nitish Chhabra says:

    not getting date while entering the field use: Uni Date Field

  28. Silambarasan Ponnusamy says:

    Sir,

    Date field not shown in output.

    I am using the code for that is:

    Use: Uni Date Field

  29. Silambarasan Ponnusamy says:

    Dear Sir,

    I have practiced the above samples and more lines, more fields.

    I want to know the difference between part and line, because if new field under new part also will be added as next line as output and new field of a line also will be displayed as next line as output.
    Please clarify with some examples.

    And date field, you have told to use Uni Date Field. after this have to set date as “05/04/2020” or date will be automatically shown from tally?

    Pls clarify the above it will be helpful to move to the next units.

    1. I am not sure what do you mean by a new field added to part as a next line?
      Can you explain me what do you mean?

      Part is a part and line are line there is no question of any comparision.
      The structure of TDL is
      Report
      Form
      Part
      line
      and field and it is straightly simple.
      So, not sure what confusion you are having

      and no, it won’t take the date as automatic. you have to set the date hard coded.
      uni date is not a date but it is a date type.
      you don’t have to understand everything from just a few chapter.
      I can understand you may have many confusion but that’s the reason that we don’t have to understand everything at this moment.
      What we need is to get ourselves familiarise with the coding, use them, test it and move to the next unit because slowly everything will become clear to us.

  30. Silambarasan Ponnusamy says:

    Dear Sir,

    One more doubt i have. I have practicing multiple lines and fields, parts. but if i use multiple forms it will not displayed in output screen. pls clarify sir.

  31. seema kasliwal says:

    Uni Date Field is not working
    [Field: My Hello TDL Field]
    ;Use: name field working
    ;Set as: Hello! Seema Welcome you in TDL world working
    Use: Uni Date Field blank box display
    ;Set as: 17/4/2020

  32. seema kasliwal says:

    [Field: My Hello TDL Field]
    ;Use: name field
    ;Set as: Hello! Seema Welcome you in TDL world
    Use: Uni Date Field
    Set as: “17/4/2020”
    it is working like this

  33. SAMBHAJI SHINDE says:

    third line in my first report does not display
    please clear my querry

  34. camuralis says:

    Sir, Screenshot saved in Dropbox folder named “S Murrali”. Mail id “camuralis@gmail.com”

      1. camuralis says:

        Yes it is giving. Only the Phone number is displayed in currency format with commas.

  35. Mujeeb Chembakasseri says:

    Uni Date field has no impact in program, please check file Name : 20062021

    1. It will not have any effect
      so use a name field
      Or you can try it through a system date
      [Field : my field]
      Use : Uni Date
      Set as :$$MachineDate

      Since there are no objection associated at the report so, a dyanamic date can’t be dispalyed at the report which we coded in the chapter
      Alternateively you can print it as a string also

      [Field : my date]
      Use : Name Field
      set as : “01-01-2021”

  36. Suryanarayana Kollepara says:

    Sir, I have created above code … but it shown comma between mobile No’s and shared folder name surya narayana in drop box

    1. add Format :”No Comma” to your field

      Field: Big field]
      Use: Number field
      Set as: “07207736225”
      Format : “No comma”

  37. Suryanarayana Kollepara says:

    surya narayana
    raja.kollepara@gmail.com

    [#Menu:Gateway of Tally]
    Add:Item:tdl report:Display:tdl report
    [Report:tdl report]
    Form:my first form

    [Form:my first form]
    Part: my first part

    [Part: my first part]
    Line: my first line, my second line,suryaline

    [Line: my first line]
    Field:semi field,Big field

    [Field:semi field]
    Use:Name field
    Set as:” surya narayana”

    [Field: Big field]
    Use: Number field
    Set as: “07207736225”

    [Line: my second line]
    Field:new field
    [Field: new field]
    Use: name field
    Set as: “Raja”
    Color:Green

    [Line: suryaline]
    Field:ranafield
    [Field:ranafield]
    use:uni date field

  38. MANOHAR CHATARAJ says:

    sir how to upload/share files in dropbox plz explain

  39. DHEERAJ PUDKE says:

    [#Menu: Gateway Of Tally]
    Add: Item: Team Tally : Display: Tally Support

    [Report: Tally Support]
    Form: Tally Wala

    [Form: Tally Wala]
    Part : My Tally

    [Part: My Tally]
    Line: Tally 1, Tally 2

    [Line: Tally 1]
    Field: TSPL 1

    [Field: TSPL 1]
    Use: Name Field
    Set as: “D.P Services, Bilaspur CG”
    Color: Green

    [Line: Tally 2]
    Field: TSPL 2

    [Field: TSPL 2]
    Use: Numeber Field
    Set as: “+91-1234567891”
    Color: Blue

  40. Subin Ravi says:

    Good Afternoon Sir !!!

    My Doubt is when do we use ” ” ( Apostrophe Marks )
    Because when we use Set As while filling Field data , sometime ” ” used and Sometime it is not used
    e.g
    1. Set As : My TDL
    2. Set As : “My TDL ”

    but both Show’s me the same result

  41. SUBRAMANI THIYAGARAJAN says:

    I done it, and got result

    [#Menu:Gateway of Tally]
    Add:Item:THIYAGARAJAN:Display:hello report
    [Report:Hello report]
    Form:Hello Form
    [Form:Hello Form]
    Part:Hello Part,

    [Part:Hello part]
    Line:Hello Line4, Hello Line,Hello Line2,Hello Line3

    [Line:Hello Line4]
    Field:field4
    [Field:field4]
    use: text field
    Set as:”This is my TDL”
    Color: gREEN

    [Line:Hello Line]
    Field:field1,field12,field13
    [Field:field1]
    use: name filed
    Set as:”I am doing accounting consultancy”
    [Field:field12]
    use: name filed
    Set as:”Every day”
    [Field:field13]
    use: name filed
    Set as:”Morning and Evening”

    [Line:Hello Line2]
    Field:field2,field22
    [Field:field2]
    use: Name filed
    Set as:”Name : ”

    [Field:field22]
    use: Name filed
    Set as:”S THIYAGARAJAN”

    [Line:Hello Line3]
    Field:field3,field32
    [Field:field3]
    use: text field
    Set as:”Mobile No :”
    Color: red

    [Field:field32]
    use: text field
    Set as:”9xxxxxxxx5″
    Color: red

  42. Ganesh Kumar says:

    ;; this tdl is our first tdl to learn tdl;; om muruga ;;om kannathal namho
    [#menu:gateway of tally]
    add: key item : jga it support :k:display:jga tally support
    [report : jga tally support ]
    form: jga it support;;we are adding form report every report have form

    [form: jga it support]
    part:jga it support
    /*we are adding parts to form. part name is my hello part. every form must have one or more parts*/
    [part:jga it support]
    line : jga it support, my Newnd line,Ganeshline,senthilline,jaishikaline,number field;;we are adding line to parts. A part may have one or many line.minimum one or many line.minimum one line is must else the software will
    ;;throw an error
    [line: jga it support]
    field : computer support, tally support,tdl customised
    Use: uni date field
    Set as: “first line” ;test this last field with control + click ????

    [line: my Newnd line]
    field :tally support
    Use: Name Field
    Set as: ” this is 3rd line ”

    [Field: computer support]
    Set as:”we are doing computer sales service amc”

    [Line: Ganeshline]
    Field: tdl customised
    Use: name field
    Set as: “senthilline ”

    [field: tally support]
    set as: “tally support service customised done”
    Background: YELLOW

    [field: tdl customised]
    set as: “report is customised any things”
    Background: Green
    Auto

    [Line:senthilline]
    Field :dental ceramic
    Use: Name field
    Set as “senthilline ”

    [Field: dental ceramic]
    set as: “we are doing all dental lab work”
    Background: blue
    Border: 2*1

    [Line:jaishikaline]
    Field:network product
    Use: name field
    Set as “jaishikaline”

    [Field: network product]
    Set as: “we are doing all type network product”
    Background: yellow
    Border:4*1
    [Line:number field]
    Field: semifield,bigfield
    [Field:semifield]
    Use:name field
    Set as: “ganesh no 1 world”
    [Field:bigfield]
    Use: number field
    Set as: “9840578145”
    [Line:anuline]
    Field: anu field
    [Field: anu field]
    Use:name field
    Set as: “anusha is very good accountant”
    Background: yellow

    [Line: ganesh date of birth]
    Field: ganesh dob
    [Field: ganesh dob]
    Use:uni date field
    Set as: “02101984”
    Background: yellow

    ;;this is data which will be shown in tally in our new report
    ;;end of the tdl code

    1. Uni Date needs an object like a ledger/Voucher so it can’t work in a plain report on Main menu
      Set the date field as Use : Name Field instead of Uni Date Field and it will work.

  43. I need to send msg in whatsapp where Bill of lading values to be displayed. plz. guide how to.

  44. Sainath Konduri says:

    Sir this is the code i have worked as per your instruction I did not get the Display of Uni Date Field, I am using Tally Developer prime and Tally Prime to check the output. Please do guide me

    [Report: My First Report]
    Form: My First Form

    [Form: My First Form]
    Part: My First Part

    [Part: My First Part]
    Line: My1stLine, My2ndLine, My3rdLine, My4thLine, My5thLine

    [Line: My1stLine]
    Field: SemiField, BigField

    [Field: SemiField]
    Use: NameField
    Set as: “Hello this is Semi Field”

    [Field: BigField]
    Use: NumberField
    Set as: “00235687”

    [Line: My2ndLine]
    Field: newfield

    [Field: newfield]
    Use: NameField
    Set as: “This is second line field”
    Color: red

    [Line: My3rdLine]
    Field: thirdLineT, thirdLine

    [Field: thirdLineT]
    Set as: “Date :”

    [Field: thirdLine]
    Use: Uni Date Field

    [Line: My4thLine]
    Field: FouthLine

    [Field: FouthLine]
    Use: NameField
    Set as: “My Fourth Line”
    Color:Green

    [Line: My5thLine]
    Field: FifthLine

    [Field: FifthLine]
    Use: NameField
    Set as: “My fifth Line”
    Color: Blue

Leave a Reply