I have an activity in class X that loops a page in the same class. Within this loop, there is another page loop that is in class Y. In this class Y loop, I call an activity in class Z. In this activity, I want to increment a value that is in class X and display this property in a section that is in class X.
I use property-set TOP.propertyX=TOP.propertyX+1.
I checked the tracer that the property is incremented however it’s shown as blank in the section X. Did I miss anything? Hope this scenario that I explained clear.
@alfin.putra The reason why it is not reflecting is because it might have not been committed, where exactly are you calling this activity in which context ? based on the context we will have to see if the values need an explicit save/commit or not
@Poosala There is already save after this step and we’re not trying to commit anything yet as we still need to update something in the loop outside this activity
@SrinidhiM Please see the steps in the attachment. We already put a save step after propertyset the TOP property. Do I need to add another save step that is not in ChildCaseZ page?
@alfin.putra Hi, Can you please confirm if you have added the save on the top page seems like you have only added save in ChildCaseZ Page whereas you set the properties on TOP and also can you please let me know if the save or commit activity does obj-save? if yes then you have to add one for Top page as well
@alfin.putra TOP keyword may not work correctly in activities context. You may want to get reference to your top level page and then use it in the inner loops. You can try following steps for your usecase.
@SrinidhiM Hi, I’ve tried to saveorcommit on TOP page but still the same, the property not showing up in the UI and yes saveorcommit does obj-save. I’ve also tried obj-save as well on TOP page but same results