on 02-08-2007 4:12 AM
Hai
How to select and deselect and invert all the checkboxes in webdynpro like in VB.
is it possible in Static checkboxes...
Regards
Dhinakar
Message was edited by:
Dhinakaran Jeyachandran
Of course this is possible.
For individual checkboxes (bound to boolean attribute), just set the attribute value.
For checkbox group (bound to multi-selection of a node), set the node selection as required, see <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/progmodel/api/IWDNode.html#setSelected(int,%20boolean)">Javadoc</a>.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dhinakar,
Inorder to select/deselct all the checkboxes onAction you can write the following code:
// Select All
for(int i=0;i<wdContext.node<node>().size();i++)
{
wdContext.node<node>().get<node>ElementAt(i).set<nodeElemet>(true);
}
//DeselectAll:
for(int i=0;i<wdContext.node><node>().size();i++)
{
wdContext.node<node>().get<node>ElementAt(i).set<nodeElemet>(false);
}
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.