Question
Last activity: 27 Feb 2017 8:25 EST
Launching local action on when condition not working
Issue:
On change of dropdown value we are trying to launch a local action. We are having a when condition for launch of the Local Action. Though when condition is executed sucessfully, Local Action is not launched.
Observation:
If When rule contains the property associated with the dropdown then only we are facing the issue.
Steps To replicate:
1. Add a dropdown in the section and configure Action set to have "Change" event and Action "Local Action".
2. Add When condition (When rule) for Local Action. When rule should contain the property associated with dropdown control.
Screenshots are attached


Pegasystems Inc.
IN
Hi Haritha,
Thanks for your response.
I tried using the associated property in an activity and doing validation. And I am using other property (TrueFalse) as flag to store the result of validation. The flagged property is having issue. The actual value of property is not being used in the when condition of Local Action. Then I tried using When rule, which also didn't work


Pegasystems Inc.
IN
Hi, please check the following:
1) Are you able to find local action stream coming up in tracer or not? Check stream rules, exception s in the settings of the tracer.
2) If it is seen in tracer but not in the browser, please check the browser settings and try with other browser.
3) Is Local Action working properly without when condition. You can also use Always OOTB when rule in the when for debugging.
4) Also find the if any console errors coming up on the browser developer tools.
5) Use network tab in the browser developer tools to see if content is loaded properly or not.
Regards,
Venkatesh.K.L
Hi Venkatesh,
Thanks for your response.
I had tried all those steps. To tell more about the issue, without when condition it works fine. And if I use Associated property and add conditions, then also it works. If I use "always" when rule then also it works. But if I use when rule with the property associated with the dropdown, then it doesn't work. Validation is complex, I need to use when rules or set a flag in Activity based on the validation and use the flag in when condition of Local Action. This is not working for me.


Pegasystems Inc.
US
Hi BharathK5447,
Please provide collected tracer log. From tracer log, we can see if local action is invoked or not. Also, I noticed that you local action is displayed as a modal dialog, do you see any popup comes out?
Thanks,
Susan
Hi Susan,
From the tracer I could see that Local Action is not being invoked properly based on the property value.
Hi All,
I have attached more screenshots for better understanding.


Pegasystems Inc.
US
Hi BharathK5447,
I noticed that you were using a "Change" event with "Run Activity", "Local Action" and "Refresh-Other section" actions.
Can you let me know what kind of element (text input?) this "Change" event is applying to?
You need to be very careful using this configuration. Every change on that element, all those 3 actions will be executed.
Thanks,
Susan


Pegasystems Inc.
US
Hi BharathK5447,
I followed your use case and created an example on my Pega 7.2.1 system.
It worked for couple times. The local action was invoked. The Modal Dialog was launched. See attached screenshot.
However, after it worked 2-3 times, then it suddenly stopped working. I even restarted my system but it still did not work. I really don't know what happened. I captured the screenshots for the working one though.
Thanks,
Susan
Accepted Solution
Hi Susan,
Here is the solution.
When rule on Local Action would consider property values only from DOM and not from clipboard.
Inroder to make this work ,make below local changes :
Follow below steps :
1) create a "Hidden text" field, say A in the section where dropdown is defined
2) Call 'Set Value' action before "Local Action" to set the property- A (created in setp 1) with activity output value .
3) Check for property - 'A'(defined in setp 1) on Local action.
Hi,
I could see, the local action is getting rendered properly.
Can you please take a look into the attached doc ?