<?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>One-to-Many Relationship type is not showing in Studio</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/960/one-to-many-relationship-type-is-not-showing-in-studio</link><description>I am working in Sugarcrm 7.8 I am trying to create a relationship between contacts and my custom module example myorder but its not showing in type field when I select my custome module in `Related Module&amp;#39; I couldnt able to find any doc which explains</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: One-to-Many Relationship type is not showing in Studio</title><link>https://sugarclub.sugarcrm.com/thread/3786?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 05:59:49 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:efd2a156-e5a4-48e2-a1f4-50072960619b</guid><dc:creator>Aravind Kumar</dc:creator><description>&lt;p&gt;After some deep research found that, In my custom module i should have explained the relationship between the modules.&lt;/p&gt;&lt;p&gt;After creating the follwoing file. I could able to see the relationships.&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;p&gt;src/modules/mycustomodule/clients/base/layouts/subpanels/subpanels.php&lt;br /&gt;src/modules/mycustomodule/vardefs.php&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;**Content: subpanels.php**&lt;/strong&gt;&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;p style="padding-left:30px;"&gt;array (&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39;layout&amp;#39; =&amp;gt; &amp;#39;subpanel&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39;label&amp;#39; =&amp;gt; &amp;#39;LBL_MYCUSTOMMODULE_SUBPANEL_CONTACTS&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#39;context&amp;#39; =&amp;gt; array (&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;link&amp;#39; =&amp;gt; &amp;#39;mycustommodule_contacts&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;br /&gt; ),&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;**Content: vardefs.php**&lt;/strong&gt;&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;p style="padding-left:30px;"&gt;&amp;#39;mycustommodule_contacts&amp;#39; =&amp;gt; array(&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;name&amp;#39; =&amp;gt; &amp;#39;mycustommodule_contacts&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;type&amp;#39; =&amp;gt; &amp;#39;link&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;relationship&amp;#39; =&amp;gt; &amp;#39;contacts_mycustommodule&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;module&amp;#39; =&amp;gt; &amp;#39;Contacts&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;bean_name&amp;#39; =&amp;gt; &amp;#39;Contact&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;source&amp;#39; =&amp;gt; &amp;#39;non-db&amp;#39;,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39;vname&amp;#39; =&amp;gt; &amp;#39;LBL_MYCUSTOMMODULE_CONTACTS_LINK&amp;#39;,&lt;br /&gt; ),&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;After &lt;strong&gt;**Repair &amp;amp; Rebuild**&lt;/strong&gt;. It works as expected. Hope it helps someone.!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>