on 2009 Jan 28 3:42 AM
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have already answered this a thousand times here, please search the forum for "parameter mapping" and the implicit event parameter named "nodeElement".
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.