Here my scenario:
1st: Form A -> Click button -> Creates a new record and update the args.record() from Form A -> done (it is working here)
2nd: Form A -> Click button -> Form B -> Creates a new record and update the record from Form A using the record in Form B (record in Form A and Form B has connection) -> not working here
it uses the same class, there's just one more step on the 2nd scenario but it basically performs the same methods.
I searched everywhere for the fix for this, but I still get the error.
My code is below:
ttsBegin;
_wharfageSalesLine.selectForUpdate(true);
_wharfageSalesLine.RecordReference = 1;
if (!isLineDetailsAvailable)
{
_wharfageSalesLine.FullyCredited = NoYes::Yes;
}
_wharfageSalesLine.doUpdate();
ttscommit;
I performed debugging, the record Id is not blank. The record is recognized. But still it tells me that the record was not selected.