Question
HSBC
IN
Last activity: 19 May 2017 6:12 EDT
Local Action not working
When we apply "when condition" for the local action on button click , the local action is not working. Attached the screen shot for reference.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Rules Cube Inc.
CA
Hi Abhishek,
It should work if you use property value, you can try using UserWorkForm and use when condition to launch the modal window. You can refer pega_ui_doc.js for sytnax.
Thanks
Venkatesh G
Pegasystems Inc.
US
Hi,
This isn't a feature I've used recently, however I took a look over the following help article:
https://community.pega.com/sites/default/files/help_v722/procomhelpmain.htm
Per the article, it sounds like the local action would only work if the when condition evaluated to "true" at runtime. I would start by confirming what the when condition is evaluating to when the screen with that button is displayed.
Hope this helps!
-Kurt
Pegasystems Inc.
IN
Hi Abhishek,
Adding to Kurt's inputs you can try removing the when condition and check if the onclick event is opening the modal dialog as expected.
If it is opening the modal dialog on click of the button then it means that something is wrong with your when condition.
Please let me know if this helps.
HSBC
IN
Hi Vikash,
The when condition is working correctly. I have ran the when condition and it is returning the correct result. The issue is with the onclick when function.
Rules Cube Inc.
CA
Hi Abhishek,
Local action will not work if you launch it using when rule, where as it will work only if you use property. This is existing behavior, if you want it to work anyhow then customize UserWorkForm html fragment rule and write java script to launch modal window on condition basis and remove it from onclickevent.
Thanks
Venkatesh G.
HSBC
IN
Hi Venkatesh,
I have tried with the property also but that is also not working. We are not able to open the local action from the modal window on button Onclick event.
Thanks,
Abhishek Sinha
Accepted Solution
Rules Cube Inc.
CA
Hi Abhishek,
It should work if you use property value, you can try using UserWorkForm and use when condition to launch the modal window. You can refer pega_ui_doc.js for sytnax.
Thanks
Venkatesh G
HSBC
IN
Hi Venkatesh,
Yes it worked. Thanks for the help.
Regards,
Abhishek Sinha