The heart and crux of Tally Technology is the DSL-Tally Definition Language (TDL) which
has been there from the advent of Tally version 5.4 during the late 90’s i.e., around 1995-96.
The language used in development of Tally, predominantly made its presence felt with
business programmers who opted for developing customizations and extensions on Tally.
Over the years, major advancements in Tally Technology resulted in transformation of Tally as
a complete Application Development Platform. The developments in TDL resulted in capabil-
ities for rapid development, rendering, data management and integration. The Tally Definition
Language (TDL) along with the development suite Tally.Developer 9(TD 9) provides the
strong technology backbone for developing solutions on Tally platform.
This book provides a comprehensive coverage of Tally technology starting from the basic
understanding of Tally architechture to in-depth concepts, usage and implementation scenarios
using TDL. With each chapter you will find explanations for topics along with syntax and
examples substantiating the content. The exercises provided give a good hands-on experience
for the concepts learnt.
The preliminary chapters from 1 through 5 mainly focus on the various components of the
language along with user interface design elements. The chapters 6 through 11 provide the
core capability coverage on the basis of which Tally is termed as an “Application Develop-
ment Platform”. The chapters “6. Objects, Collections and Internal Object Structure”,
“8. Object Manipulation and Storage in TDL” and “11. User Defined Fields, Validation and
Controls” emphasize solely on data storage, manipulation and retrieval methodologies using
the user interface. The chapters “7. Actions, Event Framework and Key Definition” and “9.
TDL Procedural Capabilities“ cover concepts which make TDL a true action and event driven
language with procedural capabilities augmenting its power. The chapter “10. Variable Frame-
work” helps in understanding the usage of various types of variables available in TDL. The
chapter “12. Advanced Reporting and Printing” will take you through the various reporting
and printing techniques. The various techniques aid in development of simple tabular reports
to complex columnar reports which provide a strong foundation in the area of MIS reporting.
Towards the end you will find various use cases which will give you an insight on various
implementation scenarios emphasizing on the application of concepts covered. By the time
you complete the book you are ready to undertake the project work “Inventory Management-
Garment Store” and dive into the over expansive world of Tally Technology.
Table of Contents
Chapter 1: Tally Technology – An Overall Perspective
1.1 Introduction ............................................................................................................................... 1
1.2 Need for Tally Extensions ............................................................................................ 2
1.3 The Domain Specific Language – TDL........................................................................ 4
1.3.1 Definition Language .......................................................................................................... 4
1.3.2 Action Driven Language with Procedural Capabilities .................................................... 4
1.3.3 Completely Object Oriented .............................................................................................. 4
1.4 Tally – As a Development Platform ..................................................................................... 5
1.4.1 Rapid Development ............................................................................................................ 5
1.4.2 Flexibility ........................................................................................................................... 6
1.5 Components of a TDL program .......................................................................................... 6
1.5.1 Underlying Tally Technology ............................................................................................ 8
1.6 Tally Architecture – Overview ............................................................................................. 9
1.6.1 The Application/Tally.ERP 9 Layer ................................................................................. 10
1.6.2 The TDL Language and Interpreter Layer ...................................................................... 10
1.6.3 Platform Layer/Engine ..................................................................................................... 10
1.7 Tally Technology – Capabilities .......................................................................................... 12
1.7.1 Solution-ability & Customizability .................................................................................. 12
1.7.2 Multiple Output Capability .............................................................................................. 12
1.7.3 Data Management Capability .......................................................................................... 12
1.7.4 Integrate-ability ............................................................................................................... 13
1.8 Tally Development Environment ........................................................................................ 13
1.8.1 Getting Started with TD 9 ................................................................................................ 15
1.8.2 Usage of Different Explorer Windows ............................................................................. 16
1.8.3 Usage of different Browsers and Property Window ........................................................ 16
1.8.4 Coding Convention .......................................................................................................... 17
1.8.5 Navigating and understanding the Tally Source Code(Default TDL project) ................. 18
1.8.6 Folder Structure and File naming convention ................................................................. 18
1.8.7 Navigating and Searching project Default TDL .............................................................. 18
1.9 TDL Program Life Cycle ...................................................................................................... 18
i
Table of Contents
ii
Table of Contents
iii
Table of Contents
iv
Table of Contents
v
Table of Contents
Use Cases
1 Use Case I – Import from Excel/Text .................................................................................... 637
2 Use Case II – Multiple Saved Configurations for Report .................................................. 646
3 Use Case III – Multiple Email Configurations ..................................................................... 654
4 Use Case IV – Duplicating Vouchers .................................................................................... 660
5 Use Case V – Inter Company Data transfer .......................................................................... 664
6 Use Case VI – Multi Company Outstanding Report ........................................................... 669
7 Use Case VII – Voucher and Invoice Customization .......................................................... 673
vi