cancel
Showing results for 
Search instead for 
Did you mean: 

Action for Table Cell Editor with LinkToAction

Former Member
0 Kudos

HI All

I would like to have action for table cell editor which have LInktoAction. On clicking user should be able to see another window. After clicking user should be able to send some values from the row where user have clicked(but user clicks on LinkToAction only).

Kindly suggest me apt solution.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Assign an action to LinkToAction.onAction event.

Map event parameter "nodeElement" to action parameter "row" (type IRowsElement, where "Rows" is table data source node).

Do it in the view designer (if available) or by code:

wdDoModifyView()
{
  if (firstTime)
  {
    IWDLinkToAction link = (IWDLinkToAction) view.getElement("LinkID");
    link.mappingOfOnAction().addSourceMapping("nodeElement", "row");
  }
}

Armin

Former Member
0 Kudos

Hi Armin

I understand that solution given by you is for dynamic actions.

I have design time table with custom column(this column is not there in design time binding) which is populated based on some conditions. This column contains LInkToAction.

How can I do at design time.

Former Member
0 Kudos

This works also for columns created at design time. In newer IDE versions, you can define this parameter mapping in the view designer (Outline view -> context menu -> Parameter Mapping), in older ones, you have to put this lines of code into method wdDoModifyView().

Armin

Former Member
0 Kudos

Thanks for information. I donot options in NWDS but I am trying to do with coding.

IWDLinkToAction editor = (IWDLinkToAction) view.getElement("LinkToAction");

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

and in Action I tried to add element 'row' as type ITablePerformanceElement row.

My idea is to use row.getCellA() method retrive row clicked.But I have not found

ITablePerformanceElement type in my NWDS. I am using Version: 7.0.09 of NWDS.

Can you please tell me where I can find this ITablePerformanceElement type.

Former Member
0 Kudos

> Can you please tell me where I can find this ITablePerformanceElement type.

Adding parameter, select "...", then "Java Native type", "Browse" and type "ITablePerformanceElement", then in Qualifier field find "IPrivate<YourViewName>".

Former Member
0 Kudos

Thanks for reply. But I am not able to see ITablePerformanceElement. I followed same steps that you have shown me here.

Is it problem with NWDS Version?

Former Member
0 Kudos

Thanks all for good suggestions. I used Table compatability method to resolve.

Answers (0)