<?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: JMP Script that changes the column USL and LSL properties in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480422#M72484</link>
    <description>&lt;P&gt;The calculations you are specifying within a JMP List, will not be evaluated prior to execution.&amp;nbsp; Therefore, the statement must be fully parsed and evaluated before&amp;nbsp; The Substitution function will accomplish that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Include( "$CommonScriptPath/Function - Obtain Spec Limit Value.jsl" );
Speclimit = ObtainSpecLimit(
	Ntwk Osnr Spec Table Filename, DeviceType, "*", "*", "ber_diffQcalc"
);

dt = Open( Ntwk Osnr Data Table Filename, invisible );

Eval(
	Substitute(
			Expr(
				Data Table( dt ):PctDiff_ModBer_q_calcBer &amp;lt;&amp;lt;
				Set Property(
					"Spec Limits",
					{LSL( __LSL__ ), USL( __USL__ ), Target( 0 ), Show Limits( 1 )}
				)
			),
		Expr( __LSL__ ), Speclimit * (-1),
		Expr( __USL__ ), Speclimit
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 18:41:06 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-04-19T18:41:06Z</dc:date>
    <item>
      <title>JMP Script that changes the column USL and LSL properties</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480402#M72482</link>
      <description>&lt;P&gt;I have a JMP Script Function that obtains a set of spec limits from a text file that is stored within the "Ntwk Osnr Spec Table Filename" variable. I am trying to change the USL and LSL column properties of the "PctDiff_ModBer_q_calcBer column within the "Ntwk Osnr Data Table" data table. But when I run the following JMP script commands I do not get a scripting error but the USL and LSL column properties are not updated. The Spec Limit that is obtained from the spec limit is 1.7. When I step thru the following lines the value of 1.7 is updated within the Speclimit variable but the USL&amp;nbsp; and LSL Column Properties are not updated. If I set the Speclimit variable to a constant 1.7 then the USL and LSL Column Properties are set to 1.7 and -1.7 respectively. So the issue must be obtaining the value from the text file, but I can figure out the issue. Can some one let me know what the solution is to obtain the spec limit from a text file and have it update the column properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Include( "$CommonScriptPath/Function - Obtain Spec Limit Value.jsl" );
Speclimit = ObtainSpecLimit(
	Ntwk Osnr Spec Table Filename, DeviceType, "*", "*", "ber_diffQcalc"
);

dt = Open( Ntwk Osnr Data Table Filename, invisible );
Data Table( dt ):PctDiff_ModBer_q_calcBer &amp;lt;&amp;lt; Set Property(
	"Spec Limits",
	{LSL( (Speclimit * (-1)) ), USL( Speclimit ), Target( 0 ), Show Limits( 1 )}
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480402#M72482</guid>
      <dc:creator>kprentiss</dc:creator>
      <dc:date>2023-06-09T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script that changes the column USL and LSL properties</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480421#M72483</link>
      <description>&lt;P&gt;Make sure the values are numeric and try using Eval(EvalExpr()) and Expr()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Include("$CommonScriptPath/Function - Obtain Spec Limit Value.jsl");
Speclimit = ObtainSpecLimit(Ntwk Osnr Spec Table Filename, DeviceType, "*", "*", "ber_diffQcalc");

dt = Open(Ntwk Osnr Data Table Filename, invisible);
Eval(
	Eval Expr(
		Data Table(dt):PctDiff_ModBer_q_calcBer &amp;lt;&amp;lt; Set Property(
			"Spec Limits",
			{LSL(Expr(Speclimit * (-1))), USL(Expr(Speclimit)), Target(0), Show Limits(1)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 18:35:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480421#M72483</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-04-19T18:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script that changes the column USL and LSL properties</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480422#M72484</link>
      <description>&lt;P&gt;The calculations you are specifying within a JMP List, will not be evaluated prior to execution.&amp;nbsp; Therefore, the statement must be fully parsed and evaluated before&amp;nbsp; The Substitution function will accomplish that&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Include( "$CommonScriptPath/Function - Obtain Spec Limit Value.jsl" );
Speclimit = ObtainSpecLimit(
	Ntwk Osnr Spec Table Filename, DeviceType, "*", "*", "ber_diffQcalc"
);

dt = Open( Ntwk Osnr Data Table Filename, invisible );

Eval(
	Substitute(
			Expr(
				Data Table( dt ):PctDiff_ModBer_q_calcBer &amp;lt;&amp;lt;
				Set Property(
					"Spec Limits",
					{LSL( __LSL__ ), USL( __USL__ ), Target( 0 ), Show Limits( 1 )}
				)
			),
		Expr( __LSL__ ), Speclimit * (-1),
		Expr( __USL__ ), Speclimit
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 18:41:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-that-changes-the-column-USL-and-LSL-properties/m-p/480422#M72484</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-19T18:41:06Z</dc:date>
    </item>
  </channel>
</rss>

