cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple selection of rows in table

Former Member
0 Kudos

HI,

can any one tell how to dispaly the rows selected(multiple selection) in one table can be displayed in another table in 2nd view.

Regards,

A.K

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

i got solved

Thanks

Former Member
0 Kudos

For selecting multiple rows from the first view set the node property "selection" to 0..n of the first view which is binded to the Table UI element.Also select the Selection property of the table UI element to multi instead of automatic.In the second view make the cardinality of the node which is going to accept the values make it to 0..n.If multiple rows are not selected then make sue of the 'Ctrl' key.Also the above coding has to be included.

Any Queries then do respond.

Regards,

Yusuf.

Former Member
0 Kudos

Hi,

1.Iterate through the node bound to the table

2 Add the selected elements to a List.

3.bind this list to a node

4.Bind this node as the datasource for the second table.

Ex:

ArrayList selectedElements = new ArrayList();

for (int x=0; x< wdContext.nodeTest().size(); x++)

{

if( wdContext.nodeTest().isMultiSelected(x) )

{

// Selected Element

IWDNodeElement nodeElement = wdContext.nodeTest().getElementAt(x);

selectedElements.add(nodeElement)

}

}

wdContext.nodeSeondNode().bind(selectedElements);

Regards

Ayyapparaj