on 06-20-2008 9:20 AM
Hi,
I've created a radiobuttongroupbyindex and when I choose any option an event is launched that sends me to a second view, the problem is that my group always has an option preselected by default and then I can't never choose the first option. I'd like to have the selection cleared by default.
I read the following post:
And I guess that I should use IWDNode.NO_SELECTION, but i don't know how I should use it. The radiobuttongroup is created with the ouput of a RFC.
Thanks in advance for any help you could provide me.
Hi,
I guess radiobuttongroupbyindex's selectedkey is bind to some context value. To deselecting the radio button, you can set the context value to blank.
It work for me.
Regards,
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to bind selected keys of radiobuttonGroupbykey and dropdownbuttonbykey to the output of my RFC but nothing is dispIayed, so I tried to use radiobuttongroupsbyindex and dropdownbyindex and then... bingo! My radios and dropdowns are displayed, but I can't pre-select/deselect with this second option, I don't know which is equivalent to selectedkey when using XXXXXXXbyindex elements.
if you are using RadioButtonGroupByIndex UI:
sol
1. Go to Context, select the node which is binded to RadioButtonGroup element and make the contexts' initializeLeadSelection property to false;
2. wdContext.node<RadioButton>.setLeadSelection( -1); will deselect all RadioButtons in the group.
nikhiL
I would not use a radio button selection to navigate to another view. This is confusing for a user. The selection of a RadioButtonGroupByIndex is the lead selection of the bound context node. Thus to deselect the radio button group, set the lead selection of the context node to IWDNode.NO_SELECTION or just -1.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wdContext.node<RadioButton>.setLeadSelection( -1) was what I was looking for, thanks to all for your time.
Armin, probably it's a bit confusing the navigation through radiobuttons, but our customer wants this functionality because it reduces the number of clicks needed to advance through the views.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.