Hello,
Trying demo like, I have an aggregate GetPhases, here using IsSelected attribute, using for radio button value on screen. If you check below image the value is reflecting correctly for IsSelected as per given condition in aggregate but when I am using it on screen, all radio button values are given true condition but it should select "true" for Phase1 only.
Any Idea.
Thank you.
On Browser:
For RadioButton4 assigned same value as RadioGroup2.
Hi Shubham,
The RadioGroup widget's Variable property mapping is correct in your implementation, but make sure that you set the RadionButton widget's Value property with a boolean True value as shown below.
Other than that, I guess you should use the checkbox widget instead of the RadioButtonGroup widget for this use case.
I hope this helps you!
Kind regards,
Benjith Sam
Hi Benjith,
thankyou for your time. For checkbox it is working fine but the requirement is like, have to use radio button, I tried as you suggested but it is not working, and here I have question like why have to use "True" boolean value for radio button. it should give result as per the list.
Thanks.
I just try this one more time and now it is working fine.
Thanks for the solution. Can I know the logic behind this, why have to choose "True" for radio button value.
Cheers.
You're welcome, Shubham. Glad to help you :)
The logic behind why choose "True" for the radio button value:
This is how the RadioGroup widget works: If the RadioGroup Variable value matches any of the associated RadioButton Value then it get selected.
In your case, the possible radio button value can be either True or False value. So, If I set the RadioButton value to True then all those RadioGroup with variable value True will get selected.
Refer to this link: Pick_Only_One_Option_in_a_Group_of_Choices
Still I would say RadioGroup widget is not the suitable pattern to be used for your use case.
Is your use-case is pick only one option or to use radio button which can be de-selected? In both case you will have to use checkbox with a slight customization.
Kind reards,
Hello Shubham, you are passing current record to every radio button (if its under list then its possible)and right now ,your current record i.e first record is true so every radio button is in true. for this your radio button needs under the same list (getPhase) and then you send current record so it will be solved - drag list - give list parameter as getphase.list - drag radio button - give value as current.Isselected
It will be really helpful, if you share the OML hope above explanation, will helps you Thanks and Regards,
Akshay Deshpande
Hi Akshay,
Thanks for your time.
Already the radio button is under the list but it is not working.
its not seems can you share the oml if possible ?
your radio buttons are taking value of the first(current) element of your aggregate.
Are you using your radio buttons inside a list? if not, then please use your radio button inside a single list and assign the aggregate to your list element and then assign isSelected to your radio button.
I tried to copy your scenario and attached as OML.
Hope it helps.
Hi Jozy,
yes it is inside list but still it is not working.
did you checked the OML i shared?
I just applied this and as Benjith suggested it was the condition have to apply to radio button.