cancel
Showing results for 
Search instead for 
Did you mean: 

Select and Delect all checkboxex

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

What is the second statement good for?

Armin

Former Member
0 Kudos

Hi Armin,

I think only the second statement is enough to select/deselct all checkboxes.

Regards,

Jhansi

Former Member
0 Kudos

I don't think so

Armin