Copying Parent Record
I have a view based on Service Agreement and Related Service Agreement (custom BC). I have written a script to copy the parent record and set the Id of the parent to PAR_AGREE_ID. On clicking the button, I get an error stating Operation is not allowed when no records displayed..... (SBL-DAT-00215).
The code is essentially instantiating the parent BC (Service Request) - querying for the parent Id and in a while loop copying the record (NewRecord(NewAfterCopy)), setting the Par_Agree_Id on the newly created record and writing the record and refreshing the view.
Searched on support.oracle.com for SBL-DAT-00215 and none of the SRs seem applicable to this case. Looking for tips on how to accomplish this.
The code is essentially instantiating the parent BC (Service Request) - querying for the parent Id and in a while loop copying the record (NewRecord(NewAfterCopy)), setting the Par_Agree_Id on the newly created record and writing the record and refreshing the view.
Searched on support.oracle.com for SBL-DAT-00215 and none of the SRs seem applicable to this case. Looking for tips on how to accomplish this.
0