Hello everyone, I have created 2 menus in tally 1 to input the value (Alter report) and 2 to get the output (display report) Now I want to make a report like: If I enter a list in input report, it will show in output report. My code is given below : Please guide further. Code: [#Menu:Gatewayoftally] Item:Input:Alter:Input Item:Output:Display:Output [Report:Input] Form:Input [Form:Input] Part:title, Input ; Height:100% screen ; Width:100% screen [Part:title] Line:title [Line:title] Field:NameList Local:Field:NameList:Info:"List of All Names" Local:Field:NameList:Align:Center Border:column titles [Part:Input] Line:Input ; Repeat:Input:NameList Scroll:Vertical [Line:Input] Field:NameList [Field:NameList] Use:Name Field Set as:" " Storage:NameList Width: 40 ; Modifies:NameList:Yes ;-------------------------------------------------------------------------------------- [Report:Output] Form:Output [Form:Output] Part:title, Output [Part:Output] Line:Output [Line:Output] Field:Output [Field:Output] Set as:$NameList ;----------------------------------------------------------------------------------------------- [Collection:NameList] [System:UDF] namelist:string:30001 [Variable:NameList] Type:String [System:Variable]
At Input Report level add object Example:- [Report:Input] Object:Company Now, To fetch udf.. Do it like this Set as:$NameList:Company:$$CurrentCompany
hear only one enterd show but repeat line enterd not show [#Menu:Gatewayoftally] Item:Input:Alter:Input Item:Outputisplay:Output ;; ===================== Input ======================= ;; [Report:Input] Form:Input Object:Company [Form:Input] Part:title, Input Height:100% screen Width:50% screen [Part:title] ;; ====================== Part Line:title [Line:title] Field:NameListTit Local:Field:NameListTit:Info:"List of All Names" Local:Field:NameListTit:Align:Center Border:column titles [Field:NameListTit] Use:Name Field Set as:"" Full Width:Yes [Part:Input] ;; ====================== Part Line:Input Repeat:Input:NameList Scroll:Vertical BreakOn : $$IsEnd:$NameList [Line:Input] Field:NameList [Field:NameList] Use:Name Field Set as:" " Storage:NameList Full Width:Yes Modifies:NameList:Yes ;; ===================== Output ======================= ;; [Report:Output] Form:Output [Form:Output] Part:title, Output Height:50% screen Width:40% screen [Part:Output] ;; ====================== Part Line:Output [Line:Output] Field:Output [Field:Output] Set as:$NameList:Company:$$CurrentCompany [Collection:NameList] ;;================ Collection Fetch : NameList [System:UDF] namelist:string:30001 [Variable:NameList] Type:String [System:Variable]
I thought you want to store a Single value...you can save multiple values using aggregate udf Example [Part:Input] Repeat:Line Name : AggrUDF .... [Field:Input] Storage:NameList .. [System:UDF] AggrUDF: Aggregate:2000 NameList: String:2001 Now, For output create a collection for ouput [Collection: Output Coll] Type:AggrUDF:Company Child of: $$CurrentCompany Fetch:Name List [Part:Output] Repeat: Output Line: Output Coll [Field:Output] Set as:$NameList
[#Menu:Gatewayoftally] Item:Input:Alter:Input Item:Outputisplay:Output ;---------------------------------------------------------------------------------------------------- [Report:Input] Form:Input ;Object:company [Form:Input] Part: InputT, Input ;------------------------------------------------ [Part:InputT] Line:InputT [Line:InputT] Field:input Local:Field:input:Info:"Input List" Local:Field:input:Align:Center Border:Column Titles ;------------------------------------------------ [Part:Input] Line:Input Repeat:inpututput coll Scroll:Vertical Break On:$$IsEnd:$namelist [Line:Input] Field:Input [Field:Input] Use:name field Set as:"" Storage:Namelist Width:30 ;------------------------------------------------------------------------------------------------------------- [Report:Output] Form: Output [Form:Output] Part:OutputT,Output ;------------------------------------------------ [Part:OutputT] Line:OutputT [Line:OutputT] Field:Output Local:Field:Output:Info:"Output List" Local:Fieldutput:Align:Center Border:column titles ;------------------------------------------------ [Part:Output] Line:Output Repeatutput : Output Coll Scroll:Vertical Break On:$$IsEnd:$namelist [Line:Output] Field:Output [Field:Output] Use:name field Set as:$namelist Width:40 ;------------------------------------------------------------------------------------------------------------------------------- [System:UDF] AggrUDF: Aggregate:2000 NameList: String:2001 ;Now, For output create a collection for ouput [Collection: Output Coll] Type:AggrUDF:Company Child of: $$CurrentCompany Fetch:Name List
Corrections: 1. Add Object: Company at Input Report Level 2.At Input Part Level, Add Repeat:Input:AggrUDF 3.Remove Set as from input Field 4.Remove Break On From Output Part
No buddy its not an assignment. I am doing it to understand a report like how this works in tally to create a list and use it. Problems occuring: 1. When i m using object:company it is removing the title of input report. 2. There is no collection of aggrUDF, so what it will repeat. 3. If I remove set as form input field where i will enter the text of feed. 4. Done.