cancel
Showing results for 
Search instead for 
Did you mean: 

Determining Selected LinkToAction element in a Table

Former Member
0 Kudos
59

Hi!

I'm working on a WD Project where I have a table with LinkToAction elements. My problem is that I need to get the data of the row where the LinkToAction element was pressed. The Table does not allow selection (via the squares), and has to rely on the LinkToAction onAction event.

Does anyone know how to do this without relying on LeadSelection (since LeadSelection refers to the selected row, but this Table doesn't allow selection)?

Would really appreciate an input or two on this. Thanks a lot!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

Check out this thread

Former Member
0 Kudos

Hi!

Thanks for that thread. It helped me find the right solution.

Answers (3)

Answers (3)

Former Member
0 Kudos

I have already answered this a thousand times here, please search the forum for "parameter mapping" and the implicit event parameter named "nodeElement".

Armin

Former Member
0 Kudos

Hi,

Yeah.. actually upin further research. I was able to find a comprehensive article about just. Just needed to know what I need to do.

Thanks for replying btw!

Former Member
0 Kudos

Hi,

int n = wdContext.nodeProducts().size();
	int leadSelected = wdContext.nodeProducts().getLeadSelection();
	for (int i = 0; i < n; i++)
		 {
		 	if (leadSelected == i) {
	IProductElement ele =
						wdContext.nodeProduct().getProductElementAt(i);

Date datesec = ele.getMyDate();
String ele222= ele.getName();
	
	}
	}

ele contains all the values u want

Check this code. Whether it will help u or not

Regards,

H.V.Swathi

Edited by: H.V Swathi on Jan 28, 2009 5:48 AM

Former Member
0 Kudos

Hi,

have you tried this code

Private<name>View.I<value node name >Node node = wdContext.node<value node name >();

Private<name>View.I<value node name>Element ele;

ele = node.get<value node>ElementAt(node.getLeadSelection());

Regards,

ramesh

Former Member
0 Kudos

Hi,

Thanks for replying, but that is the current implementation. It returns the selected row, not the clicked link.