Posted: 25 Feb 2017 18:50 EST Last activity: 28 Feb 2017 22:46 EST
Severe warning about the step page while getting a lock during iteration of page list
I need to update a list of pages and commit the changes via an activity . I have got a list of pages for data objects of a concrete class with Obj-Browse method Step 1. I needed to update each page from the activity itself. Therefore, I looped over each embedded page in order to ensure/lock by Obj-Refresh-And-Lock in a child step 1 followed by the Property-Set, Obj-Save and finally calling Work-.commitWithErrorHandling.
However, I got a severe warning:
'Using ... ,Obj-Refresh-And-Lock, .... Consider specifying a named page as the step page.'
I tried creating the step page in the applies to class of the activity but that gave me error to commit the changed value of the property in the database. If I leave the step page blank, running the activty will commit the change into the database as expected, however, I got the severe warning. Has anyone dealt with this scenario? I have attached the screenshot.
PRPC still throws the same severity warning and requires me to provide step page.
I have used obj-browse to get the list and captured the pzInsKey of each record in the child step where I used the method Obj-Open-By-Handle followed by property-set and obj-save.
The severity warning is copied below.
Using the Obj-Open, Obj-Open-By-Handle, Obj-Refresh-And-Lock, RDB-Open, or Page-New methods with an empty step page will replace the contents of the primary page. Consider specifying a named page as the step page.