Dear Admin and Other Experts, Solve my problem. It was when we create a udf filled in bill allocations of sales voucher and bill raised. then we are going to bills outstanding report, and one button was create, when click button that action was create a udf field as current date was update. And how to create function....... ;[#Report: VCHBILL Allocation] ; Add : Variable : VBillDate : Date [#Line: VCHBILL CTLineOne] Add : Right Fields : After : VCHBILL DrCrTitleOne :VBillDueLetter1 [Field : VBillDueLetter1] Width : 25 mms Setas : $$LocaleString:"Due" Style : Small Align : Centre Skip : Yes Fixed : Yes [#Line: VCHBILL CTLineTwo] Add : Right Fields : After : VCHBILL DrCrTitleTwo : VBillDueLetter2 [Field :VBillDueLetter2] Width : 25 mms Setas : $$LocaleString:"Letter" Style : Small Align : Centre Skip : Yes Fixed : Yes [#Line: VCHBILL CTLineThree] Add : Right Fields : After : VCHBILL DrCrTitleTwo : VBillDueLetter2 Local : Field : VBillDueLetter2 : Set as : "Dt" [#Line: VCHBILL MainLine] Add : Right Fields : After : VCHBILLDrCr : VBillDue [Field : VBillDue] Use : Uni Date Field Set as : $JPBillDue Storage : JPBillDue Width : 25 mms Set Always : Yes Skip : Yes [System : UDF] JPBillDue : Date : 5562 ;;================================================================ [#Form: Bills Outstanding] Add : Button : After : ShowByLedBill : VBillsPrint [Button : VBillsPrint] Title: $$LocaleString:"Update" Key: F8 Action: Call : VBillDate ;Scope : Selected Lines [Function : VBillDate] Variable : VBillDate : Date ; Local Formula : SetDate : ##VBillDate 12 : Set : VBillDate : $$CurrentDate ;13 : Walk Collection : VBillCol 15 : Set Object Values : (Voucher, ##VoucherId).BillAllocations[1].VBillDue : ##VBillDate ;16 : Accept Object ;17 : Do If : ($$IsEmpty:$VBillDue): Set Object Values : VBillDue : @SetDate 18 : Msg Box : "Status" : "Create Letter Due Date!!" + ##VBillDate ;19 : End Walk [Collection :VBillCol] Data Source : Report : Selected Lines Fetch : VBillDue [System : Formula] VDueDate: $VBillDue = ##VBillDate
Hi, Your button is on Bill Collection Object, but you are targeting to modify the Voucher which is not correct.
15: Set Object Values : (Voucher, ##VoucherId).BillAllocations[1].VBillDue : ($$TgtObject: ##VBillDate)
Hello Pritam Krishna sir, Thank you for rly me, Its not Bill collection Object, it was Bill allocations sir, that is inside of Voucher object, can u help me to find correct modify sir.