<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hiding column group in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108260#M39386</link>
    <description>&lt;P&gt;Here's a complication: some of the columns in my groups derive from a virtual join. So when I perform a &lt;STRONG&gt;&amp;lt;&amp;lt;Get Column Group("groupname")&lt;/STRONG&gt; on those particular groups, the list that results looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;group = {:LocalColumnA, Referenced Column("ForeignColumnA", Referenced Column("ForeignColumnB", Reference(Column(:ForeignLinkReferenceColumnA), …}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the &lt;STRONG&gt;group&amp;lt;&amp;lt;hide(1)&lt;/STRONG&gt; action only succeeds on the local columns, not on the foreign (virtually joined) columns.&lt;/P&gt;&lt;P&gt;Yet when I do this in the manual interface, the virtually joined columns respond just fine to a manual Hide/Unhide menu selection. &amp;nbsp;Aaargh.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2019 18:47:32 GMT</pubDate>
    <dc:creator>john_madden</dc:creator>
    <dc:date>2019-01-29T18:47:32Z</dc:date>
    <item>
      <title>Hiding column group in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108235#M39378</link>
      <description>&lt;P&gt;In the manual interface, you can click on a column group and then hide/unhide all the columns in the group with a single click (or two/three clicks if the hidden state is mixed).&lt;/P&gt;&lt;P&gt;What is some simple JSL that accomplishes this same thing by script?&lt;/P&gt;&lt;P&gt;My attempts to script this all look squirrelly to me.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:00:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108235#M39378</guid>
      <dc:creator>john_madden</dc:creator>
      <dc:date>2019-01-29T18:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding column group in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108249#M39383</link>
      <description>&lt;P&gt;Here is a script that works.&amp;nbsp; The current restriction is that it acts on the first group found, but that is an easy work around.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

groupNames = dt &amp;lt;&amp;lt; get column groups names;
group = dt &amp;lt;&amp;lt; get column group( groupnames[1] ) &amp;lt;&amp;lt; select;
For( i = 1, i &amp;lt;= N Items( group ), i++,
	dt:((dt &amp;lt;&amp;lt; get selected columns)[i]) &amp;lt;&amp;lt; hide( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another community member may have a way to take the For() loop out of the code, but I was not able to find one.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:25:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108249#M39383</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-29T18:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding column group in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108260#M39386</link>
      <description>&lt;P&gt;Here's a complication: some of the columns in my groups derive from a virtual join. So when I perform a &lt;STRONG&gt;&amp;lt;&amp;lt;Get Column Group("groupname")&lt;/STRONG&gt; on those particular groups, the list that results looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;group = {:LocalColumnA, Referenced Column("ForeignColumnA", Referenced Column("ForeignColumnB", Reference(Column(:ForeignLinkReferenceColumnA), …}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and the &lt;STRONG&gt;group&amp;lt;&amp;lt;hide(1)&lt;/STRONG&gt; action only succeeds on the local columns, not on the foreign (virtually joined) columns.&lt;/P&gt;&lt;P&gt;Yet when I do this in the manual interface, the virtually joined columns respond just fine to a manual Hide/Unhide menu selection. &amp;nbsp;Aaargh.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 18:47:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-column-group-in-JSL/m-p/108260#M39386</guid>
      <dc:creator>john_madden</dc:creator>
      <dc:date>2019-01-29T18:47:32Z</dc:date>
    </item>
  </channel>
</rss>

