<?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: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278582#M54099</link>
    <description>&lt;P&gt;Option 1 - I am unfamiliar with and wouldn't know how to create it properly.&lt;/P&gt;&lt;P&gt;Option 2 - I have tried this and although it will present it in one script window I can't see how I would save this back to my data table. I am looking for 40 separate windows of control charts to become 1 window of all the control charts. The below code does the job of 40 windows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

cc = dt &amp;lt;&amp;lt; Get Column Names( numeric, "Continuous" );


For( i = 1, i &amp;lt;= N Items( cc ), i++, 

obj = dt &amp;lt;&amp;lt; Control Chart(
	
	Sample Label( :Month Alerted),
	Chart Col( cc[i], Individual Measurement ),
	Get Limits( "C:\Users\Limits.jmp" ),

);

obj &amp;lt;&amp;lt; Save Script to Data Table;

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Many thanks for your support&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 16:58:04 GMT</pubDate>
    <dc:creator>AlexS</dc:creator>
    <dc:date>2020-07-14T16:58:04Z</dc:date>
    <item>
      <title>Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278152#M54027</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have pieced together the below code and it creates the Control Charts and brings up the limits but doesn't actually apply them? The control charts also do not seem to have the ability to save back the data table unless i re run it in a new window?&lt;/P&gt;&lt;P&gt;I understand there is a new script function but not sure how it applies to my code?appreciate all help given!&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;Names Default To Here( 1 );
dt = Current Data Table();

cc = dt &amp;lt;&amp;lt; Get Column Names( numeric, "Continuous" );

nw1 = New Window( "Control Charts" );

For( i = 1, i &amp;lt;= N Items( cc ), i++, 
Current Data Table( dt );
 obj = dt&amp;lt;&amp;lt; Control Chart(
	Sample Label( :YYYYMM ),
	Group Size( 1 ),
	KSigma( 3 ),
 Chart Col( As Column( cc[i] ) ), 
 Chart Type(Individual Measurement) ,
			Get Limits (
		"C:\Users\Limitsw.jmp"
		));
	nw1 &amp;lt;&amp;lt; append( Report( obj ) );
	
	obj &amp;lt;&amp;lt; Close Window;

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:16:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278152#M54027</guid>
      <dc:creator>AlexS</dc:creator>
      <dc:date>2023-06-10T23:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278513#M54082</link>
      <description>&lt;P&gt;it's hard to help without more informaton like e.g. the limits table you refer to or the number of smaple labels you use as they depend probably on the table you are using. But if we would create such a table and have too many lables or too few the control chart might be completely useless and we can try for ages to figure out what you experience. sorry if this seems to direct :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:34:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278513#M54082</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2020-07-14T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278524#M54085</link>
      <description>&lt;P&gt;That's ok i have literally just fixed that issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if you could help with something else&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT size="3"&gt;i am using &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Save Script to Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But i have 40 control charts so i actually want them combined and saved?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:43:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278524#M54085</guid>
      <dc:creator>AlexS</dc:creator>
      <dc:date>2020-07-14T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278545#M54091</link>
      <description>&lt;P&gt;I see two ways to perform the desired, assuming from your code that the control charts are all from columns of the same data table as you always refer to the current data table (if that's the case you can put that outside the loop as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Stack the columns of interest and use a by variable of the label column (the actual column names of the original data table) to create all control charts in one windo. Then you can save Bygroup scritp to data table&lt;/LI&gt;
&lt;LI&gt;keep your for loop, Save Script to Script Window instead to data table. This should write all scripts beneith each other. Then save the content of the script window to your data table.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Just some ideas :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:12:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278545#M54091</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2020-07-14T15:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278582#M54099</link>
      <description>&lt;P&gt;Option 1 - I am unfamiliar with and wouldn't know how to create it properly.&lt;/P&gt;&lt;P&gt;Option 2 - I have tried this and although it will present it in one script window I can't see how I would save this back to my data table. I am looking for 40 separate windows of control charts to become 1 window of all the control charts. The below code does the job of 40 windows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

cc = dt &amp;lt;&amp;lt; Get Column Names( numeric, "Continuous" );


For( i = 1, i &amp;lt;= N Items( cc ), i++, 

obj = dt &amp;lt;&amp;lt; Control Chart(
	
	Sample Label( :Month Alerted),
	Chart Col( cc[i], Individual Measurement ),
	Get Limits( "C:\Users\Limits.jmp" ),

);

obj &amp;lt;&amp;lt; Save Script to Data Table;

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Many thanks for your support&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 16:58:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278582#M54099</guid>
      <dc:creator>AlexS</dc:creator>
      <dc:date>2020-07-14T16:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278661#M54108</link>
      <description>&lt;P&gt;Here is a simple modification to your script that is a code generator that creates the code required to generate all of the control charts and to save that code to the data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = current data table();

cc = dt &amp;lt;&amp;lt; Get Column Names( numeric, "Continuous" );

// Create a string variable that contains all of the JSL required to create
// and save the control charts to the data table
theExpr = "dt &amp;lt;&amp;lt; new script(\!"Control Charts\!", nw=New window(\!"The Control Charts\!"";
For( i = 1, i &amp;lt;= N Items( cc ), i++, 

	obj = dt &amp;lt;&amp;lt; Control Chart(
		invisible, 
	
		Sample Label( :Month Alerted ),
		Chart Col( cc[i], Individual Measurement ),
		Get Limits( "C:\Users\Limits.jmp" ), 

	);

	theScript = char(obj &amp;lt;&amp;lt; get script);
	theExpr = theExpr || "," || theScript;
);
theExpr = theExpr || "));";
// Run the created string variable
eval(parse(theExpr));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jul 2020 20:47:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/278661#M54108</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-14T20:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Control Chart - Gets limits but doesn't apply them also control charts can't save to data table</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/279159#M54123</link>
      <description>&lt;P&gt;That's excellent, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:32:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Chart-Gets-limits-but-doesn-t-apply-them-also-control/m-p/279159#M54123</guid>
      <dc:creator>AlexS</dc:creator>
      <dc:date>2020-07-15T07:32:19Z</dc:date>
    </item>
  </channel>
</rss>

