<?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>Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/f/development/37532/refreshing-of-main-search-grid-after-creating-a-new-revision</link><description>Hello, 
 Is there a way to refresh the Main Search Grid after creating a new revision of an Item? 
 I have an action &amp;#39;Create New Revision&amp;#39; which has a method On Complete which refreshes the Item. For that case I&amp;#39;m using &amp;#39;parent.onRefresh()&amp;#39;. The method</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8658?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2022 07:33:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b58ae440-037e-4bde-93dd-96c6e575bb13</guid><dc:creator>Slavena Koleva</dc:creator><description>&lt;p&gt;Hey Angela,&lt;br /&gt;&lt;br /&gt;Sorry about that, I was busy in&amp;nbsp;a project.&amp;nbsp;&lt;br /&gt;I just tested it but it didn&amp;#39;t work. I guess that it can be because of the Aras version that I&amp;#39;m using (12SP18). The &amp;#39;window.isItemsGrid&amp;#39;, &amp;#39;window.updateRow(...)&amp;#39; and &amp;#39;options&amp;#39; don&amp;#39;t exist in my context (the method OnComplete of the Action).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8650?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:09:43 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b6230c58-de06-4728-8716-9e3190ab75ab</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Skoleva,&lt;/p&gt;
&lt;p&gt;you still own me the test result! That was part of the deal.&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I wouldn&amp;acute;t have shared this one to a partner if it would not bring myself a benefit. So don&amp;acute;t forget it!&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f60e.svg" title="Sunglasses"&gt;&amp;#x1f60e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8621?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 14:15:57 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3d23bb73-7bb6-4d28-aa80-5b3e3489770b</guid><dc:creator>Slavena Koleva</dc:creator><description>&lt;p&gt;I will test it, thank you &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8620?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 14:13:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:bc5bc156-1d71-4990-b81d-929eba32277f</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Ahh the runSearch trick. &lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt; I somehow like the fact that partners sometimes use my most&amp;nbsp;shady workarounds for premium customer projects.&amp;nbsp;&amp;nbsp;&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f604.svg" title="Smile"&gt;&amp;#x1f604;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You&amp;acute;re invited to test out this one and let me know the result.&lt;/p&gt;
&lt;p&gt;if (window.isItemsGrid) {&lt;br /&gt; window.updateRow(aras.getItemById(options.itemTypeName, itemID, 0));&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;I haven&amp;acute;t tested this one yet case I didn&amp;acute;t had a proper use case yet.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8615?ContentTypeID=1</link><pubDate>Tue, 02 Aug 2022 08:43:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:cf582b19-5d2b-4752-b6fe-9cc2583c364c</guid><dc:creator>Slavena Koleva</dc:creator><description>&lt;p&gt;I found a workaround. Not sure if this is the right way to do it but it works for now &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; Here is the code that I&amp;#39;m using now:&lt;br /&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;const topWindow = aras.getMostTopWindowWithAras(window); 
if (topWindow.work &amp;amp;&amp;amp; topWindow.work.grid) 
{
    main.work.searchContainer.runSearch();
}
else
{
    parent.onRefresh();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Actually, the &amp;#39;if&amp;#39; is taken from one of your projects, Angela &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;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8607?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 09:04:04 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b9f4d6c0-2c49-444a-babb-12d0bc629549</guid><dc:creator>Slavena Koleva</dc:creator><description>&lt;p&gt;The main method is a server-side, the method On Complete is a client-side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using an Action.&lt;/p&gt;
&lt;p&gt;The server-side method returns the new revisioned item but sometimes it doesn&amp;#39;t work properly and the item is not &amp;#39;refreshed&amp;#39; somehow.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Refreshing of Main Search Grid after creating a new revision</title><link>https://www.aras.com/community/thread/8606?ContentTypeID=1</link><pubDate>Mon, 01 Aug 2022 08:56:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ed76c469-e318-46ab-a911-936ca9dba6c9</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;The art of proper refreshing item is hard to master. Some questions first:&lt;/p&gt;
&lt;p&gt;Do you use a client or server Method or both combined?&lt;/p&gt;
&lt;p&gt;Do you use an Action or a CUI element?&lt;/p&gt;
&lt;p&gt;Do you return the new revisioned item in your Method? That normally does the trick for server Method.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>