;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara /* - This program illustrates the use of following attributes of Object Local formula Full Width About this program - This program provides a list of states exploded under each region of India. 4 Region objects explodes the relevant state objects under it - The objects are static objects are the values are pre set and doesnt change dynamically - The first 2 region objects displayed have full width set to yes and hence it occupies its width in ent */ [#Menu: Gateway of Tally] Add: Item: ($$LocaleString:"Fullwidth"): Alter: TSPL Fullwidth Obj [Report: TSPL Fullwidth Obj ] Form: TSPL Fullwidth Obj [Form: TSPL Fullwidth Obj ] Part: TSPL Fullwidth Obj [Part: TSPL Fullwidth Obj ] Line: TSPL Fullwidth Obj [Line: TSPL Fullwidth Obj ] Field: TSPL Fullwidth Obj [Field: TSPL Fullwidth Obj ] Use: NameField Table : TSPL Indian Regions Show Table : Always ;;TDL objects for regions with Name as local formula/method is defined. ;;A collection of these objects is defined which is used as table in the field [Collection: TSPL Indian Regions] Title : $$LocaleString:"Regions & States" Object : TSPL North, TSPL South, TSPL East, TSPL West Format : $Name, 20 Explode: TSPL North : $Name contains "North" ;; Exploded relevant states as per the Name of the region Explode: TSPL South : $Name contains "South" Explode: TSPL West : $Name contains "West" Explode: TSPL East : $Name contains "East" [Object: TSPL North] Behave As: Label Name : "States belonging to Northern India" ;; This is displayed with fullwidth of the Table Full Width: Yes [Object: TSPL South] Behave As: Label Name : "States belonging to Southern India" ;; This is displayed within first column width ;Full Width: Yes [Object: TSPL East] Behave As: Label Name : "States belonging to Eastern India" ;; This is displayed with fullwidth of the Table Full Width: Yes [Object: TSPL West] Behave As: Label Name : "States belonging to Western India" ;; This is displayed within first column width ;Full Width: Yes ;;Below is list TDL objects for states with Name, Region and capital as local formula/methods. ;;4 collections are defined for each of regions with relevant objects specified [Collection: TSPL South] Object: TSPL Karnataka, TSPL Tamil Nadu, TSPL Kerala Format: $Name, 15 Format: $Capital, 15 [Object: TSPL Karnataka] Name : "Karnataka" Region : "South" Capital : "Bangalore" [Object: TSPL Tamil Nadu] Name : "Tamil Nadu" Region : "South" Capital : "Chennai" [Object: TSPL Kerala] Name : "Kerala" Region : "South" Capital : "Trivandrum" [Collection: TSPL East] Object: TSPL West Bengal, TSPL Assam, TSPL Arunachal Pradesh Format: $Name, 15 Format: $Capital, 15 [Object: TSPL West Bengal] Name : "West Bengal" Region : "East" Capital : "Kolkata" [Object: TSPL Assam] Name : "Assam" Region : "East" Capital : "Dispur" [Object: TSPL Arunachal Pradesh] Name : "Arunachal Pradesh" Region : "East" Capital : "Itanagar" [Collection: TSPL North] Object: TSPL Jammu Kashmir, TSPL Punjab, TSPL Himachal Pradesh Format: $Name, 15 Format: $Capital, 15 [Object: TSPL Jammu Kashmir] Name : "Jammu & Kashmir" Region : "North" Capital : "Jammu" [Object: TSPL Punjab] Name : "Punjab" Region : "North" Capital : "Chandigarh" [Object: TSPL Himachal Pradesh] Name : "Haryana" Region : "North" Capital : "Shimla" [Collection: TSPL West] Object: TSPL Goa, TSPL Gujarat, TSPL Maharastra Format: $Name, 15 Format: $Capital, 15 [Object: TSPL Goa] Name : "Goa" Region : "West" Capital : "Panaji" [Object: TSPL Gujarat] Name : "Gujarat" Region : "West" Capital : "Gandhinagar" [Object: TSPL Maharastra] Name : "Maharastra" Region : "West" Capital : "Mumbai" ;;EOF