on 01-18-2008 5:16 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.