cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter Mapping

Former Member
0 Kudos

Hello all,

I have written the following code in my wdDoModifyView code of a view. I am using NWDS 7.0. I need to do parameter mapping to handle a Tree Event. The code is

if (firstTime) {

IWDTreeNodeType treeNode =

(IWDTreeNodeType) view.getElement("tnt_ProductHierarchy");

treeNode.mappingOfOnAction().addSourceMapping(

"path",

"selectedElement");

}

Now i want to use the "selectedElement" in my code for handling Tree Selection Event. But it is not happening. I have done organize imports also. What can be the problem?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Problem is solved. The solution is:

"The name of the event parameter to which is mapped must correspond to the parameter of the event handler. In this example, the parameter is called element."