We have configured set of screens as a navigation and on click of each item in navigation local action is performed and screen is loaded. For every screen we have a set of validations defined in local actions. On clicking of a button in every screen these validations should be executed.
Can you please help on how can i achieve this.
Note: All the local actions are defined in the assignment.
Thanks in Advance.
***Edited by Moderator: Pallavi to update platform capability tags***
I am not using Screen flow. In my section there is a navigation menu where i have configured on click action for each menu item to run script "pega.ui.HarnessActions.handleMenuAction" so that the section will be open in the Case Main. Now, on click of any button on this screen i want the Local action Validation to be trigerred.
Please find attachment for reference of the on click action configured on navigation menu item.
The best results are using option 1 from KC-Abburi above...
"1. In the FlowAction Rule form, you can use Validate rule in Validation tab so that on click of submit it validates the fields and displays an error message."
However, this only works for validating the pyWorkPage... The validation failures (errors) that are displayed in the harness come from page-level messages stored on the pyWorkPage. This causes problems if you are trying to validate a different, top-level page.
To overcome this limitation you can do something really cool... Create a reference property on the pyWorkPage that links to the top-level page you are trying to validate. You will need to do this in a Flow Action precondition Activity, using the Property-Ref method. Then just validate that reference property page as though it was a regular embedded page in pyWorkPage.
Please send a screenshots of an example validation rule you are using and I can check if that is an appropriate solution - If it is appropriate, I can help you further in making it work.
Posted: 2 years ago
Posted: 25 Sep 2020 0:53 EDT
LaxmiPrasanna Bachu (LaxmiPrasannaB)