Hi guys,
I have a serial owner table which has 1 lakh records and i have serial trans table it has more number of records says 3 lakhs , I have to update counterpartner field in serial owner from serial trans and I have to select the last recid in the child table.
in short, I have to use updaterecordset and order by recid .
ttsBegin;
while select forUpdate DMSSerialNumOwner
{
select firstOnly * from DMSSerialNumTrans order by recid desc
where DMSSerialNumTrans.SerialNum == DMSSerialNumOwner.SerialNum; //11052016SAM0011
{
info(strFmt("%1",DMSSerialNumTrans.RecId));
}
DMSSerialNumOwner.counterpartner = DMSSerialNumTrans.counterpartner ;
DMSSerialNumOwner.update;
}
I want to convert the above code in update record set as it has more than 1 lakhs record.
ttscommit;
*This post is locked for comments