<?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: Column Switcher: reduce width in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631389#M82961</link>
    <description>&lt;P&gt;Scripting index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1683883750772.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52762i4E8CF53AB38CBDD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1683883750772.png" alt="jthi_0-1683883750772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("a nasty very long column name");
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:height), Y(:weight), Color(:sex)),
	Elements(Points(X, Y, Legend(11)), Smoother(X, Y, Legend(12)))
);

colswitcher = gb &amp;lt;&amp;lt; Column Switcher(:sex, {:sex, :a nasty very long column name});
colswitcher &amp;lt;&amp;lt; set size(100);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 May 2023 09:30:55 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-05-12T09:30:55Z</dc:date>
    <item>
      <title>Column Switcher: reduce width</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631387#M82960</link>
      <description>&lt;P&gt;Column switchers are extremely useful.&lt;/P&gt;&lt;P&gt;But they occupy a lot of space in a Dashboard, especially if there is a long column name:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1683882600823.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52760i15A1BC806B010DC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1683882600823.png" alt="hogi_0-1683882600823.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Fortunately, the user can adjust the width by resizing the list box:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1683882658641.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52761i18CD0B78EF382492/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1683882658641.png" alt="hogi_1-1683882658641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, this change is not saved when saving the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adjusting the width via set width doesn't seem to work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Report()["Column Switcher",ListBox(4)] &amp;lt;&amp;lt; get width()    //works
Current Report()["Column Switcher",ListBox(4)] &amp;lt;&amp;lt; set width(100)&amp;nbsp;//doesn't&amp;nbsp;have&amp;nbsp;an&amp;nbsp;effect&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "a nasty very long column name");
dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :height ), Y( :weight ), Color( :sex ) ),
	Elements( Points( X, Y, Legend( 11 ) ), Smoother( X, Y, Legend( 12 ) ) ),
	Column Switcher(:sex,
		{:sex,:a nasty very long column name}
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 09:18:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631387#M82960</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-05-12T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher: reduce width</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631389#M82961</link>
      <description>&lt;P&gt;Scripting index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1683883750772.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52762i4E8CF53AB38CBDD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1683883750772.png" alt="jthi_0-1683883750772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; New Column("a nasty very long column name");
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:height), Y(:weight), Color(:sex)),
	Elements(Points(X, Y, Legend(11)), Smoother(X, Y, Legend(12)))
);

colswitcher = gb &amp;lt;&amp;lt; Column Switcher(:sex, {:sex, :a nasty very long column name});
colswitcher &amp;lt;&amp;lt; set size(100);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2023 09:30:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631389#M82961</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-05-12T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher: reduce width</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631426#M82965</link>
      <description>&lt;P&gt;Wonderful,&amp;nbsp; thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cs= Current Report()["Column Switcher"] &amp;lt;&amp;lt; get scriptable object();
cs&amp;lt;&amp;lt; set size(100);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2023 10:55:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631426#M82965</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-05-12T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher: reduce width</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631486#M82976</link>
      <description>&lt;P&gt;And for a Dashboard, is there a possibility to resize&amp;nbsp;- and store the setting in the saved Dashboard?&lt;BR /&gt;- without changing the JSL code&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 12:20:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-reduce-width/m-p/631486#M82976</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-05-12T12:20:20Z</dc:date>
    </item>
  </channel>
</rss>

