Get the Context Action Name in the Method

Hi All, 

I have Multiple Server Side Item Actions Configured on the Part Item , I want the logic/functionality to be performed by each action to be controlled by the same method .

In which case , is there a way to pass the Invoking action name to the Method so that based on the value I can chose the function to be performed.

For the above action , I want to get the action name "plm_Test" while invoking the method on the Item.

This would greatly help me in avoiding creating Multiple Methods for each Action.

Thanks.

Parents Reply
  • Hi Shruti,

    I right now want to build a similar CUI Menu with buttons like you did in this post a few month ago.

    Can you give me some hints regarding getting the Action or CUI Menu Button name with inArgs?

    I thought I could use inArgs.commandId  or inArgs.control.getId() to get the calling element.

    But none of my variants I tried so far did contain anything. Not sure what is missing. Would be great if you could tell me how you did it :-D . 

    Thanks!

    Angela

Children