Posted: 27 Jan 2017 9:22 EST Last activity: 27 Jan 2017 23:38 EST
pySelected with radio button is not getting true or false on clipboard
I am building a screen where user can select one row using radio button control on repeating grid. I tried using the following two controls but neither of them are working for me:
I tried Report Definition, Data Page (editable), and Page List for source of repeating grid but pySelected is not getting refreshed when selected. I also tried Refresh Section / Post value for action. How I did it was, I simply added an additional column and dragged a radio button control. Then I changed Radio Button to above two controls, and associate pySelected property. Do I need anything else or am I missing anything?
This is one of those issues for which the answer is greatly dependent upon the version of PRPC you have; you should make it a point to always include version info on all of your posts. Can you please supply?
Actions will not work on radio buttons (on click, on change etc). This is a known limitation that is due to the radiobutton controls having their own in built in actions that ensure only one in each group can be enabled at a time (when you select one, any other that you previously selected is unselected).
Do you actually need the clipboard to reflect the true / false value at the time the user makes the selection? The clipboard would get updated when the user submits the flow action.
I would suggest that you use the Pega 7 autogenerated pxRadioButtons rather than the older ones that you mentione above. I know that when you drop this into the grid it shows "option 1, option 2 and option 3" but you should find that at runtime it only renders a single radio button per row.
There is a solution on how to get the values to post to the clipboard as you select them discussed in the following support article:
Thanks, I did not know pySelected would not get populated until submission if it is used with radio button (if it is used with checkbox, it does get populated right after selected). In our case it is okay after submission refresh and I was able to accomplish what I wanted. Thanks for the info.