i want to export G/L entry records for specific period , i create the data port and add all items i need from G/L fields , How can i add also the Register ( "No." ) from G/L Register table against each entry No.
Create a global field RegisterNo (Type Integer)
Add this to the Dataport field list
create a global record variable Register for the G/L Register table
Code something like this is in OnBeforeExportRecord trigger for the G/L Entry table:
Register.setfilter("To Entry No.",'%1..',"Entry No."); // This will return the associated Register record
Register.find('-');
RegisterNo := Register."No.";
Comments
i need only for this time ,, if you please can help me for script can get these information by SQL query
Thanks
Add this to the Dataport field list
create a global record variable Register for the G/L Register table
Code something like this is in OnBeforeExportRecord trigger for the G/L Entry table:
Register.setfilter("To Entry No.",'%1..',"Entry No."); // This will return the associated Register record
Register.find('-');
RegisterNo := Register."No.";
its give me what i expect ... thanks again ....