<?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 Resetting chart and removing script objects in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/750226#M93087</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/56613"&gt;@ChiSquareShark9&lt;/a&gt;&amp;nbsp;- below is an expanded version of the script above that resets the frame sizes each time the column switcher is invoked.&amp;nbsp; In JMP 17 there is a brief flicker as the frames go back to default size and then are changed back to the desired size.&amp;nbsp; In JMP 18, there is no flicker and the callback handler is not necessary.&amp;nbsp; In that case the frame sizes are retained during the new platform launch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
dt = Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );
vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Measurement ),
	X( :Operator, :part# ),
	Always use column properties( 1 ),
);
cs = vc &amp;lt;&amp;lt; Column Switcher( :Measurement, {:Measurement, :Standard} );
Wait(1);
Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Frame Size(400,200);
Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Frame Size(400,200);
Wait(1);
pre = Function( {currentColumn, nextColumn, switcher},
	size1 = Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Get Size;
	size2 = Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Get Size;
);
post = Function( {previousColumn, currentColumn, switcher},
	Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Frame Size(size1[1], size1[2]);
	Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Frame Size(size2[1], size2[2]);
);
handler = cs &amp;lt;&amp;lt; Make Column Switch Handler( pre, post );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 14:31:07 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2024-04-26T14:31:07Z</dc:date>
    <item>
      <title>Column Switcher Resetting chart and removing script objects</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/747763#M92780</link>
      <description>&lt;P&gt;Hi, Recently (after moving to JMP17) Whenever i use the column switch it resets the charts. removing the legend, reverting the graph size and removing the script object i placed on the graph. this has happened on the variability charts, but also a similar issue happened on contour plots where the column switcher actually duplicated the script object and removed legends. the only way to stop it from doing so was to remove the automatic recalc, this worked for the contour plot but not for other chart analysis.&lt;BR /&gt;&lt;BR /&gt;how can I prevent this from happening and keep all my chart settings and script objects intact while scrolling though the column switcher?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 07:37:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/747763#M92780</guid>
      <dc:creator>ChiSquareShark9</dc:creator>
      <dc:date>2024-04-18T07:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher Resetting chart and removing script objects</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/747974#M92795</link>
      <description>&lt;P&gt;Customized reports with Column Switcher (and other features) have been improved in many cases in JMP 18+.&amp;nbsp; The problems in earlier versions tended to happen when the column name that is being changed appears in the titles or the text of the display item that is customized.&amp;nbsp; The following script does not work in JMP 17, but it does work in JMP 18.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );
vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Measurement ),
	X( :Operator, :part# ),
	Always use column properties( 1 ),
);
cs = vc &amp;lt;&amp;lt; Column Switcher( :Measurement, {:Measurement, :Standard} );
Wait(1);
Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Frame Size(400,200);
Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Frame Size(400,200);
Wait(1);
cs &amp;lt;&amp;lt; Set Current("Standard");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the variability report, there are a number of cases where column names are used in titles or labels.&amp;nbsp; When the name is used by itself, customizations may be working fine.&amp;nbsp; The more common problem case is when the name is embedded in another string, as in the Outline titles here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danschikore_0-1713456404908.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63470i6C94F67E3D3FB3E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danschikore_0-1713456404908.png" alt="danschikore_0-1713456404908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately the only solution for JMP 17 and earlier is to use a JSL switcher callback script to reapply the customizations.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:09:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/747974#M92795</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2024-04-18T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher Resetting chart and removing script objects</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/748677#M92933</link>
      <description>&lt;P&gt;Can you possibly share an example of a&amp;nbsp;&lt;SPAN&gt;JSL switcher callback script used to re-apply customizations? Im not that experience and not familiar with this solution. Thank you for the explanation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 12:27:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/748677#M92933</guid>
      <dc:creator>ChiSquareShark9</dc:creator>
      <dc:date>2024-04-23T12:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher Resetting chart and removing script objects</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/750226#M93087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/56613"&gt;@ChiSquareShark9&lt;/a&gt;&amp;nbsp;- below is an expanded version of the script above that resets the frame sizes each time the column switcher is invoked.&amp;nbsp; In JMP 17 there is a brief flicker as the frames go back to default size and then are changed back to the desired size.&amp;nbsp; In JMP 18, there is no flicker and the callback handler is not necessary.&amp;nbsp; In that case the frame sizes are retained during the new platform launch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
dt = Open( "$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp" );
vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Measurement ),
	X( :Operator, :part# ),
	Always use column properties( 1 ),
);
cs = vc &amp;lt;&amp;lt; Column Switcher( :Measurement, {:Measurement, :Standard} );
Wait(1);
Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Frame Size(400,200);
Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Frame Size(400,200);
Wait(1);
pre = Function( {currentColumn, nextColumn, switcher},
	size1 = Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Get Size;
	size2 = Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Get Size;
);
post = Function( {previousColumn, currentColumn, switcher},
	Report(vc)[FrameBox(1)] &amp;lt;&amp;lt; Frame Size(size1[1], size1[2]);
	Report(vc)[FrameBox(2)] &amp;lt;&amp;lt; Frame Size(size2[1], size2[2]);
);
handler = cs &amp;lt;&amp;lt; Make Column Switch Handler( pre, post );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 14:31:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/750226#M93087</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2024-04-26T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Column Switcher Resetting chart and removing script objects</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/750868#M93227</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 07:52:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Switcher-Resetting-chart-and-removing-script-objects/m-p/750868#M93227</guid>
      <dc:creator>ChiSquareShark9</dc:creator>
      <dc:date>2024-05-01T07:52:17Z</dc:date>
    </item>
  </channel>
</rss>

