cancel
Showing results for 
Search instead for 
Did you mean: 

Get Column ID from table

Former Member
0 Kudos

Hello everyone,

I have a table with 20 different columns (EX: A, B, C, ...) and one single row.

In each column, i have a UI element LinkToAction (LinkA, LinkB,...).

When i press the LinkToAction from any of these columns, all of them will go to the same Action method (Ex: DoThisAction).

My question is: how can i know from wich column (or UI element) did i get the call to the action ?

thank you in advance for any help.

Nuno Santos

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can achieve this by setting a fixed event parameter.

Add an action parameter "columnID" of type string and define a parameter mapping for each link with code like

wdDoModifyView()
{
  if (firstTime)
  {
     IWDLinkToAction linkA = (IWDLinkToAction) view.getElement("LinkA");
     linkA.mappingOfOnAction().addParameter("columnID", "A");
  }
}

Armin

Former Member
0 Kudos

Thank you very much, Armin. You have been very helpfull.

Answers (0)