cancel
Showing results for 
Search instead for 
Did you mean: 

How to get row in table control

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for fast respons,

>In CE

>

>use paramter mapping and map the nodeElement to this parameter

could you go into detail here, plz

Otmar

Former Member
0 Kudos

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

Former Member
0 Kudos

Another possibility is to use the forum search.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

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