<?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>How can I pass additional event parameters in CUI elements?</title><link>https://www.aras.com/community/f/development/6095/how-can-i-pass-additional-event-parameters-in-cui-elements</link><description>Hi community, 
 does anybody know, if it&amp;#180;s possible to pass additional event parameters in CUI elements? 
 Example: I have three CUI menu buttons that do a more or less comparable job. The corresponding Methods just differ in a few lines of code. So I</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I pass additional event parameters in CUI elements?</title><link>https://www.aras.com/community/thread/3064?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 15:04:46 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:41ddf93d-61e9-47d1-a113-65f068d72852</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;I can confirm that&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="icon" title="Log"&gt;&lt;/span&gt;&lt;em&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;inArgs.control.GetId(); &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;works both for SP11 and SP15. In&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;&amp;nbsp;my case passing the name of the calling CUI element is a perfect solution for solving the task.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;Thanks for investigating this topic! &lt;br /&gt;Angela&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I pass additional event parameters in CUI elements?</title><link>https://www.aras.com/community/thread/3063?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 14:32:40 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:90109f21-f6bc-4de8-8f6f-25f868a9b4e1</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;You might be able to get the name of the button being called by using&amp;nbsp;&lt;span class="icon" title="Log"&gt;&lt;/span&gt;&lt;em&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;inArgs.control.GetId();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;. Based on the result of that function, you can use a switch statement or some conditional logic to run your location-specific code. Note that I tested this in 11.0 SP15, and you&amp;#39;ll need to do some verification to confirm that the control name is accessible through this object in every location. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;If this function is not accessible in all CUI locations, could you let me know what version of Innovator you are using, so I can try to find a common lookup in that version?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;Chris&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;Christopher Gillis&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="message-body-wrapper"&gt;&lt;span class="message-flex-body"&gt;&lt;span class="message-body devtools-monospace"&gt;Aras Labs Software Engineer&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>