cancel
Showing results for 
Search instead for 
Did you mean: 

problem with multiple table row selection

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

nagarajan

I could not find solution for the problem in the link sent by u..Please send additional info to solve this multi select problem

Thanks in advance

sethu

Answers (1)

Answers (1)

Former Member
0 Kudos

Check the selection cardinality of all nodes in the binding chain (view context -> custom context -> component context -> model)

Armin

Former Member
0 Kudos

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