Forum Discussion
Hi Angela,
Thanks for the response, for some response when I tried this.getAction() it returned the method name and not the Action name.
I then switched to the CUI menu item and I am now able to get the resp menu button name in the inArgs parameter [emoticon:c4563cd7d5574777a71c318021cbbcc8]
Regards
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
- ShrutiS5 years agoIdeator I
Hi Angela,
inArgs.control.id is what got me the button name [emoticon:c4563cd7d5574777a71c318021cbbcc8]
Thanks,
Shruti Suresh
- AngelaIp5 years agoIdeator I
Hi Shruti!
Thanks for the hint! Works excellent! The ability to get the calling element is really a big pro argument for CUI elements.
Have a happy week!
Angela
- AngelaIp3 months agoIdeator I
Has anyone ever figured out how to get the name of the calling "Action" item? I have a legacy use case were a couple of Actions items are still used with many similar Methods. I want to unify them first before switching to CUI. But right now I haven´t found a way to get the "Action" name.