on 12-02-2005 3:28 PM
Hi ,
I have a master column which is of type Link To action and my requirement is that when i click on a particular row link, i need to fetch the corrsponding values from the context. Now i tried context.currentNodeElement.getxxx but this doesnt work may be because my Node has a recursive node within it. Could you please suggest a way i can do this.
Even passing the row id as a parameter to the method which handles this would be useful.
Thanks,
Harish
Harish,
What WD version are you using?
If it is SP14 then you can map "nodeElement" of IWDLinkToAction onAction event and receive it as parameter.
If it is lower version you may try getTreeSelection on recursive node.
See /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii
Valery Silaev
EPAM Systems
Message was edited by: Valery Silaev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which SP are you using? As Valery said, in newer versions, the node element corresponding to the selected UI element is implicitely passed to the event handler.
To get access to it as an event handler parameter, you have to define a parameter mapping. Try something like
wdDoModifyView():
if (firstTime)
{
IWDLinkToAction link = (IWDLinkToAction) view.getElement("<LinkToAction ID>");
link.mappingOfOnAction().addSourceMapping
(
"nodeElement", // name of implicit event parameter
"selectedElement", // name of action parameter
);
}
Define an action parameter "selectedElement" of type IWDNodeElement (or use the generated node element type). Then the action handler method parameter "selectedElement" will contain the node element for the selected link.
Armin
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.