<?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>Preselect Effective when users open document</title><link>https://www.aras.com/community/f/applications/36126/preselect-effective-when-users-open-document</link><description>Can anyone tell me how can i preselect Effective on documents when user opens the search grid as can be seen below</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/10747?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:22:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:691f5f30-0407-48a4-bca4-1b24edc35456</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Yes! It&amp;acute;s possible for admins to write custom settings into the individual user &amp;quot;Preferences&amp;quot;. But people can still overwrite them later. Sometimes you have will to reset user Preferences for bug fixing reasons and of course need to update the stuff&amp;nbsp;again. The AML query itself is not the easiest one. And each upgrade will probably enforce a reset of the preferences. It will be FUN!!! Do it and let me know your experience! Thanks! :)&lt;/p&gt;
&lt;p&gt;My previous tests with Preference overwrites never made in into production.&amp;nbsp;That&amp;acute;s the reason why I right now embed it in the training. In our case changing the query type it&amp;acute;s more a recommendation, not a strict rule.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But just as I am writing this text I have a better idea:&lt;/p&gt;
&lt;p&gt;--&amp;gt; We can always replace the existing&amp;nbsp;CUI elements with our own variants!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make a duplicate of CUI element &amp;quot;searchview.commandbar.default.querytype&amp;quot; and use your own init Method. Using a custom element will overwrite the dropdown&amp;nbsp;for the ItemTypes where you use it.&lt;/p&gt;
&lt;p&gt;Your init Method will be 99% identical.&amp;nbsp;Don&amp;acute;t change the default list! Just select another init value in this code line:&lt;/p&gt;
&lt;p&gt;const queryTypeValue = aras.getPreferenceItemProperty(&amp;#39;Core_ItemGridLayout&amp;#39;, itemTypeID, &amp;#39;query_type&amp;#39;, &amp;#39;&lt;strong&gt;Current&lt;/strong&gt;&amp;#39;);&lt;/p&gt;
&lt;p&gt;Maybe add some hints in the Method that it&amp;acute;s a duplicate from something else and why you do it.&lt;/p&gt;
&lt;p&gt;In theory you could also just modify the original Method to use a different default dropdwon value for your specific ItemType. But modifying OOTB Method is always messy in package exports and upgrades.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;acute;t tested it, but I expect it to be perfect!&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;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/10743?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 17:09:49 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:2c7352ab-4c6c-463c-9478-87f22822772e</guid><dc:creator>Dennis Knippel</dc:creator><description>&lt;p&gt;Hmmm, perhaps the Save Layout function could suffice....but, that would have to be setup individually on each user&amp;#39;s account right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/10739?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 15:22:37 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6afee3e6-7518-408e-9100-5d21846d7bcb</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Happy new year!&lt;/p&gt;
&lt;p&gt;The post is quite old. In the past these kind of grid elements were rendered by codetree functions. In modern Innovator versions they were replaced&amp;nbsp;by CUI components. For the query type rendering see Method &amp;quot;cui_svcb_querytype_init&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I not sure if it&amp;acute;s wise to change search query type on a general level. Keep in mind that it affects all versioned ItemTypes!&lt;/p&gt;
&lt;p&gt;We have a similar scenario with one ItemType where we want users to mainly work with &amp;quot;Released&amp;quot; Documents.&lt;br /&gt;We right now use the &amp;quot;Save Layout&amp;quot; function and sell it as a &amp;quot;secret feature&amp;quot; during the training session :).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Angela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/10718?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 19:15:38 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ea81ad8e-4d71-4ec6-9c25-d53bb9cea95c</guid><dc:creator>Dennis Knippel</dc:creator><description>&lt;p&gt;&lt;a href="/community/members/angela"&gt;AngelaIp&lt;/a&gt;&amp;nbsp;, I am attempting to do&amp;nbsp;a similar&amp;nbsp;thing --&amp;gt; preselect &amp;#39;Released&amp;#39; when users open the search grid.&amp;nbsp; I followed your suggestion WRT modifying&amp;nbsp;..Client\javascript\search_mode.js, but was unable to find success.&amp;nbsp; Could you perhaps provide a little more insight?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/5955?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 07:43:10 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:32f51a8d-0c1e-491a-bb81-a527057c94ff</guid><dc:creator>hkhan</dc:creator><description>&lt;p&gt;Hi i want this only for documents&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Preselect Effective when users open document</title><link>https://www.aras.com/community/thread/5954?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 07:39:23 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:be2b4976-4dc2-43ac-8227-e6939ddcae30</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Do you want to do this for all items types or just for Documents? Maybe you can modify ..Client\javascript\search_mode.js in the codetree .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>