cancel
Showing results for 
Search instead for 
Did you mean: 

For multiple item selection in Table

Former Member
0 Kudos

Plz use this code and paste it in perticular event of button. when u excute the application ,To select multiple items plz catch shift in keyboard otherwise u can select only single item.

int n = wdContext.nodeProducts().size();

int leadSelected = wdContext.nodeProducts().getLeadSelection();

// loop backwards to avoid index troubles

for (int i = n - 1; i >= 0; --i) {

if (wdContext.nodeProducts().isMultiSelected(i) || leadSelected == i) {

wdContext.nodeProducts().removeElement(wdContext.nodeProducts().getElementAt(i));

}

}

Accepted Solutions (0)

Answers (1)

Answers (1)

MG3
Contributor
0 Kudos

Hi Vishal

Thats the way the webdynpro table has been designed to work for multiple selection...on click of the Ctrl key or Shift key. There is no other alternative for this.

What would your question be?

Thanks

oj