Posted: 20 Nov 2017 22:28 EST 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
Configure a pxRadioButton with an change event to refresh the section . Click on the same value and observe that the activity is getting called and the section is getting refreshed.
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.
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
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.