cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to select multiple rows in table

Former Member
0 Likes
12,422

Hi

I am trying to achieve multiple row selection in table but is not able to achieve the same.

I have a table UI having model node as the data source.

Following are values of the node:

cardinality --> 0..n

initializeLeadSelection --> false

selection --> 0..n

singleton --> true

Following are values of the table:

compatibilityMode --> auto

enabled --> true

rowSelectable --> true

selectionChangeBehaviour -->auto

selectionMode --> multi

I have referred the tutorial "Developing with Tables in Web Dynpro" but with little help.

I have not written any kind kind of code to have the multiple row selection.

Can you help me please to determine how to achieve the multiple row selection in table.

Regards

Vineet Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Vineet,

You have to keep ctrl or shift pressed for selecting multiple rows. That is the correct and only way to select multiple rows in table UI at runtime. Or you can write a code so that the rows that you specify comes as selected when you run the application.

Answers (4)

Answers (4)

Jithink
Explorer
0 Likes

There is a simple way to Select all Rows

Shift + double-click the header

Former Member
0 Likes

Hi,

Its simple just set property of Table

selectionMode = multi

Regards

Raghu

Former Member
0 Likes

Hi

I have already tried with selectionmode as multi and cardinality as 1...n, but its not working.

If I use ctrl+shift, I am able to select the multiplle rows, but is this the right and only way to have multiple rows selected?

regards

Vineet Vikram

Former Member
0 Likes

Hi,

according to my knowledge we have to use ctrl key.

and to read the selected rows follow the following thread.

Regards,

ramesh

Former Member
0 Likes

Hi

keep cardinaity of node 0:n..

selection cardinailty 1:n

singleton :true

selection Mode:auto

hpe it hlps u

Regards

Khushboo

Former Member
0 Likes

Hi Vineet,

try with selection mode as multi no lead.

I hope you are trying to select multiple rows by keeping the ctrl / shift key pressed and clicking on the rows to be selected.

Former Member
0 Likes

Hi

I tried with selection mode as multiNoLead but its not working.

Just a wild guess, has it to do anything with CSS.

Regards

Vineet Vikram

Former Member
0 Likes

Hi,

That does not have any thing to do with CSS.

Just change your node property

selection = 1..n

Regards

Raghu