Posted: 12 Jun 2017 5:10 EDT Last activity: 27 Jul 2017 1:31 EDT
Unable to Submit Local Action
I am working for an application which is being upgraded from Pega 6.1 to Pega 7.2.2. As per the attached screenshot, there is a local action which I am unable to submit in 7.2.2 because the main page in the background has error. This was working properly in Pega 6.1 and user was able to submit the local action even if the main page in the background has some error. Any suggestion?
***Updated by moderator: Lochan to update Categories***
I am using CancelAssignment (In Work- Class in Pega-EndUserUI:07-10-23) as a local action and then using custom section where the configuration of the submit button is shown in the attachment. From modal window, when i am trying to launch harness that will replace the current window but since there are certain mandatory fields in the backend window, pressing the submit button would not launch the harness. If I fill in all the mandatory values then only submit button will work as there won't be any error on the page.
I have also tried using page-clear-message before pressing the submit button but that doesn't work.
I think the local action submit button is having finish assignment action on it. So it is trying to submit the assignment of the work( from where you are calling the assignment). please override the submit button and put some activity aas you need instead of the finish assignment.
and perhaps flip it again after the click action if you run into issues with error messages after your harness is launched.
Not really encouraging playing with this since you never know what error messages you may miss because of this, but play with it and test your application thoroughly until you are confident you are not breaking anything else.
Use the post below as your guide to call OOTB Run Script action and write your function to include the keep message setting I provided as opposed to just the alert being demonstrated in the post I referenced.