Monday, March 25, 2019

Resize Form or Screen in Tally ERP 9 using TDL ( Tally Developer )



Source Code:

[#Menu: Gateway of Tally]
Item: Resizing Form : Display: Add Button
[Report: Add Button]
Form: Add Button
Variable: Full Size
Set: Full Size : No
Title: "Resize Form"
[Form: Add Button]
Part: Add Button
Button: Resize Button
Option: Small Form : Not ##FullSize
Option: Full Form : ##FullSize
;;Optional form definitions
[!Form: Small Form]
Local: Field:Add Button: Set as: "Small Form"
Width: 50% screen
Height: 50% screen
Background: Yellow
[!Form: Full Form]
Local: Field: Add Button: Set As : "Full Form"
Width: 100% screen
Height:100% screen
Background: Green
[Part: Add Button]
Line:Add Button
[Line: Add Button]
Field: Add Button
[Field: Add Button]
;;Variable Definition
[Variable: Full Size]
Type: Logical
;;Button Definition
[Button: Resize Button]
Key: F4
Action: Set: FullSize: Not ##FullSize
Title: "Change Size"

;;End of File


Output:

Gateway of Tally Resize Form or Report


Small Form in Tally ERP 9 TDL

Full Size Form in Tally ERP9 Tally Developer



Saturday, March 9, 2019

Tally TDL code for Displaying My Stock Summary in Tally ERP 9 using Tally Developer 9

 Tally TDL code for Displaying My Stock Summary in Tally ERP 9 using Tally Developer 9

 
Tally TDL code for Displaying My Stock Summary in Tally ERP 9 using Tally Developer 9

 ;;Tally TDL code for Displaying My Stock Summary in Tally ERP 9 using Tally Developer 9
[#Menu: Gateway of Tally]
Add : Item: My Stock Summary : Display : My Stock
[Report: My Stock]
Form : My Stock
 [Form: My Stock]
Top Part : MyTB Detail
 [Part: MyTB Detail]
Top Line: MyTB Header
Line : MyTB Detail
Repeat : MyTB Detail: MyTB Collection
Scroll : Vertical

[Line: MyTB Header]
Left Fields : Name
Fields        : Group ,Quantity,Rate
Right Fields : Amt
 [Field: Name]
Width : 30
Set as : "Stock Name"


 [Field:Group]
Type : String
Width : 20
Set as : "  Group"


 [Field: Quantity]

Width : 20
Set as : "Quantity"
Align : Right

 [Field: Rate]

Width : 20
Set as : "Rate"
 Align : Right 



 [Field:Amt]

Width : 20
Set as :"Amount"
 Align : Right

[Line: MyTB Detail]
Left Fields : MyTB Name
Fields        : MyTB Group ,MyTB Quantity,MyTB Rate
Right Fields : MyTB Amt
 [Field: MyTB Name]
Width : 30
Set as : $Name

 [Field: MyTB Group]
Type : String
Width : 20
Set as : $Parent
Align : Left

 [Field: MyTB Quantity]
Type : Quantity
Width : 20
Set as : $ClosingBalance
Align : Right

 [Field: MyTB Rate]
Type : Rate
Width : 20
Set as : $ClosingRate
Align : Right 



 [Field: MyTB Amt]
Type : Amount
Width : 20
Set as : $ClosingValue
Align : Right
[Collection: MyTB Collection]
Type : Stock Item
;; End of File

Output:





You also may like following topics:
1) Tally TDL code for Creating new Ledger in Tally ERP 9 using Tally Developer 9

2) Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9

Wednesday, February 20, 2019

Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9

 ;;Input 2 numbers and Display Sum or Addition



[#Menu: Gateway of Tally]
Add : Key Item: Addition: L : Create:Addition
 ;; Object Association done at Report Level
 [Report: Addition]
Form : Addition
Variables: Var,Var2

[Form:Addition]
Parts : Addition
[Part:Addition]
 Lines :  header1,num1,num2,res,footer1

[Line: header1]
 Fields:  h1
 [Field: h1]
     Width:25% screen
     Info:"Addition of Two numbers:"   
 [Line: num1]
 Fields:  p1,Num1
 [Field: p1]
     Width:25% screen
     Info:"Enter 1st No.:"


  [Field:Num1]
   
     Use: Number Field
     Background: Yellow
     Width: 25% screen
     Storage: ##Var
    [Line: num2]
 Fields:  p2,Num2
 [Field: p2]
     Width:25% screen
     Info:"Enter 2nd No.:" 
      [Field:Num2]
     Use: Number Field
     Background: Green
     Width: 25% screen
     Storage: ##Var2
   
    [Line: res]
 Fields:  p3,res
 [Field: p3]
     Width:25% screen
     Info:"Result:"
 [Field:res]
     Use: Number Field
     Background: Red
     Width: 25% screen
     Set Always:Yes
      Set as:@@Sum
[Line: footer1]
 Fields:  f1
 [Field: f1]
     Width:25% screen
     Info:"Thank you!!"     
[Variable:Var]
    Type: Number
    Default:20
[Variable:Var2]
    Type: Number
    Default:10
   
[System:Formulas]
    Sum:#Num1+#Num2

;;End of File



Output:

Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9

   

See also: Tally TDL code for Creating new Ledger in Tally ERP 9 using Tally Developer 9
   

Tuesday, February 19, 2019

Tally TDL code for Creating new Ledger in Tally ERP 9 using Tally Developer 9

;; Tally TDL code for Creating new Ledger in Tally ERP 9 using Tally Developer 9

[#Menu: Gateway of Tally]
Add : Key Item: Ledger Creation: L : Create:Create Ledger
 ;; Object Association done at Report Level
 [Report: Create Ledger]
Form : Create Ledger
 Object : Ledger
[Form: Create Ledger]
Parts : Create Ledger
[Part: Create Ledger]
 Lines : Store LedgerName, Store LedgerGroup
 [Line: Store LedgerName]
 Fields: Short Prompt, Name Field
Local : Field: Short Prompt: Info: "Name :"
 Local : Field: Name Field: Storage: Name
;; Storing the value entered by user in an Internal Method Name available within the Object associated at the Report Level
[Line: Store LedgerGroup]
Fields : Short Prompt, Name Field
Local : Field : Short Prompt: Info : "Under :"
Local : Field : Name Field: Storage :Parent
Local : Field : Name Field: Table :Group
;;End of File

Display Sum or Addition of Two numbers taking input from user in Tally ERP 9 using Tally Developer 9