Hi, I have a case which has multiple subcase. In the subcase flow there will be some information which need to be stored in ParentCase. For Each Subcase one PageList is added which will store the necessary info of the Subcase. I am doing an Obj-Open of the parent case, adding that PageList inside the parent case and doing Obj-Save followed by CommitWithErrorHandling in a utility activity in the sub case flow.There is no error in Tracer and Obj-Save and commit has been executed succesfully. But when we open another subcase the PageList added is not there in pyWorkCover page. I opened the case stand alone then also I cannot see the PageList that has been added though the utility ran without any error. Can anyone help me out in this
***Updated by Moderator: Vidyaranjan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option***
Can you plz share the screenshot of your clipboard structure, that would make the question easy to understand.
Also another point to check would be is your pagelist which you are trying to save in parent case, is that inside the pyWorkpage of the parent case... if not you can try to have a pagelist property in your parent case and in your utility you can copy your subcase pagelist to that parent case prop and then do save. It should persist that way.
Posted: 5 years ago
Posted: 14 Oct 2016 0:39 EDT
Afzal Natheer (Afzal)
Bits In Glass
Bits In Glass
It could be that your parent case is already in the clipboard when you are processing the subcase (most probably in a page named pyWorkCover), and this instance is overriding the commit you are doing explicitly when it is being saved to the database by prpc as part of a deferred save.
If this is the case, you can add your page list directly onto the pyWorkCover instance on the clipboard without doing any explicit Obj-Open and Save.