cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with multiple selection

Former Member
0 Kudos

Hi all,

I have a table which is bound to a model node. I have to multiselect some rows from this table and display them in another table in another view.

But i am unable to select multiple rows in the table.

When i am doing the same using value node , i am able to select multiple rows from the table.

Can any one clarify on these.

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Nodes have a property called selection.. it should be 0..n or 1..n for multi -selection...

Regards

Bharathwaj

Former Member
0 Kudos

Hi

Well you can make use of a supply function. Change the selectionproperty of table to none.

Bind the model node to the table. Now to the model node to which the table ui element is bound add a value node of cardinality 0..1 and add a value attribute to it. In the properties of the value node create a supplyFunction.

Refer this link for detailed screenshot info.

/people/sap.user72/blog/2005/03/15/supply-functions-in-webdynpro

In the above link he has added a boolean checkbox column which is true if customer phone and fax are equal at the time of populating the model node. You can instead just use it to create a checkbox.

You can then easily select it and accordingly handle it in your code.

Though multiselected property is there, selecting it sometimes creates problems. The above solution is another way of doing it.

regards

Ravi

Former Member
0 Kudos

Hi gopi,

Try this method of doing yar.This should work.

wdContext.node<node name>().isMultiSelected();

Hope this helps u,

Regards,

Nagarajan.