<?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 open an item I just created via an action?</title><link>https://www.aras.com/community/f/development/36970/how-can-i-open-an-item-i-just-created-via-an-action</link><description>Hi all, 
 
 I have a client method that calls a server method to create an item based off some properties on the context item. 
 
 How can I display the new item in a tab after it is created by the server method?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I open an item I just created via an action?</title><link>https://www.aras.com/community/thread/7650?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 15:31:59 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e6056457-4147-494a-b910-1031e4071447</guid><dc:creator>Morgan</dc:creator><description>&lt;p&gt;Thank you, I will give this a try. I was missing this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;var resItem=aras.newIOMItem(&amp;quot;&amp;quot;);
resItem.loadAML(res);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I open an item I just created via an action?</title><link>https://www.aras.com/community/thread/7648?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 15:26:06 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6170221e-55ef-4ba4-874a-5cf964c71594</guid><dc:creator>alaxala</dc:creator><description>&lt;p&gt;if your server method looks like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;...
Item item=newItem(ItemType, &amp;quot;add&amp;quot;);
item.setProperty(...);
Item res=item.apply();
return res;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;you can&amp;nbsp;get the result like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;var res=aras.applyMethod(&amp;quot;MyMethod&amp;quot;,&amp;quot;&amp;quot;);
var resItem=aras.newIOMItem(&amp;quot;&amp;quot;);
resItem.loadAML(res);
aras.uiShowItem(resItem.getType(), resItem.getID());&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I open an item I just created via an action?</title><link>https://www.aras.com/community/thread/7646?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 14:39:26 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:471bfcda-98c2-4e7f-a8a5-6b12dc99a37a</guid><dc:creator>Morgan</dc:creator><description>&lt;p&gt;Thanks for this, I guess I am unclear on how to return the ID of the new item from the server side method to the client side method that called it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I open an item I just created via an action?</title><link>https://www.aras.com/community/thread/7643?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 07:54:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:eef69da6-bb59-414d-a343-7e061907d316</guid><dc:creator>alaxala</dc:creator><description>&lt;p&gt;aras.uiShowItem(ItemTypeName, ItemID);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>