Question
375008155608
US
Last activity: 2 Nov 2017 15:26 EDT
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.
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.