<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/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>rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/874/rname-metadata-not-respected-in-search</link><description>I have two custom modules with a 1-M relationship: Contract - ContractDetails 1 Contract has multiple Contract Details. In Contract Details the Contract appears as a relate field but I want the contract_number not the contract_name to be displayed. This</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/thread/3379?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 17:44:43 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:33bf85a5-3fbf-45f5-89d2-f4d0e01d9a5f</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p class=""&gt;&lt;span class=""&gt;I changed the default filter to be name OR number, this works though the number needs to be exact to match, partial matches won&amp;#39;t show as they do with names.&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;in custom/modules/&amp;lt;my_module&amp;gt;/clients/base/filters/default/default.php&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=""&gt;&lt;span class=""&gt;I added:&lt;/span&gt;&lt;/p&gt;&lt;pre class="language-php line-numbers"&gt;&lt;code&gt;&amp;nbsp; &lt;span class="string token"&gt;&amp;#39;quicksearch_field&amp;#39;&lt;/span&gt; &lt;span class="operator token"&gt;=&lt;/span&gt;&lt;span class="operator token"&gt;&amp;gt;&lt;/span&gt; &lt;span class="keyword token"&gt;array&lt;/span&gt;&lt;span class="punctuation token"&gt;(&lt;/span&gt;&lt;span class="string token"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="punctuation token"&gt;,&lt;/span&gt; &lt;span class="string token"&gt;&amp;#39;contract_number&amp;#39;&lt;/span&gt;&lt;span class="punctuation token"&gt;)&lt;/span&gt;&lt;span class="punctuation token"&gt;,&lt;/span&gt;&lt;span class="line-numbers-rows"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This allows the user to type the name OR the number in the SQS.&lt;/p&gt;&lt;p&gt;FrancescaS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/thread/3378?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 23:13:36 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4bbd15ee-c4ae-4e61-a8d2-266cb02a8739</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Awesome! Thank you!&lt;/p&gt;&lt;p&gt;I tried this and still have some problems with the matching but it&amp;#39;s given me something to think about.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/thread/3377?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 12:21:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ed991528-774a-4619-a158-adf30b699fc5</guid><dc:creator>ketan bhalerao</dc:creator><description>&lt;p&gt;Hi Francesca,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have figured out a way for that, but its Applicable to Complete Module&lt;/p&gt;&lt;p&gt;Suppose, we want to shift Account Module Search/Relate fields search from &amp;#39;name&amp;#39; to &amp;#39;custom_fields_c&amp;#39;&lt;/p&gt;&lt;p&gt;Then we can achieve it by using below 2 steps&lt;/p&gt;&lt;p&gt;1) In Defination of Related fields&amp;nbsp;&lt;/p&gt;&lt;p&gt;add &amp;#39;rname&amp;#39; =&amp;gt; &amp;#39;&lt;span&gt;custom_fields_c&lt;/span&gt;&amp;#39;&lt;/p&gt;&lt;p&gt;2) Check below file&amp;nbsp;&lt;/p&gt;&lt;p&gt;custom/modules/Accounts/client/base/filter/default/default.php&lt;/p&gt;&lt;p&gt;if not present copy it from module directory ie&amp;nbsp;&lt;span&gt;modules/Accounts/client/base/filter/basic/basic.php&lt;/span&gt;&lt;/p&gt;&lt;p&gt;In this file,&amp;nbsp;&lt;/p&gt;&lt;p&gt;please check &amp;#39;quicksearch_field&amp;#39; array&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please replace &amp;#39;name&amp;#39; with your custom field name&amp;nbsp;&lt;/p&gt;&lt;p&gt;e.g&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;#39;quicksearch_field&amp;#39; =&amp;gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;array (&lt;br /&gt; 0 =&amp;gt; &amp;#39;name&amp;#39;,&lt;br /&gt;),&lt;/p&gt;&lt;p&gt;3) Do Repair and Rebuild and you are done&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/thread/3376?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 15:52:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f345390d-89bc-47b5-8a5d-b0614c287148</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;I have not, sorry. I&amp;#39;ve not heard from anyone on this topic and have not had a chance to investigate further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: rname metadata not respected in search?</title><link>https://sugarclub.sugarcrm.com/thread/3375?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 15:32:24 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1024e4cf-76a3-469f-8847-fe57f1aafb53</guid><dc:creator>ketan bhalerao</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span style="color:#000000;background-color:#ffffff;"&gt;FrancescaS,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Have you managed to solve this?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;I have same problem&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>