<?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>Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/1052/is-it-possible-to-convert-a-relate-field-to-a-multienum</link><description>Currently I have a custom module (&amp;#39;Brands&amp;#39;) with a many to many relationship to the Contacts module. The desired outcome is for it to be a multienum to allow the user to select multiple brands via the dropdown of which, on save, will each be related to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15978?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 12:28:03 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:60d445c3-5130-42db-9d05-694672a54358</guid><dc:creator>Brian Demchok</dc:creator><description>&lt;p&gt;Hello!&amp;nbsp; I am just curious do you know if this fix is mobile app friendly?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15977?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 04:12:40 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:becac39b-802a-4b10-980b-d45de9510084</guid><dc:creator>Eka Indra</dc:creator><description>&lt;p&gt;Hi @AndreLope and &lt;a href="https://sugarclub.sugarcrm.com/members/steverose"&gt;Steve Rose&lt;/a&gt;&lt;/p&gt;&lt;p&gt;i want custom like that but i am new in sugarcrm can you give me reverence step by step , like create endPoint URL , and what file must add custom file.&lt;/p&gt;&lt;p&gt;thanks&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards Eka Indra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15976?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 12:34:38 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:c7664653-7f7c-44bb-807f-0257e2622052</guid><dc:creator>Steve Rose</dc:creator><description>&lt;p&gt;This was very helpful!&amp;nbsp;&lt;/p&gt;&lt;p&gt;There were&amp;nbsp;some things in the JS code I hadn&amp;#39;t considered doing which are done here so will be useful going forwards as well as I work with Sugar more.&amp;nbsp;&lt;/p&gt;&lt;p&gt;This appears to have fixed my issue I was facing when I bought it into my code. Certainly a lot more complicated than I initially thought though but good to have it working.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for the help and quick response!&lt;/p&gt;&lt;p&gt;Steve&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15975?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 12:01:16 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:72f37e9b-ef3b-4574-ad02-6da7b4c11f09</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;Copy the attached zip into custom/clients/base/fields and uncompress it.&lt;/p&gt;&lt;p&gt;Create a regular multienum field on module Contacts and add it into record view.&lt;/p&gt;&lt;p&gt;Create a custom endpoint which will return a list of Brands assigned to a given Account. The endpoint url should be something like that:&lt;/p&gt;&lt;p&gt;Accounts/brand_list/&amp;lt;AccountID&amp;gt;&lt;/p&gt;&lt;p&gt;The endpoint definition in the method registerApiRest of your custom endpoint class must looks like that:&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;getBrandList&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;strong style="color:blue;background:#FEFCF5;font-size:10.0pt;"&gt;array&lt;/strong&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;(&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;reqType&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;GET&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;path&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;strong style="color:blue;background:#FEFCF5;font-size:10.0pt;"&gt;array&lt;/strong&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;(&lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;Accounts&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;brand_list&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;?&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;),&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;pathVars&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;strong style="color:blue;background:#FEFCF5;font-size:10.0pt;"&gt;array&lt;/strong&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;(&lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;account_id&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;),&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;method&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;getBrandList&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;shortHelp&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;Get a list of Brands for a multi-select field&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;longHelp&amp;#39;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;=&amp;gt;&lt;/span&gt; &lt;span style="font-size:10.0pt;color:gray;background:#FEFCF5;"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom:.0001pt;background:white;"&gt;&lt;span style="font-size:10.0pt;color:black;background:#FEFCF5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10.0pt;color:#8000ff;background:#FEFCF5;"&gt;),&lt;/span&gt;&lt;/p&gt;&lt;p&gt;In the custom record view of Contacts edit the new multienum field in order to add the following attributes:&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;p&gt;&amp;#39;type&amp;#39; =&amp;gt; &amp;#39;enum-parent-api&amp;#39;,&lt;br /&gt; &amp;#39;api&amp;#39; =&amp;gt; &amp;#39;Accounts/brand_list/&amp;#39;,&lt;br /&gt; &amp;#39;parent&amp;#39; =&amp;gt; &amp;#39;account_id&amp;#39;,&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Update&amp;nbsp;the attribute &amp;#39;api&amp;#39;&amp;nbsp;with the endpoint from where you will fetch Brands assigned to the Account related to the current Contact. This endpoint must return a regular dropdown array.&lt;/p&gt;&lt;p&gt;Update the attribute &amp;#39;parent&amp;#39; with the name of account field, like account_id.&lt;/p&gt;&lt;p&gt;Go to Admin -&amp;gt; Repair -&amp;gt; &amp;quot;Quick Repair and Rebuild&amp;quot; and Admin -&amp;gt; Repair -&amp;gt; Clear additional Cache&lt;/p&gt;&lt;p&gt;I hope this helps you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15974?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 11:23:30 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:57cdd5ab-7b20-410d-a895-0e924322c535</guid><dc:creator>Steve Rose</dc:creator><description>&lt;p&gt;&lt;em&gt;Just to be transparent this is an alternative I have considered which may or may not be slightly easier to implement.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;A work around could be that on create of a contact when the user clicks &amp;#39;Save&amp;#39; the page goes straight to the &amp;#39;Link to existing records&amp;#39; page (which the user could get to via the button in the Brands subpanel) and a custom filter is applied to it (if that is possible) so they are prompted to add related brands. This would therefore be using&amp;nbsp;Sugars &amp;#39;out the box&amp;#39; mass apply screen with some slight customisations instead of the multi select.&lt;/p&gt;&lt;p&gt;Just a thought in case what I&amp;#39;m trying to do isn&amp;#39;t achievable. &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15973?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 11:08:06 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:1b4a8a2b-4cec-4048-914a-82be0912cf8c</guid><dc:creator>Steve Rose</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Yea pretty much.&lt;/p&gt;&lt;p&gt;It&amp;#39;s basically trying to achieve what &amp;#39;Link to existing records&amp;#39; does but via a multienum so theoretically as a user a sample flow would be:&lt;br /&gt;1) Create a contact&lt;/p&gt;&lt;p&gt;2) Select an account&lt;/p&gt;&lt;p&gt;3) Select one or more brands from the multi enum (populated based on your &amp;#39;Account&amp;#39; selection) to relate to the Contact.&lt;/p&gt;&lt;p&gt;4) Save.&lt;/p&gt;&lt;p&gt;So far I have it so the brands multi select&amp;nbsp;populates based on the Account but its whether that can be turned into a relate field so any brands that are selected would each be related to the Contact.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to convert a relate field to a multienum?</title><link>https://sugarclub.sugarcrm.com/thread/15972?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 10:58:11 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:e1f75fb8-9eee-4fd9-8e9b-c79b78c5ffdd</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://sugarclub.sugarcrm.com/members/steverose"&gt;Steve Rose&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As far I understand you want to&amp;nbsp;choose Brand records from a multienum field in a module record, right? And the list of Brand to be displayed on that multienum field is filtered by some other criteria, like Brands assigned to the related Account, right?&lt;/p&gt;&lt;p&gt;If I properly got the idea,&amp;nbsp;your request is not easy to implement, although it is possible to.&lt;/p&gt;&lt;p&gt;Let me know if I got the big picture so I can try helping you.&lt;/p&gt;&lt;p&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>