on 10-21-2008 9:22 PM
Hi,
I'm having a check box by group and i'm having 3 checkboxes. At one time only one check box should be checked, as like radio buton.
If i check the other checkbox, the another which is checked already should be unchecked and only one out of three should be checked at a time.
how to do this?
thanks & Regards,
Suresh
Thanks Armin. its working fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SureshKumar
please check this link.
You will find your answer for check box by group
http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
one work around could be that take a attribute of boolean type ,bind it with checkbox by group then in you code retrive the check box item
node.getChkGroupElementAt(i).getChkboxItem()
now according to the item you can enable or disable checkboxes by giving if conditions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want a radio button behaviour then you should use a IWDRadioButtonGroup (ByIndex or ByKey).
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Armin,
I'm using radio button group by index. Intially when i load the screen, none of the radio buttons should be checked. all should be in unchecked state.
But by default one will be checked. how to make all the buttons of the group unchecked, unless it is checked by the user..
how to do this??
Thanks,
Suresh
Clear the lead-selection of the context node used for the data binding.
Say you have a context node "Items" with an attribute "text" and you have bound the "texts" property of the radio button group to that attribute. Then either set "initializeLeadSelection" to false for the node "Items", or clear the lead-selection with
wdContext.nodeItems().setLeadSelection(IWDNode.NO_SELECTION);
Armin
Hi
Check out this link
http://help.sap.com/saphelp_nw04/helpdata/en/0a/16e94d251a164392f3a3415c6d643a/frameset.htm
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check out this blog,
https://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/library/uuid/b057594c-9064-2b10-24b8-977738d0c40a
Regards
Supraja
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.