<?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>Hiding/showing columns in relationship grid based on field values</title><link>https://www.aras.com/community/f/development/9079/hiding-showing-columns-in-relationship-grid-based-on-field-values</link><description>How can I hide/show columns in the relationship grid based on the changes in the dropdown box of the parent form?</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hiding/showing columns in relationship grid based on field values</title><link>https://www.aras.com/community/thread/4377?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 06:50:47 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e609e51e-ac6f-40f5-93a7-9e02c1275e4c</guid><dc:creator>prafulsh.gurav@gmail.com</dc:creator><description>&lt;p&gt;Hello Alexis,&lt;/p&gt;
&lt;p&gt;If you want to hide columns of relationship use following code.&lt;/p&gt;
&lt;p&gt;Hide Column:&lt;/p&gt;
&lt;p&gt;parent.findCurrentRelationshipsTab().document.getElementById(&amp;#39;gridTD&amp;#39;).children[1].getElementsByTagName(&amp;#39;th&amp;#39;)[&lt;strong&gt;ColumnIndex&lt;/strong&gt;].setAttribute(&amp;#39;style&amp;#39;,&amp;#39;&lt;strong&gt;display:none;&lt;/strong&gt;&amp;#39;);&lt;/p&gt;
&lt;p&gt;Show Column:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;parent.findCurrentRelationshipsTab().document.getElementById(&amp;#39;gridTD&amp;#39;).children[1].getElementsByTagName(&amp;#39;th&amp;#39;)[&lt;/span&gt;&lt;strong&gt;ColumnIndex&lt;/strong&gt;&lt;span&gt;].setAttribute(&amp;#39;style&amp;#39;,&amp;#39;&lt;strong&gt;t&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;ext-align:left;text-align:center;width:100px&lt;/strong&gt;&amp;#39;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Praful Gurav&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hiding/showing columns in relationship grid based on field values</title><link>https://www.aras.com/community/thread/4368?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 13:32:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:47dc7ba9-587c-442e-a238-83c77904f7e0</guid><dc:creator>Suhas</dc:creator><description>&lt;p&gt;Hello Alexis,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Attach your method on change of dropdown box property event.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;please find the below code to hide/show the relationship tab&lt;/p&gt;
&lt;p&gt;//based on your condition (dropdown box value)&amp;nbsp; set 0 or 1 in below code&lt;/p&gt;
&lt;p&gt;//0-means hide the relationship&lt;/p&gt;
&lt;p&gt;//1- means show the relationship.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;parent.relationships.relTabbar.setTabVisible(top.aras.getRelationshipTypeId(&amp;quot;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;your_relationship_name&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;quot;), 0);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Suhas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>