Question
Nordea
SE
Last activity: 27 Jul 2017 1:31 EDT
Unable to Submit Local Action
Hi,
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***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Anand
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.
https://collaborate.pega.com/question/click-button-using-run-script
Hope that helps.
Bhuvana.
Pegasystems Inc.
IN
Hi Anand Pandey,
I have tried similar usecase in my end and it is working fine as expected. Can you share the configuration of the local action and validations kept.
Thank you.
Nordea
SE
Hi Pooja,
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.
Nordea
SE
Hi,
Any update on the above?
Pegasystems Inc.
IN
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.
-Saikat
Nordea
SE
Hi,
As per the screenshot attached earlier, the button is already customized and we are just launching harness from On Click event. we are not using default local action submit button
Nordea
SE
Anymore suggestion on the above?
Pegasystems Inc.
US
Hi Anand
Before your click action, try to add a run script action and set pega.u.d.KeepMessages as false.
<script>
pega.u.d.KeepPageMessages="false";
</script>
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.
Bhuvana.
Nordea
SE
Thanks! Could you please also tell me the function name which needs to be called for setting pega.u.d.KeepPageMessages as false.
Accepted Solution
Pegasystems Inc.
US
Hi Anand
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.
https://collaborate.pega.com/question/click-button-using-run-script
Hope that helps.
Bhuvana.
Nordea
SE
Thanks Mahab! I thought there is OOTB js file for this but yes i can create my customized js file as well. Thanks for your help!