cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform clickable event on Table view

Former Member
0 Kudos

hi!

I am using tableview element to display my content.

Now i want to perform clickable event on row so that on clicking particular row i can show the details of that particular row in other view.

Regards

Parth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use Table.onLeadSelect.

Armin

Former Member
0 Kudos

hi armin!

Thanks for ur reply can u be more comprehensive.

How can i get the index of that row.

Regards

Parth

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

There is a property called onLeadSelect in Table. Create an event handler for it and write this code there.

OnLeadSelectAction{

String a=wdContext.current<node>Element().get<Att>();

wdthis.wdFireplug<DisplayView>();

}

Do the corresponding mapping to get the value in the display view.

Regards,

Vijay

Former Member
0 Kudos

1) <valuenode>.getLeadSelction() should give you index of selected row.

2) If table selection is multiple, you can loop through the node and check for <valuenode>.isMultiSelcted(index)

If the selection mode is single.. you can access data

using current<valuenode>Element..

Former Member
0 Kudos

Hi Abhijit,

regarding #2, i am facing a strange problem. If more than one row is selected, the <valuenode>.isMultiSelcted(index) returns true only for the lead selected row. For the other selected rows it return false. Would you know how to get rid of this.

Note that the problem is there only in case if i try to do this in the onLeadselect method. It works fine if i do this in a method which is called on click of a button !!!

In my case, i have a requirement wherein i need to find out which are the selected rows on click of any row in the table.

Answers (0)