cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Parameters to Action

Former Member
0 Kudos

Hi,

I have a table with five colunms, and i have <i>linkToAction</i> UI elements in all the columns. All the <i>linkToAction</i> elements point to the same action, say <i>Action1</i> which takes two parameters (for identifying the cell that the user has selected).

How to pass the parameters to the <i>Action1</i>? I checked in the properties of the <i>linkToAction</i> UI element, and found nothing.

Any one can help?

Thanks,

Venkat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

add the parameters in the wdDoModifyView for the links. add them there and then pull them out of the wdEvent in the action handler

Former Member
0 Kudos

Hi all,

Thanks for the replies.

I am able to pass parameters to the action as Kanwalpreet told.

Regards,

Venkat

Answers (2)

Answers (2)

former_member185029
Active Contributor
0 Kudos

Hi,

You will have to dynamically map action to the URL and create binding.

It cannot be done through configuration.

Ashu

Former Member
0 Kudos

Hi Venkat,

In your NWDS under WD perspective, you will get a tab called action wherein you can define your action and the parameters that it will take and once you define your action you can bind your LinkToAction UI element to the OnAction property.

You can goto implementation tab and write your business login inside your Action.

Regards,

Murtuza