Close popover
Jerome Recker (Jerome@quavo)
Lead System Architect
Jerome@quavo Member since 2015 27 posts
Posted: October 26, 2017
Last activity: November 2, 2017

How Does pzdoGridAction Work?

I am using PRPC 7.2.2, which contains the pzDoGridAction (Pega-UIEngine:07-10-15) activity.

When you go to the advanced portion of the operations tab on a repeat grid, you will see that the options for running a pre and post condition are conditionally selected. Looking at this rule however, there is no precondition on step 1, which runs the pyPreGridUpdate activity. I would expect that step 1 would have a pre condition that checks if the grid's "Run activity before grid update" option is selected.

Also, I have traced and verified that steps 2, 4, and 5 will never run. The reason for this is because these steps do not have anything defined for the "if false" option on the pre condition. If I change the "if false" options to be "Continue Whens" then the steps properly run.

Right now, my problem is that I have a grid that upon checking the checkbox, I make a service call, and if it fails, I display an error on the row. If I then sort, or go to a new page, step 1 ALWAYS runs, which has logic to clear messages. I do not want to allow the user to continue if there was an error on select, however after the grid action, the error is always gone. Ideally, because "Run activity before grid update" is not selected, this step would not run. My first idea was to add logic to the pyPreGridUpdate and pyPostGridUpdate activities to store and map back those errors, however this is not possible because the post activity never runs.

From what I can tell, this is buggy behavior, and has never been properly implemented. I could override the pz activities, but would like to avoid that. Likewise, I am doubtful that creating an SR to deal with this will yield me the desired outcome.

User Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.