cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping parameter in action of linkToAction in a table

Former Member
0 Kudos

Hello everbody,

I have a problem with parameter mapping.

I have a node:

NodeTest

-Name

-Id

I fill a table with this node (for instance 20 names), in this test scenario just with the value Name as a linkToAction.

Now I have an action "showNameInformation" with a parameter "nameId". This action should be fired from each linkToAction.

But how do I map each id of each Name to the action of each linkToAction element?

The table is in mode nw04Plus, so I cannot use a lead selection.

Has anyone a solution for me?

best regards

Joachim Meyer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Add a parameter named e.g. "row" of type IWDNodeElement to the action. Define the parameter mapping like this

link.mappingOfOnAction().addSourceMapping("nodeElement", "row");

In the action handler:

INodeTestElement typedRow = (INodeTestElement) row;

typedRow().getId(); /* ID in row where link was clicked */

You can also define the action parameter directly as type INodeTestElement.

Armin

0 Kudos

Thank you so much, it is working now

best regards

Joachim Meyer