on 12-05-2005 4:13 PM
Hi all
I have a rfc which fetches me a bunch of records and displays them in a table,say A.
I have to select multiple records from this table and hit a button to navigate to next screen..where I will review the selected entries from table A..
Cardinality is 0..N,Selection cardinality is 1..N.
and selection mode as "multi"
But I am not able to select multiple entries in tableA..
Pl send me some sample code which would help me solving this issue...
Thanks in advance
Hi gopi,
Check whether the node is multiselected using
wdContext.node<node name>().isMultiSelected()
For eg:
for(int k=0;k<wdContext.node<node name>().size();k++)
{
if (wdContext.node<node name>().isMultiSelected(k))
{
/* these statements will be executed only when the node is multiselected*/
}
}
Hope this helps you
Regards
Rohit
Message was edited by: Rohit Radhakrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
this is the code i have written.
int size = wdContext.nodeHeader().size();
IPrivateGetView.IItemElement e1 = wdContext.createItemElement("instance");
for(int i=0;i<size;i++)
{
if(wdContext.nodeHeader().isMultiSelected(i))
{
e1.setDel(wdContext.nodeHeader().getHeaderElementAt(i).getDel());
wdContext.nodeItem().addElement(e1);
}
}
// i am trying to add the selected rows from one table to another table.
By using above logic i couldn't select more than one row.
Can u help me how to select more than one row and add them to another table.
Thanks in advance.
Hi gopi,
check this out:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on advanced value help and object value selector - 9.htm
Hope this helps out,
Regards,
Nagarajan.
Check the selection cardinality of all nodes in the binding chain (view context -> custom context -> component context -> model)
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi gopi,
Also set he selection property of the node to 0...n.
Check this out
http://help.sap.com/saphelp_nw04/helpdata/en/d4/6ce9403070712ae10000000a155106/frameset.htm
Regards
Rohit
Message was edited by: Rohit Radhakrishnan
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.