<?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: Scripting the Width of Column Switcher in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/365532#M61503</link>
    <description>&lt;P&gt;That did the trick.&amp;nbsp; Starting to finally wrap my head around how JSL works.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Mar 2021 16:46:29 GMT</pubDate>
    <dc:creator>danielrbiber</dc:creator>
    <dc:date>2021-03-05T16:46:29Z</dc:date>
    <item>
      <title>Scripting the Width of Column Switcher in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/364350#M61399</link>
      <description>&lt;P&gt;I am scripting several visuals with column switchers and am finding that they default to a larger size than I would expect.&amp;nbsp; I took the example JSL from another similar post&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Scripting-column-switcher-using-variable/m-p/82234" target="_self"&gt;Scripting-column-switcher-using-variable&lt;/A&gt;&amp;nbsp; but tried to get change the column switcher width.&amp;nbsp; I added a local data filter as I know that one can manipulate the sizes of those objects with "Display()".&amp;nbsp; You may notice that I added this to column switcher below.&lt;/P&gt;&lt;P&gt;Can this be accomplished?&lt;/P&gt;&lt;P&gt;I am asking as users are not able to change this width once posted to JMP Live.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
col_list3 = dt &amp;lt;&amp;lt; get column names( Numeric );

For( i = N Items( col_list3 ), i &amp;gt; 0, i--,
	If( !Contains( col_list3[i], "PN" ),
		Remove From( col_list3, i )
	)
);

Graph Builder(
	Size( 534, 572 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :lot_id ),
			Display( :lot_id, Size( 178, 221 ), Height( 221 ) )
		)
	),
	Column Switcher(
		:NPN1,
		{:NPN1, :PNP2, :NPN2, :PNP3, :PNP4, :NPN3, :NPN4, :NPN5, :PNP5, :NPN6, :PNP6,
		:PNP7, :NPN7, :PNP8, :PNP9, :NPN8, :NPN9, :NPN10, :PNM1, :NPN11, :PNP10},
		Display( Width( 100 ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:11:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/364350#M61399</guid>
      <dc:creator>danielrbiber</dc:creator>
      <dc:date>2023-06-11T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting the Width of Column Switcher in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/364381#M61400</link>
      <description>&lt;P&gt;I would add the column switcher in a little bit different manner so you can get reference and then use &amp;lt;&amp;lt; Set Size to that reference:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
col_list3 = dt &amp;lt;&amp;lt; get column names( Numeric );

For( i = N Items( col_list3 ), i &amp;gt; 0, i--,
	If( !Contains( col_list3[i], "PN" ),
		Remove From( col_list3, i )
	)
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 534, 572 ),
	Show Control Panel( 0 ),
	Variables( X( :PNP1 ), Y( :NPN1 ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :lot_id ),
			Display( :lot_id, Size( 178, 221 ), Height( 221 ) )
		)
	),
);

colswitcher = gb &amp;lt;&amp;lt; Column Switcher(
	:NPN1,
	{:NPN1, :PNP2, :NPN2, :PNP3, :PNP4, :NPN3, :NPN4, :NPN5, :PNP5, :NPN6, :PNP6,
	:PNP7, :NPN7, :PNP8, :PNP9, :NPN8, :NPN9, :NPN10, :PNM1, :NPN11, :PNP10}
);

colswitcher &amp;lt;&amp;lt; set size(300,300);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You could also check from Right click -&amp;gt; Edit -&amp;gt; Show Properties how to reference Column Switcher that way.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 14:08:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/364381#M61400</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-02T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting the Width of Column Switcher in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/365532#M61503</link>
      <description>&lt;P&gt;That did the trick.&amp;nbsp; Starting to finally wrap my head around how JSL works.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 16:46:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/365532#M61503</guid>
      <dc:creator>danielrbiber</dc:creator>
      <dc:date>2021-03-05T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting the Width of Column Switcher in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/365551#M61505</link>
      <description>&lt;P&gt;Couple of good ways to see how you can affect things are for example (using gb as example reference):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; Show Properties;
gb &amp;lt;&amp;lt; Show Tree STructure;
gb  &amp;lt;&amp;lt; Get Xml; //use with XPath&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also checking JMP Scripting Guide and using Scripting Index will help a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also some excellent topics on element/display manipulation can be found from JMP Community. Couple examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discovery-Summit-2018/Supercharge-Your-User-Interfaces-in-JSL-US-2018-113/ta-p/73744" target="_self"&gt;Supercharge Your User Interfaces in JSL ( US 2018 113 )&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/JMPer-Cable/Navigating-your-reports-using-XPath/ba-p/219099" target="_self"&gt;Navigating your reports using XPath&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 17:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-the-Width-of-Column-Switcher-in-Graph-Builder/m-p/365551#M61505</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-03-05T17:15:51Z</dc:date>
    </item>
  </channel>
</rss>

