Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
5.42k
source
stringclasses
1 value
TDL Reference Manual
TDL_Reference_Manual.pdf
The information contained in thi s document represents the curre nt view of T ally Solutions Pvt. Ltd., ('T ally' in short) on the topics discussed as of the date of publication. Because T ally must res pond to changing market conditions, it should not be interprete d to be a commitment on the part of T ally, and T al...
TDL_Reference_Manual.pdf
Preface T ally Definition Language (TDL) is the development of T ally. ERP 9. This allows the programmers to develop and deploy faster, effective T ally Extensions with ease. The book, TDL Reference Manual, divided into two sections. Firs t section begins with the Introduction to TDL and focuses on basic concepts of T...
TDL_Reference_Manual.pdf
TDL_Reference_Manual.pdf
i Contents Tally Definition Language-An Introduction Tally Definition Language.................................................................................................................... 4 Comparison with other Languages..............................................................................................
TDL_Reference_Manual.pdf
ii Exposing Methods and Creating Procedures (_ )............................................................................... 34 Reinitialize Definitions (*)................................................................................................................... 35 Optional Definitions (!)....................
TDL_Reference_Manual.pdf
ii i Methods............................................................................................................................................. 77 Types of Methods............................................................................................................................ 77 Accessing Methods....
TDL_Reference_Manual.pdf
iv Validation and Controls................................................................................................................... 146 Field Level Attribute-Validate......................................................................................................... 146 Field Level Attribute — Unique......
TDL_Reference_Manual.pdf
v Partial Attribute Support................................................................................................................. 203 Change in usage of 'BLANK' Keyword in Menu Items........................................................................ 203 Enhanced Special Symbols............................
TDL_Reference_Manual.pdf
vi User Defined Functions Functions-In General.................................................................................................................... 253 Functions-In TDL.......................................................................................................................... 254 Function-...
TDL_Reference_Manual.pdf
vi i Function-Flags Is Any True............................................................................................................. 296 Function-Flags Is Any True From Level.............................................................................................. 297 Function-Flags Count.....................
TDL_Reference_Manual.pdf
vi ii What's New in Release 4. 7 Developer Mode Enhancements ..................................................................................................... 353 Event 'Nat Lang Query' Introd uced................................................................................................... 357 ZIP-UNZIP........
TDL_Reference_Manual.pdf
ix TDL Enhancements for Remoting................................................................................................... 517 Default TDL Changes...................................................................................................................... 523 What's New in Release 1. 8 Invoking Actio...
TDL_Reference_Manual.pdf
Section I TDL-The Development Language of Tally. ERP 9
TDL_Reference_Manual.pdf
TDL_Reference_Manual.pdf
3 T ally Definition Language-An Introduction Introduction T ally Solutions has been in the business of providing complete business solutions for over 20 years to MSME (Micro, Small and Medium Enterprise) and to a lar ge extent to LE (Large Enterprise) businesses. With o ver 3 million users in over 1 00 countries, T al...
TDL_Reference_Manual.pdf
TDL-Introduction 4 Forex handling, Bank Reconciliation, etc. There is also an 'Exp ort' option to port data into other applications (e. g., Spreadsheets) for additional manipulation. Statutory Compliance The Compliance Requirements and related configurations in T ally. ERP 9 are as follows, with regard to the implement...
TDL_Reference_Manual.pdf
5 TDL- Introduction Middle Level Languages Middle Level Languages consist of syntax, rules and features ju st like the high level languages. However, they can also implement low level languages as part of the cod e. For example, C, C++, etc. High Level Languages High level languages are very much like the English lang...
TDL_Reference_Manual.pdf
TDL-Introduction 6 2. The TDL Program-At a Glance Before we discuss the capabilities and features of TDL in detai l, let us have a look at the basic TDL program. The following figure describes all the components in a TDL Prog ram. The description, usage and detailed explanation of each compone nt will be taken up in th...
TDL_Reference_Manual.pdf
7 TDL- Introduction 3. TDL Capabilities Rapid Development TDL is a language based on defini tions. It is possible to reuse the existing definitions and deploy them. This is a language meant for rapid development. It is pos sible to develop complex reports within minutes. The user can extend the default functionalities...
TDL_Reference_Manual.pdf
TDL-Introduction 8 TDL is based on concepts pertaini ng to Object Oriented Programm ing. This language has been created for reusability. Once a definition is created, it can be reused any number of t imes. Besides the reusing capability, the user can also add new features, along with the existing de finitions. T ally. ...
TDL_Reference_Manual.pdf
9 TDL Components Introduction TDL is a language based on definitions. It is an action-driven language, i. e., whenever the user performs an action, a particular segment of code gets executed. In this lesson, an overview and basic functionality of each component involved in a TDL program will be provided. 1. Writing a ...
TDL_Reference_Manual.pdf
TDL Components 10 TDL = C:\Tally. ERP 9\My Report. tcp or TDL = C:\Tally. ERP 9\My Report. txt When T ally. ERP 9 starts, it looks for a file named 'My Report. tc p' or 'My Report. txt' in the directory C:\T ally. ERP 9. On loading the default TDL files into memory, T ally. ERP 9 reads and loads every TDL file mentione...
TDL_Reference_Manual.pdf
TDL Components 11 Here, 00002 is the company folder that resides in T ally. ERP 9\Data. The data path can be specified with the parameter 'Data'. Example : Data = C:\Tally. ERP 9\Data 1. 3 Executing Multiple Files using Include Definition Since TDL can span or exist across files, the definition 'INCLU DE' provides the...
TDL_Reference_Manual.pdf
TDL Components 12 Line uses a Field Field is where the contents are displayed or entered The Report is called either from a Menu or from a Key event. 3. 'Hello TDL' Program The 'Hello TDL' program demonstrates the basic structure of TDL. The Report is executed from the existing Menu 'Gateway of T ally'. Purpose: T o ...
TDL_Reference_Manual.pdf
TDL Components 13 Figure 2. 2 Output of W elcome to the world of TDL program 4. TDL Components The TDL consists of Definitions, Attributes, Modifiers, Data Ty pes, Operators, Symbols and Prefixes, and Functions. Let us now analyse the components of t he language. 4. 1 Definitions T ally Definition Language (TDL) is a ...
TDL_Reference_Manual.pdf
TDL Components 14 Example: [Part : Part One] In this example, the type of definition is Part and the name of the definition is Part One. T ypes of Definitions The various definitions in TDL are categorized as follows: Interface Definitions-Menu, Report, Form, Part, Line, Fields, Button, T able Data Definitions-Object...
TDL_Reference_Manual.pdf
TDL Components 15 An object can further contain an object/objects. Collection: A Collection is a group of objects. Collections can be made up of internal or external objects. These can be based on multiple collections also. We can create a collection by aggregating the collections at a lower level in the hierarchy o f...
TDL_Reference_Manual.pdf
TDL Components 16 Examples of System Definitions are System: Variable, System: Formula, System: UDF and System: TDL Names. 4. 2 Attributes Each definition has properties, referred to as 'Attributes'. Th ere is a predefined set of attributes provided by the platform for each definition type. The attribute specifies the ...
TDL_Reference_Manual.pdf
TDL Components 17 Example : [Line : Line 1] Field : Fld 1, Fld 2 Field : Fld 3 The line Line 1 will have three fields Fld 1, Fld 2 and Fld 3. Dual and Dual List Dual type attributes accept two values, and can't be specified multi ple times. The attribute 'Repeat' is an example of 'Dual' type. Example : Repeat : Line 1...
TDL_Reference_Manual.pdf
TDL Components 18 Attributes of Interface Definitions Frequently used attributes of interface definitions like Report, Form, Part, Line and Field, are explained in this section. Report Definition Attributes Form Every report requires one or more Forms. If there are more than one forms, then the first form is displayed ...
TDL_Reference_Manual.pdf
TDL Components 19 Example : [Form : HW Form] Part : HW Title Partition, HW Body Partition This code segment defines two parts, HW Title Partition and HW Body Partition, which are vertically aligned, starting from the top of the Form. Part Definition Attributes Line/Lines This attribute specifies the Lines contained in...
TDL_Reference_Manual.pdf
TDL Components 20 Syntax Info : <Text or formula> Further, if both the attributes ( Set as and Info) are specified, the attribute Info gets the precedence, and the value set within the attribute Info overrides the value set within the attribute Set as. Skip This attribute causes the cursor to skip the particular field ...
TDL_Reference_Manual.pdf
TDL Components 21 Static/Load time Modifiers These modifiers do not require any condition at the run time. T he value is evaluated at load time only and remains static throughout the execution. Use, Add, Delete, Replace are static modifiers. Use The USE Keyword is used in a definition to reuse an existing De finition....
TDL_Reference_Manual.pdf
TDL Components 22 Delete The 'Delete' modifier is used in a definition to delete an attr ibute of the Definition. Syntax Delete : <Attribute Name> [:<Attribute Value>] Where, <Attribute Value> is optional, and can either be a constant or a formula. If the attribute value is omitted, all the values of the attribute are ...
TDL_Reference_Manual.pdf
TDL Components 23 Local The 'Local' attribute is used in the context of the definition to set the local value within the scope of that definition only. Syntax: Local : <Definition Name> : <Old Attribute Value> : <New Attribute Value> Example : Local : Field : Name Field : Set As : #Stock Item Name V alue of the formul...
TDL_Reference_Manual.pdf
TDL Components 24 The attribute 'Switch' can be used in scenarios where evaluatio n is carried out only till the first condition is satisfied. Apart from this, 'Switch' statements can be grouped using a lab el. Therefore, multiple switch groups can be created, and zero or one of the switch cases could be applied from e...
TDL_Reference_Manual.pdf
TDL Components 25 Where, <Action Name > is the name of action to be performed. It can be any of the pre-defined actions. <Definition/Variable Name> is the name of definition/variable, on which the action is perf ormed. Example : Action : Create : My Sample Report 4. 5 Data T ypes The Data Types in TDL specify the type...
TDL_Reference_Manual.pdf
TDL Components 26 The type for the field definition is specified using the Ty p e attribute. Syntax [Field : <Field Name>] Type : <Data type> : <Sub-type> Example : [Field : Qty Secondary Field] Type : Quantity : Secondary Units 4. 6 Operators in TDL Operators are special symbols or keywords that perform specific opera...
TDL_Reference_Manual.pdf
TDL Components 27 A Comparison Operator compares its operands and returns a logic al value based on whether the comparison is True. The Comparison Operator returns the value a s TRUE or FALSE. T D L supports the following Comparison Operators: Table 2. 4 Comparison Operators String Operators String operators facilitat...
TDL_Reference_Manual.pdf
TDL Components 28 4. 8 Functions A function is a small code which accepts a certain number of pa rameters, performs a task and returns the result. The function may accept zero or more argume nts, but returns a value. The functions in TDL are defined and provided by the platform. These functions are meant to be used by ...
TDL_Reference_Manual.pdf
29 Symbols and Prefixes Introduction In the previous lesson, we discussed the various TDL Components like definitions, attributes, functions, symbol prefixes, variables, etc. In TDL, there are a few symbols which are used for specific pur poses. Some symbols are used as access specifiers, i. e., mainly used to access ...
TDL_Reference_Manual.pdf
Symbols and Prefixes 30 2. General Symbols Table 3. 2 General Symbols 3. The Usage of @ and @@ Formula In TDL, large complex calculations can be broken down into smal ler simple calculations or expressions expressed as a Formula. The values computed using t hese formulae can be accessed using the symbol prefixes @ and ...
TDL_Reference_Manual.pdf
Symbols and Prefixes 31 Company : “Tally India Pvt Ltd, ” Address : “No 23 & 24, AMR Tech Park II, Hongasandra, ” City : “Bangalore” Set as : @Company + @Address + @City 3. 2 Defining a Global Formula using @@ A Global Formula is one which, when defined once, is available globally. In other words, the Global Formula v...
TDL_Reference_Manual.pdf
Symbols and Prefixes 32 4. 1 Referencing a Field using # The Symbol Prefix # is used to r etrieve the value from another Field. Example : [Field : HW] Set as : “Hello World” [Field : HW1] Set as : #HW In this example, the value within the Field 'HW' is being set t o the Field 'HW1'. In other words, the Field HW1 is set...
TDL_Reference_Manual.pdf
Symbols and Prefixes 33 Example : [Field : FGField] Set as : ##RTitle [Report : DBLed Report] Title : if ##Ledger Name = “ ” then “Daybook” else “Ledger Report”\ 5. The Usage of $ and $$ 5. 1 Accessing a Method using $ Any information from an Object can be extracted by using a Meth od or UDF. The $ Prefix is used to i...
TDL_Reference_Manual.pdf
Symbols and Prefixes 34 6. Commenting a Code using ;, ;; and /**/ Commenting increases readability. In TDL, Comments can be given using symbol prefixes viz. ;, ;; and /* */. Symbol Prefix ; is used for Part line commenting, ;; is used for Single Line Commenting and /* */ is used for Multi Line Commenting. All the lines...
TDL_Reference_Manual.pdf
Symbols and Prefixes 35 [#Object : Ledger] _Difference : $Closing Balance-$Opening Balance ;; Creating Procedures to be referenced externally [Collection : _Led Bills] Type : Bills Child of : #UName SQLParms : UName SQLValues : Bill No: $Name SQLValues : Bill Date : $$String:$Bill Date:Universal Date 9. Reinitialize D...
TDL_Reference_Manual.pdf
Symbols and Prefixes 36 Example-Option [Line : MFTBDetails] Fields : MFTBName Right Fields : MFTBDr Amt, MFTBCr Amt Option : MFTBDtls Clsg G1000 : $Closing Balance > 1000 Option : MFTBDtls Clsg L1000 : $Closing Balance < 1000 [!Line : MFTBDtls Clsg G1000] Local : Field : MFTBDr Amt : Style : Normal Bold Local : Field :...
TDL_Reference_Manual.pdf
Symbols and Prefixes 37 Learning Outcome Access Specifiers and General symbols are the different special symbols used in TDL. The Access Specifiers @ and @@ are used for accessing the value s of Local and global formula, respectively. # can be used for referencing a field or modifying the existing definition. ## i...
TDL_Reference_Manual.pdf
TDL_Reference_Manual.pdf
39 Dimensions and Formatting Introduction Dimensions are specifications. Dimensions in TDL are effective either in Display mode or in Print mode. Data in TDL does not have an absolute position of the dim ensions specified, but relative. There are four definitions in TDL that attract dimensions. They are FORM, PA R T, ...
TDL_Reference_Manual.pdf
Dimensions and Formatting 40 of Measurement. In the absence of any Unit of Measurement, the Hei ght assumes a certain number of lines and similarly, the Width assumes number of characters. The entire Height and Width is in the proportion of the available paper/screen dimensions. Syntax Height : <Measurement Formula> Wi...
TDL_Reference_Manual.pdf
Dimensions and Formatting 41 Syntax Full Height : <Logical Value> Full Width : <Logical Value> Example : Full Height : No Full Width : No Full Height and Full Width-Form Definition The attribute 'Full Height' decides whether to allow the form to consume the full Height or not, depending on the logical value set. By de...
TDL_Reference_Manual.pdf
Dimensions and Formatting 42 Space Left : @@DSPCond Qty SL + @@DSPCond Rate SL + @@DSPCond Amt SL Space Right : 1 Space Top, Space Bottom, Space Left and Space Right-Form/Part Definition The attributes Space T op, Space Bottom, Space Left and Space Ri ght are specified in a Form or a Part Definition, by leaving the app...
TDL_Reference_Manual.pdf
Dimensions and Formatting 43 Definitions, whereas attributes 'Left Parts' and 'Right Parts' can be specified only in the 'Part' Definition. Syntax Top Parts : <Part1, Part2,....> Bottom Parts : <Part1, Part2,....> Left Parts : <Part1, Part2,....> ;; Only for Part Definition Right Parts : <Part1, Part2,....> ;; Only fo...
TDL_Reference_Manual.pdf
Dimensions and Formatting 44 circumstances, the T op Parts will be positioned at the Left of the Screen/Page while the Bottom Parts are positioned at the Right of the Screen/Page. Top Lines and Bottom Lines These attributes are used to place different lines at different positions in a particular 'Part' Definition. The ...
TDL_Reference_Manual.pdf
Dimensions and Formatting 45 The attribute 'Field' is used to create fields containing one o r more fields, like Group fields. We can create multiple fields inside a single field, using the 'Fields' attribute. The attribute 'Fields' is useful when multiple Fields are required to be repeated in a Li ne. For example, in...
TDL_Reference_Manual.pdf
Dimensions and Formatting 46 3. Some Specific Attributes 3. 1 Inactive The 'Inactive' attribute can be used in both a Field Definition and a Button Definition. When the attribute Inactive is set to YES in a Field Definition, the Fie ld loses its content but the size of the Field remains intact. In cases where a 'Button...
TDL_Reference_Manual.pdf
Dimensions and Formatting 47 the Credit Column and the Width is not utilized allowing the ot her fields to utilize the space. The Credit T otals being calculated and printed will also exclude th e Debit Amount. 4. Definitions and Attributes for Formatting 4. 1 Definition-Border The Definition 'Border' determines the t...
TDL_Reference_Manual.pdf
Dimensions and Formatting 48 Attribute-Color The 'Color' attribute of the 'Border' Definition is used to spe cify the Color required for the border in 'Display' mode. In a 'Border' definition, the attribute 'Color' requires two values to be specified, viz. First value for a Black and White Monitor, and the second for a...
TDL_Reference_Manual.pdf
Dimensions and Formatting 49 Italic : <Logical Formula> Attribute-Font It is a generic Font name supported by the Operating System. A Font is system dependent and we don't have any control over them. One can only select the re quired fonts from those available. Example : [Style : Normal] Font : if $$Is Windows then "A...
TDL_Reference_Manual.pdf
Dimensions and Formatting 50 The attribute 'Italic' can only take logical values/formula. In other words, it can be set to either YES or NO. It signifies that the F ield using this Style should be printed in Italics. Example : [Style : Normal Large Italics] Use : Normal Large Italic : Yes 4. 3 Definition-Color The defi...
TDL_Reference_Manual.pdf
Dimensions and Formatting 51 Background : <Color Name Formula> Print BG : <Color Name Formula> [Field : <Field Name>] Background : <Color Name Formula> Print BG : <Color Name Formula> Example : [Form : Salary Detail Configuration] Background : @@SV_CMPCONFIG [Part : Party Details] Background : Red Print BG: Green [Fie...
TDL_Reference_Manual.pdf
Dimensions and Formatting 52 Example : [Field : Bill Amount] Set AS : $Amount Format : “No Zero, No Symbol” Field of Type 'Quantity' Example : [Field : Bill Qty] Set AS : $Billed Qty Format : “No Zero, Short Form, No Compact” Learning Outcome The following four definitions in TDL attract dimensions: Form Part ...
TDL_Reference_Manual.pdf
55 Variables, Buttons and Keys Introduction A Variable is a storage location or an entity. It is a value that can change, depending on the conditions or on the information passed to the program. The actions in TDL can be delivered in three ways: by activatin g a Menu Item, by pressing a Key or by activating a Button. ...
TDL_Reference_Manual.pdf
Variables, Buttons and Keys 56 Default This attribute is used to assign a default value to a variable, based on the 'Type' defined. Syntax [Variable : <Variable Name>] Default : <Initial Value> V alue of the variable should adhere to the data type specified with 'Type' Attribute. Example : [Variable : DSP Has Column To...
TDL_Reference_Manual.pdf
Variable, Buttons and Keys 57 Syntax [Variable : <Variable Name>] Volatile : <Logical Value> Example : [Variable : Group Name] Type : String Volatile : Yes The 'Volatile' attribute of Group Name V ariable is set to YES, which means that the variable 'Group Name' can store multiple values, which have been receive d fro...
TDL_Reference_Manual.pdf
Variables, Buttons and Keys 58 Syntax [Report : <Report Name>] Variable : <Variable Name> Example : [Report : Balance Sheet] Variable : Explode Flag Explode Flag V ariable is made local to the Report 'Balance Sheet' by associa ting it using the Report attribute 'V ariable'. This variable retains its value as long as we...
TDL_Reference_Manual.pdf
Variable, Buttons and Keys 59 Field Acting as a Variable The Variable attribute in a 'Field' Definition is used to make the Field beh ave as a V ariable. when value is entered/altered in a Field, the variable assumes the s ame value with immediate effect. The V ariable need not be defined previously, since it inherits...
TDL_Reference_Manual.pdf
Variables, Buttons and Keys 60 1. 4 Example-Variables The following code snippet explains the usage of Local variable. [Variable : Loc Var] Type : String Default : "This is the default value" ;; Variable Loc Var of T ype String is defined and it is assigned a Default Value [Report : Local Variable] Variable : Loc Var ;...
TDL_Reference_Manual.pdf
Variable, Buttons and Keys 61 2. 1 Attributes of Buttons/Keys Title The 'Title' attribute can be used to give a meaningful Title to the Button being displayed on the Button Bar. This attribute is optional. Syntax [Key/Button : <Key/Button Name>] Title : <Button Title> Example : [Button : Non Columnar] Title : “No Colu...
TDL_Reference_Manual.pdf
Variables, Buttons and Keys 62 Inactive The Inactive attribute is used to activate the Button, based on some condition. If the condition is FALSE, the button will be displayed, but it cannot be activated. Syntax [Key/Button : <Key/Button Name>] Inactive : <Logical Condition> Example : [Button : Close Company] Inactive ...
TDL_Reference_Manual.pdf
63 Objects and Collections Introduction In the previous lesson, the usage of V ariables, Buttons and Key s were explained. In this lesson, the concept of 'Objects' and 'Collections' will be discussed in detail. Let us try to understand what an object is in general, its importance and usage in TDL. 1. Objects Any infor...
TDL_Reference_Manual.pdf
Objects and Collections 64 Figure 6. 1 T ally Object Structure Everything in TDL is an Object. As mentioned in the earlier cha pters, Report, Menu, Company, Ledger, etc., all are objects in TDL. The properties of objects in TDL are called Attributes. For example, the attributes 'Object', 'Title', 'Form' are all prope r...
TDL_Reference_Manual.pdf
Objects and Collections 65 1. 2 T ally Objects T ypes Objects in TDL are classified into two types, based on the thei r usage and behaviour, as follows: Interface Objects Data Objects Interface objects define the user interface while Data objects store the value in the T ally Primary or Secondary database. Any data ...
TDL_Reference_Manual.pdf
Objects and Collections 66 TDL allows a re-usage of all the objects. There are two ways to obtain some more properties that are required in an object: The existing object can either be used in new objects or in lie u of defining a new object. The existing object can be modified to add new properties. The interface ob...
TDL_Reference_Manual.pdf
Objects and Collections 67 Interface objects are always associated with a Data Object and essentially add, retrieve or manipulate the information in Data Objects. Data Objects Data is actually stored in the Data Objects. These objects are classified into two types viz., Internal objects and User defined objects/TDL ob...
TDL_Reference_Manual.pdf
Objects and Collections 68 [Object : Emp 2] Emp No : E002 Name : “Radha” Date : Aug 01 Designation : “Asst. Manager” Internal Objects Consider the data for a ledger object which has multiple bill d etails associated with it. Ledger Details This hierarchical structure s hows that the ledger 'Krishna' is created under th...
TDL_Reference_Manual.pdf
Objects and Collections 69 T o understand the concept of object context, consider the following example: When the Interface object 'Report' is associated to the Data Ob ject 'Ledger', then all the methods and collection of the Ledger object can be referenced in the as sociated report. The Method $Name, when used in th...
TDL_Reference_Manual.pdf
Objects and Collections 70 2. 1 T ypes of Collection Collections can have multiple Methods and Collection. They are classified as Simple Collection and Compound Collection based on the constituents of the collec tion. Figure 6. 4 The classif ication of collection Simple Collections Simple collections contain only a sin...
TDL_Reference_Manual.pdf
Objects and Collections 71 2. 2 Sources of Collection 'Collection', the data processing artefact of TDL, provides ext ensive capabilities to gather data not only from T ally database, but also from external sources using ODBC, DLLs and HTTP. Based on the source of data, the collections are referred to as External coll...
TDL_Reference_Manual.pdf
Objects and Collections 72 Collection of Internal Objects T o create a collection of internal objects, the attribute 'Type ' is used. It accepts object type name as the value. The collection definition for creating an internal collection has the following syntax. Syntax [Collection : <Collection Name>] Type : <Object T...
TDL_Reference_Manual.pdf
Objects and Collections 73 Where, <List of Objects> is a comma-separated list of objects. Here, the objects are defined using the 'Object' definition, as shown in the following example. Example : [Collection : Emp] Object : Emp1, Emp2 [Object : Emp1] Emp Name : "Ram Kumar" Age : "25" [Object : Emp2] Emp Name : "Krishn...
TDL_Reference_Manual.pdf
Objects and Collections 74 Syntax Object : <Object Type> [: <Object Identifier Formula>] Where, <Object Type> is a Type of Primary Object. <Object Identifier Formula> is an optional value and refers to any formula which evaluates the name of Primary Object. Example 1: Without the Object Identifier [#Form : Sales Color]...
TDL_Reference_Manual.pdf
Objects and Collections 75 Scroll : Vertical [System : Formula] Stk Name Filter : $Stock Item Name = "Tally Developer” The first inventory entry having stock item “T ally Developer” i s associated with Part 'Sample Part'. Only sub-objects can be associated at part level for whic h the primary object is associated at t...
TDL_Reference_Manual.pdf
Objects and Collections 76 3. 3 Line Level Object Association An object can be associated to a Line by Part attribute 'Repeat '. Now, the Part attribute 'Repeat' is enhanced to support the following. Extraction of collection from any Data object. Extraction of collection from UI Object associated Data object. This as...
TDL_Reference_Manual.pdf
Objects and Collections 77 Example : [Part : Sample Part] Line : Sample Line Repeat : Sample Line : (Ledger, “Customer”). Bill Allocations The Line 'Sample Line' is repeated over Bill Allocations of Obj ect Ledger for Customer ledger. 3. 4 Field Level Ob ject Association By default, it is inherited from the Parent lin...
TDL_Reference_Manual.pdf
Objects and Collections 78 Accessing by Reference In cases where the user is not in the object context, or is in a different object context then following syntax may be used: Syntax $<Method Name> : <Object Name>:<formula> Where, <Method Name> is the name of the Method, which belongs to the Object. <Object Name> is the...
TDL_Reference_Manual.pdf
Objects and Collections 79 Example: Assuming that the Voucher is the current object 1. T o get the Ledger Name of the first Ledger Entry from the cur rent Voucher : Set As :$Ledger Entries[1]. Ledger Name 2. T o get the amount of the first Ledger Entry on the Ledger Sal es from the current voucher (Sales Invoice) : Se...
TDL_Reference_Manual.pdf
Objects and Collections 80 Example : With regard to the context of Ledger Entries Object within Vouch er Object, the following have to be written to access the Date from its Parent Object which is the Voucher Object. $..Date T o access the Methods of Primary Object using the Absolute Path : Example : $(Ledger, “Cash”)....
TDL_Reference_Manual.pdf
Objects and Collections 81 Figure 6. 5 Collection of Sub-collection This example shows that Collection C1 contains Collection C2 an d Collection C3. Likewise, Collection C2 further contains Collection C4 and Collection C5. The attribute Collection is used to create a Union as follows: Attribute-Collection The attribut...
TDL_Reference_Manual.pdf
Objects and Collections 82 Attribute-Child Of The Child Of attribute helps to control the display of the conte nts of a collection. It retrieves only those objects whose direct parent is the string specified as th e parameter of this attribute. Syntax Child Of : <String Formula> Example : [Collection : My Collection] T...
TDL_Reference_Manual.pdf
Objects and Collections 83 Syntax Filter : <Filter Name> Where, <Filter Name> is the name of the Global formula. Example : [Collection : Ltd Debtors] Type : Ledgers Child Of : “Sundry Debtors” Filter : Name Filter [System : Formula] Name Filter : $Name contains "Ltd" OR $Name contains "Limited" The filter Namefilter i...
TDL_Reference_Manual.pdf
Objects and Collections 84 Function-$$Filter Qty Total It is similar to $$Filter Amt T otal, except that the V alue Expres sion should evaluate to type Quantity. Syntax $$Filter Qty Total:<Collection Name>:<Filter Expression>:<Value Expression> Where, <Collection Name> is the name of Collection <Filter Expression> is a...
TDL_Reference_Manual.pdf
Objects and Collections 85 Syntax $$Filter Value : <Value Expression> : <Collection Name> : + <Position Specifier> : <Filter Expression> Where, <Collection Name> is the name of the Collection. <Filter Expression> is the filter applied to get a set of filtered Objects. <Position Specifier> denotes the position. <Value ...
TDL_Reference_Manual.pdf
Objects and Collections 86 Example : [Collection : Sample Coll] Type : Ledgers Child Of : $$Group Sundry Creditors This will populate the collection Sample Coll with all objects under the Group 'Sundry Creditors'. In case the user has renamed the group “Sundry Debtor” as “My S undry Debtors”, the following code snippet...
TDL_Reference_Manual.pdf
Objects and Collections 87 Attribute-Search Key Syntax Search Key : < Combination of Method name/s> This implies that a unique key is created for every object whic h can be used to instantly access the corresponding objects and its values. The function which is used to retrieve the values from a collec tion based on t...
TDL_Reference_Manual.pdf
Objects and Collections 88 Function-$$Collection Field This is used to get the value of a specified expression as appl ied on the nth Object of a Collection. Syntax $$Collection Field:<Value Expression>:<Position Number>:<Collection Name> Where, <Collection Name> is the name of a collection. <Value Expression> is any v...
TDL_Reference_Manual.pdf
Objects and Collections 89 Example : $$Coll Amt Total : Ledger Entries : $Amount It gets the sum of values in the Method Amount after it is applied on each Object in the Collection Ledger Entries. This statement will hold good only when one is in the context of V oucher Object. Function-$$Coll Qty Total This function ...
TDL_Reference_Manual.pdf
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
10
Free AI Image Generator No sign-up. Instant results. Open Now