hi all,
when ever i am trying to update through updaterecordset the record is not getting update but it is getting updated when i update through while select for update it is getting updated
while select SON_AttachmentInvoiceloc
{
ttsBegin;
select forupdate purchLine
where purchLine.PurchId == SON_AttachmentInvoiceloc.AXPONumber &&
purchLine.EANCode == SON_AttachmentInvoiceloc.EANCode &&
purchLine.LineNumber == SON_AttachmentInvoiceloc.AXPOLineNumber;
purchLine.SON_AttachmentInvRecId = SON_AttachmentInvoiceloc.RecId;
purchLine.update();
ttscommit;
}
code which is not working is
ttsBegin;
update_recordSet purchLine setting SON_AttachmentInvRecId = SON_AttachmentInvoiceloc.RecId
where purchLine.PurchId == SON_AttachmentInvoiceloc.AXPONumber &&
purchLine.EANCode == SON_AttachmentInvoiceloc.EANCode &&
purchLine.LineNumber == SON_AttachmentInvoiceloc.AXPOLineNumber;
ttsCommit;
please let me know what mistake i am doing
thanks,
Rohit
*This post is locked for comments
I have the same question (0)