on 01-29-2008 12:57 PM
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
i got solved
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.