Question
Members Equity Bank Pty Ltd
AU
Last activity: 16 Oct 2018 7:27 EDT
Change event not working fine with pxRadioButton
Change event not working fine with pxRadioButton . Pega version 7.1.9.
On configuring an change event on a pxRadioButton control with a refresh section action, it is reloading and calling the activity every time we click on the same radio button value without changing the value. We want to handle the change of value by calling an activity . However the activity is called every time on click.
To Replicate the issue
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hello,
On reviewing the SR we see that it was resolved and a Support Article was published with the resolution. Please refer to the Support Article if you have the same question: Change event does not work correctly with pxRadioButton
Thank you.
Pegasystems Inc.
IN
Hi Binod,
Just wanted to clarity on the requirement.
When you click on the radio button, you say that the activity is running but the change of the value does not take place. Are you talking about the value of the Radio button itself or are you changing some other value that is available in the same section?
Probably you can add a screenshot of the section at runtime.
Regards,
Evita.
Members Equity Bank Pty Ltd
AU
I have added an "CHANGE" event on the radio button which would refresh the section and call a data transform . However even if I click on the same value it is refreshing the section and calling a data transform. The issue is not with the value of the radio button , but the event which is getting called even when the value is not changed. Attaching the screenshot
Pegasystems Inc.
IN
Hi Binod,
I have understood the issue that you are referring to. I have created a similar use case in-house and for me the issue does not appear.
Can you remove the Data transform and just keep Refresh-Section and check if issue persists?
Regards,
Evita.
Members Equity Bank Pty Ltd
AU
I have tried that and the issue still exists if I just have refresh section
Members Equity Bank Pty Ltd
AU
Can someone please respond to this
Pegasystems Inc.
IN
Hello Binod,
As per my understanding , you are saying the refresh section and datatransform are getting executed even when you click on the already selected radio button . Is it?
If so , then this is an expected behaviour. The change event will get triggered when ever you are trying to focus for click and change on that particular element.
Please let me know whether my understanding is correct.
Thanks & Regards,
Durga
Members Equity Bank Pty Ltd
AU
Then why do we have two separate events click and change??
Pegasystems Inc.
US
Hi Binod,
The post is quite ambiguous. Can you please explain more elaborately on the issue.
Regards,
Rachit
Members Equity Bank Pty Ltd
AU
Rachit,
The expectation is that the change event is fired only if the value on the radio button is changed. However we observe that the actions are called even if we click on the same value
Pegasystems Inc.
US
Hi Binod,
So, for the radio button configuration, there is an internal click already present. So, even if you do not create an external click event, actions will be called on click of radio button.
This is an expected behavior.
Regards,
Rachit
SiXworks Limited
GB
I was able to reproduce this on Pega 7.1.5, simply configuring pyNote as a radio button and adding an On Change - Refresh this Section.
The OP is trying to only refresh the section and run an activity when a different value is selected, if my understanding is correct. What is actually happening is that the "On-Change" is being triggered when the same value is selected in the Radio Buttons. I would have expected no refresh to occur in this instance.
Accepted Solution
Pegasystems Inc.
IN
Hello,
On reviewing the SR we see that it was resolved and a Support Article was published with the resolution. Please refer to the Support Article if you have the same question: Change event does not work correctly with pxRadioButton
Thank you.