Hi experts.
Anyone can tell me how to pass a var relation from a local record variable to a global record?
This is the case: I wrote a function on a processing report (let call FilterShipment) SetShipment (Var ShipTemp :Record Shipment), Then I define a global record variable and assign it using the local var variable: ShipmentHeader := ShipTemp, The next step I will change the filter of the global record in the OnPreReport trigger (ShipmentHeader.SETRANGE(“No.”,‘aaaaa’) , then I hope the global record variable can be returned to the caller.
Then I call this function and transfer the var “pointer” from a form call it shipment Card. Below are my partial codes:
FilterShipmentReport.SetShipment(Rec);
FilterShipmentRecord.RUNMODAL;
Clear(FilterShipmentRecord);
It seems I can not get the changed record from the report.
Any suggerstions will be warmly appreciated.
Thanks in advance.
Gary