<?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>Not getting selected item in search dialog box</title><link>https://www.aras.com/community/f/applications/36041/not-getting-selected-item-in-search-dialog-box</link><description>Hello, 
 I have a Document relationship on Part ItemType. I have added a method on &amp;quot;OnBeforeNew&amp;quot; client event of that relationship. When I add a new relationship from the form a search dialog box gets open and it shows me all the Document item present</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/8038?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 07:03:23 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:efb8ba2c-30e6-4b14-a50f-0a809388aece</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;var documentItems = aras.itemsCache.getItemsByXPath(&amp;quot;//Item[@type='Document']&amp;quot;);&lt;br /&gt;for (var i = 0; i &amp;lt; documentItems.length; i++) &lt;br /&gt;{&lt;br /&gt; var documentId = documentItems[i].id;&lt;br /&gt; var inn = this.getInnovator();&lt;br /&gt; var documentItem = inn.newItem(&amp;#39;Document&amp;#39;,&amp;#39;get&amp;#39;);&lt;br /&gt; documentItem.setID(documentId);&lt;br /&gt; documentItem = documentItem.apply();&lt;br /&gt; if(documentItem.isError())&lt;br /&gt; {&lt;br /&gt; return aras.AlertError(documentItem.getErrorString());&lt;br /&gt; }&lt;br /&gt; if(documentItem.getProperty(&amp;quot;state&amp;quot;) == &amp;quot;Preliminary&amp;quot;)&lt;br /&gt; {&lt;br /&gt; aras.AlertError(&amp;quot;Preliminary cannot be added.&amp;quot;);&lt;br /&gt; return false;&lt;br /&gt; }&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/8036?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 13:06:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ffaa367d-1eaf-4925-93dc-8e86ac7fb931</guid><dc:creator>Chetanasing Hajare</dc:creator><description>&lt;p&gt;My use case is getting selected Documents data ( Such as Doc No, id) in the Search Pop up dailog in a client method which is hooked to&amp;nbsp;&lt;span&gt;OnBeforeNew Client events of the Part Document Relationship Itemtype.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After getting the data, i will add some validation code.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/8035?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 11:34:27 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:556a8b5d-7924-4132-8b6a-e27cbc69a2bd</guid><dc:creator>Gopikrishnan</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure your use case is getting the selected item in search dialog or not allowing user to select the document if it is used in any other parts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If second is the use case, you can add custom search filter while opening the search dialog&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/8033?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 09:46:53 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:cc7faf71-b219-4b35-894f-70dd19f101f4</guid><dc:creator>Chetanasing Hajare</dc:creator><description>&lt;p&gt;I am also working on similar use case. Any solutions for the above mentioned use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/5819?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 06:22:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8587709f-c869-46b5-bf94-71baae90a889</guid><dc:creator>shubh260393</dc:creator><description>&lt;p&gt;Once I have the item I need to check that the selected item should not be present in any other Document relationship of Part. If it is not present anywhere else then only I sholud allow it to attach in the Document relationship.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/5815?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 16:52:15 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3543e0af-b961-45f9-bf7b-72b7c708133e</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Could you also elaborate on what you want to do with the details of the selected item once you have them?&amp;nbsp;For example, are you trying to do some validation so that the user can only add certain items as a relationship?&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/5813?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 05:09:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:954ca3ce-2bb4-4a15-9291-1f2b8ecab4bb</guid><dc:creator>shubh260393</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;&lt;span id="login.version_html"&gt;Version:&lt;/span&gt;&lt;span&gt;&amp;nbsp;11.0 SP14 of ARAS.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have a method at OnBeforeNew client event of Realtionship. To add a relationship item, a search dialog box is opening. I want to get the details of the selected item in search dialog box. let me remind that the event is ONBeforeNew.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/8/MicrosoftTeams_2D00_image-_2800_2_2900_.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not getting selected item in search dialog box</title><link>https://www.aras.com/community/thread/5812?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 17:16:49 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f76b215a-6d9b-418a-b753-48c9606b23ce</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you provide some more details on what you&amp;#39;re ultimately trying to accomplish? Also, could you let us know what version of Aras Innovator you are using?&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>