<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Get the Context Action Name in the Method</title><link>https://www.aras.com/community/f/development/36580/get-the-context-action-name-in-the-method</link><description>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</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/11284?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2025 15:02:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:614edcbb-7253-4009-82d1-894ddf095c32</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Has anyone ever figured out how to get the name of the calling &amp;quot;Action&amp;quot; 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&amp;acute;t found a way to get the &amp;quot;Action&amp;quot; name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/7532?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 16:32:30 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7afb6054-69c6-4192-9d81-ebffb38b7793</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Shruti!&lt;/p&gt;
&lt;p&gt;Thanks for the hint!&amp;nbsp;Works excellent! The ability to get the calling element is really a big pro argument for CUI elements.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have a happy week!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Angela&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/7506?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 11:07:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0e8baee8-aa71-4850-a63f-f6904280c9c8</guid><dc:creator>ShrutiS</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;inArgs.&lt;/span&gt;control.id is what got me the button name &lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shruti Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/7485?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 10:07:32 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:0cd05c62-04bc-4950-872e-4e416256647f</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Shruti,&lt;/p&gt;
&lt;p&gt;I right now want to build a similar CUI Menu with buttons like you did in this post a few month ago.&lt;/p&gt;
&lt;p&gt;Can you give me some hints regarding getting the Action or CUI Menu Button name with inArgs?&lt;/p&gt;
&lt;p&gt;I thought I could use&amp;nbsp;inArgs.commandId&amp;nbsp; or&amp;nbsp;inArgs.control.getId() to get the calling element.&lt;/p&gt;
&lt;p&gt;But none of my variants I tried so far did&amp;nbsp;contain anything. Not sure what is missing. Would be great if you could tell me how you did it :-D .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Angela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/6888?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 09:09:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b8f2cf55-b31f-4471-89a7-ce83a582f576</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;CUI is the choice of the real professional!&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Haven&amp;acute;t tried this one with CUI so far, so your inArgs hint is also useful for myself. Not sure if I was really right with my Action solution. I think I mixed it up with a different issue. I checked my Actions again -&amp;gt; in reality I used small Methods that call the main Method with &amp;quot;dummy&amp;quot; property to indicate the calling Action. Your CUI solution is more elegant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/6881?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 16:08:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:748c79b7-e2f2-4379-818d-459904d140dc</guid><dc:creator>ShrutiS</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;Thanks for the response, for some response when I tried this.getAction() it returned the method name and not the Action name.&lt;/p&gt;
&lt;p&gt;I then switched to the CUI menu item and I am now able to get the resp menu button name in the inArgs parameter&amp;nbsp;&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get the Context Action Name in the Method</title><link>https://www.aras.com/community/thread/6874?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 08:13:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:31cca663-e966-4432-856a-c84ba06a92ce</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi ShrutiS,&lt;/p&gt;
&lt;p&gt;that&amp;acute;s a very good question! I myself searched two years for this one until I was able to find the most obvious solution:&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;br /&gt;return inn.newError(&amp;quot;This call comes from &amp;quot; + this.getAction());&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>