<?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 Control Charts use saved Control limits in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565412#M77751</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;I have a question about the control limits saved in a data table. Is there any way to propose a textbox to the user showing all the control limits saved in a data table. And the user can put a checkmark to the one to use for the Control chart ?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your answer and have a nice day,&lt;BR /&gt;&lt;BR /&gt;Jean</description>
    <pubDate>Fri, 09 Jun 2023 16:01:50 GMT</pubDate>
    <dc:creator>PersuasionCamel</dc:creator>
    <dc:date>2023-06-09T16:01:50Z</dc:date>
    <item>
      <title>Control Charts use saved Control limits</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565412#M77751</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I hope you are doing well.&lt;BR /&gt;&lt;BR /&gt;I have a question about the control limits saved in a data table. Is there any way to propose a textbox to the user showing all the control limits saved in a data table. And the user can put a checkmark to the one to use for the Control chart ?&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your answer and have a nice day,&lt;BR /&gt;&lt;BR /&gt;Jean</description>
      <pubDate>Fri, 09 Jun 2023 16:01:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565412#M77751</guid>
      <dc:creator>PersuasionCamel</dc:creator>
      <dc:date>2023-06-09T16:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Control Charts use saved Control limits</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565427#M77752</link>
      <description>&lt;P&gt;Do you mean Control Limits column properties? This could be done with scripting but I'm not sure if you can "disable" the column properties. So you might have to save them to other table/table variable/variable and then add/remove them as needed.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 12:30:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565427#M77752</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-06T12:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Control Charts use saved Control limits</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565445#M77756</link>
      <description>Ah yes, I mean: my question was how can I use the control limits (saved in an other table) with a dynamic textbox ?</description>
      <pubDate>Sun, 06 Nov 2022 14:00:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565445#M77756</guid>
      <dc:creator>PersuasionCamel</dc:creator>
      <dc:date>2022-11-06T14:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Control Charts use saved Control limits</title>
      <link>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565458#M77758</link>
      <description>&lt;P&gt;Here is fairly simplified example how you could do it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// https://www.jmp.com/support/help/en/16.2/#page/jmp/example-of-control-limits.shtml#ww1447886

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp");


dt_specs = New Table("Turbine Specs",
	Add Rows(3),
	New Column("Measurement", Character, Nominal, Values({"Fuel", "MW", "Cool Temp"})),
	New Column("LCL", Numeric, Continuous, Values([200000, 19, 53])),
	New Column("UCL", Numeric, Continuous, Values([250000, 22, 55])),
	invisible
);

possible_measurements = Column(dt_specs, "Measurement") &amp;lt;&amp;lt; get values;
nw = New Window("Select Limits", &amp;lt;&amp;lt; modal, &amp;lt;&amp;lt; return result,
	V List Box(
		Text Box("Select measurements to use predefined specs limits for:"),
		cb_selections = Check Box(possible_measurements, &amp;lt;&amp;lt; Set(1))
	);
);

aa_specs = Associative Array();
For Each({selection_idx}, nw["cb_selections"],
	aa_specs[possible_measurements[selection_idx]] = dt_specs[selection_idx, {"LCL", "UCL"}];
);

obj = dt &amp;lt;&amp;lt; Control Chart Builder(
	Show Control Panel(0),
	Variables(Y(:Fuel)),
);

If(Contains(aa_specs, "Fuel"),
	Eval(EvalExpr(
		obj &amp;lt;&amp;lt; Chart(Position(1), Set Control Limits({
			LCL(Expr(aa_specs["Fuel"][1])), UCL(Expr(aa_specs["Fuel"][2]))
		}))
	));	
);
Write();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How you should do it depends on your starting measurement data, control limit table, how you want to display control charts, how dynamic and robust you need this to be, your scripting skill level and so on&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 15:58:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-Charts-use-saved-Control-limits/m-p/565458#M77758</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-06T15:58:54Z</dc:date>
    </item>
  </channel>
</rss>

