on 07-30-2008 12:30 PM
Hi,
I have a table control, which contains data und a button. The button should start some action with the data from the row the button was pressed.
The User doesnot need to mark the row, so he can click the button in row, which are not lead selection.
How can I find out in which row he clicked the button?
Otmar
Thanks for fast respons,
>In CE
>
>use paramter mapping and map the nodeElement to this parameter
could you go into detail here, plz
Otmar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should have an action handler with a parameter of IWDNodeElement or Typed one.
Right click on the button from the Outline view
Select Parameter Mapping
You will see nodeElement at left side and the parameter created by you at the right side.
From right to left drag and drop this.
Regards
Ayyapparaj
Hi,
Create a parameter to the action handler of your button of Type IWDNodeElement or the typed one I<>Element
In CE
use paramter mapping and map the nodeElement to this parameter
In older versions
use the following code in wdDomodify
IWDButton button = (IWDButton)view.getElement("<Your Button>");
button.mappingOfOnAction().addSourceMapping("nodeElement", "nodeElement");
Assuming the name of the parameter is nodeElement.
From the buttons action handler you can access all the attributes of the element on which the action is performed using
nodeElement.getAttributeValue("<Your Attribute Name>");
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.