Discussion

Unable to proceed on local action if errors

Hi, I have screen which is the main flow action and i also have some local actions. When i have some errors on the screen and i am selecting the local action its not allowing me to move. any suggestions please.

***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
November 10, 2008 - 10:57am

quote:


Originally posted by MANDAB01

On the main screen on one of the fields i have a validation, which is executed after the user cilcks on submit

Let say user entered the alphabets in a numeric fileds and clicked on submit, We validated the data and show a field message that value is not correct. Now user changes the value to a valid value and now selects the local action. System doesn't allow to go to that local action and again shows the previous error on the field.


Actually the issue is not as simple as providing a page-clear-messages in this case. When you enter alphabetic characters into a numeric field, that property now has an invalid value. PRPC won't let you continue until it is fixed. The problem is that switching the action dropdown does not submit the form data, so that even though as above you said that the user changed the value to a valid one, it hasn't been submitted yet.

The only workaround is that if you start filling out a flow action form, submit it with errors that leave one or more properties in error, and then decide that you don't want to proceed with that flow action anymore is to close the work object and reopen it.

Page-clear-messages will not clear messages caused by invalid data, like when alphabetic text is in a numeric field.

November 10, 2008 - 12:46pm

Hi Marik,

But actually the user doesn't want to cancel the main flow action at that point, user has entered a correct value in the field, but the form is not submitted yet and want to attach a file which is the local action and come back again to the main flow to submit the work item now.

Pega
November 10, 2008 - 1:30pm

quote:


Originally posted by MANDAB01

Hi Marik,

But actually the user doesn't want to cancel the main flow action at that point, user has entered a correct value in the field, but the form is not submitted yet and want to attach a file which is the local action and come back again to the main flow to submit the work item now.


There is a 'save' button that you can add to the flow action section. The user could correct the value, press save, switch to attach a file, then switch back to the main flow action and submit it.

April 5, 2010 - 6:24pm

Hi,

Is there a resolution to the original problem noted here? I am also facing the same problem. pega does not proceed further whenever there are errors noted on properties. (So first time when the validate is fired, pega fetches the messages). When I click on submit button for the second time, it goes to infinite loop.

We are using 5.4 SP3

October 20, 2008 - 7:41am

Can you tell me that which type of errors you got

October 20, 2008 - 7:46am

On the main screen on one of the fields i have a validation, which is executed after the user cilcks on submit

Let say user entered the alphabets in a numeric fileds and clicked on submit, We validated the data and show a field message that value is not correct. Now user changes the value to a valid value and now selects the local action. System doesn't allow to go to that local action and again shows the previous error on the field.

October 20, 2008 - 2:58pm

Its because the primary page has a message already been set (when validation fails for the first time) and this message is not cleared.

Pega doesn't allow you to save the Primarypage which has errors in it. So if you run a rule-edit-validate on a property, then it writes a message on the primarypage. Now when the user changes the flow action, then primarypage hasn't been refreshed to clear the error message. Hence, as you hit the submit button on the local-action it doesn't allow you to proceed

The solution : Just before you display the html of a flow-action, do a page-clear-message. This should clear all message in your PrimaryPage and should allow you to proceed.

Usually, the user would prefer to select the local action. In this case, use the pre-action of the flowaction to call a utility that has a page-clear-message run on the PrimaryPage.