<?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: How to put value in spec limit column properties in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654577#M84374</link>
    <description>&lt;P&gt;Still did not work for me. The value from text box did not getting into the spec limit.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jul 2023 14:23:05 GMT</pubDate>
    <dc:creator>mystylelife19</dc:creator>
    <dc:date>2023-07-01T14:23:05Z</dc:date>
    <item>
      <title>How to put value in spec limit column properties</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654554#M84372</link>
      <description>&lt;P&gt;Hi community, i'm trying my best to solve this but i failed again &amp;amp; again. Can someone tell me where is my mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to put value text box in the spec limit column properties? I already tried so many times. If i&lt;/P&gt;&lt;P&gt;change&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; {LSL(LowL), USL(HighL), Show Limits( 2 )}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;into&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt; {LSL(500), USL(1000), Show Limits( 2 )}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it worked. But i don't want number, i want value in LowL &amp;amp; HighL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here my full script&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

// Get the all column names from the data table
columnNames = dt &amp;lt;&amp;lt; Get Column Names("String");

// Choose the specific column
cl = New Window("Column Selection", &amp;lt;&amp;lt;Modal,
    HListBox(
		  Panel Box("Make a selection",
			VlistBox(
			  usropt = RadioBox(columnNames, 
			     prmtr=usropt&amp;lt;&amp;lt;get
					)
				)
			)	
		)
	);

//Text Box Put value spec limit Upper &amp;amp; Lower

wd = New Window( "Spec Limit", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "HighL:" ),
		High_Limit = Text Edit Box( "",&amp;lt;&amp;lt;set width( 90 ) ),
	),
	Button Box( "OK", 
		HighL = High_Limit &amp;lt;&amp;lt; get number();
			
		)
	);
	
		
wd = New Window( "Spec Limit", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "LowL:" ),
		Low_Limit = Text Edit Box( "",&amp;lt;&amp;lt;set width( 90 ) ),
	),
	Button Box( "OK", 
		LowL = Low_Limit &amp;lt;&amp;lt; get number();
	
		)
	);

//Put value Spec Limit on choosen column

col = Column(prmtr);
col &amp;lt;&amp;lt; Add Column Properties(
    Set Property(
    "Spec Limits",
    {LSL(LowL), USL(HighL), Show Limits( 2 )}
		
		)
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 10:39:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654554#M84372</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-07-01T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to put value in spec limit column properties</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654572#M84373</link>
      <description>&lt;P&gt;You will have to evaluate the values &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-Archived/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; . One option is something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(EvalExpr(
	col &amp;lt;&amp;lt; Add Column Properties(
		Set Property(
			"Spec Limits",
			{LSL(Expr(LowL)), USL(Expr(HighL)), Show Limits(2)}
			
		)
	)
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 13:26:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654572#M84373</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-01T13:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to put value in spec limit column properties</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654577#M84374</link>
      <description>&lt;P&gt;Still did not work for me. The value from text box did not getting into the spec limit.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 14:23:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654577#M84374</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-07-01T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to put value in spec limit column properties</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654584#M84376</link>
      <description>&lt;P&gt;UPDATE!!!&lt;BR /&gt;&lt;BR /&gt;After research all the topic in this community i already solve this with research apply all the method given every solution given. Thank god i solve this with helper from god. Alhamdulillah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here my scripts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open a data table or replace "Data Table Name" with the name of your data table
dt = Current Data Table();

// Get the all column names from the data table
columnNames = dt &amp;lt;&amp;lt; Get Column Names("String");

// Choose the specific column
cl = New Window("Column Selection", &amp;lt;&amp;lt;Modal,
    HListBox(
		  Panel Box("Make a selection",
			VlistBox(
			  allcolumn = RadioBox(columnNames, 
			     prmtr=allcolumn&amp;lt;&amp;lt;get
					)
				)
			)	
		)
	);

//Text Box Put value spec limit Upper &amp;amp; Lower


wd = New Window( "Spec Limit", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "HighL:" ),
		High_Limit = Number Edit Box( "",&amp;lt;&amp;lt;set width( 10 ) ),
	),
	Button Box( "OK", 
		HighL=High_Limit&amp;lt;&amp;lt;get;
		)
	);
	
// If cancel or X was clicked, stop the script
If( wd == {Button( -1 )}, Stop() );	
		
wd = New Window( "Spec Limit", &amp;lt;&amp;lt; modal(),
	hlistbox(
		Text Box( "LowL:" ),
		Low_Limit = Number Edit Box( "",&amp;lt;&amp;lt;set width( 10 ) ),
	),
	Button Box( "OK", 
		LowL=Low_Limit&amp;lt;&amp;lt;get;
		)
	);

// If cancel or X was clicked, stop the script
If( wd == {Button( -1 )}, Stop() );



//Put value Spec Limit on choosen column

col = Column(prmtr);

Eval(
	Substitute(
			Expr(
				col &amp;lt;&amp;lt; Add Column Properties(
				Set Property(
				"Spec Limits",
				Eval(	{LSL(low), USL(high), Show Limits( 2 )})
				),
			)
		),
	Expr(low), LowL,
	Expr(high), HighL
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:50:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654584#M84376</guid>
      <dc:creator>mystylelife19</dc:creator>
      <dc:date>2023-07-01T15:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to put value in spec limit column properties</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654610#M84380</link>
      <description>&lt;P&gt;This does work for me&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

// Open a data table or replace "Data Table Name" with the name of your data table
dt = Current Data Table();

// Get the all column names from the data table
columnNames = dt &amp;lt;&amp;lt; Get Column Names("String");

// Choose the specific column
cl = New Window("Column Selection",
	&amp;lt;&amp;lt;Modal,
	H List Box(
		Panel Box("Make a selection",
			V List Box(allcolumn = Radio Box(columnNames, prmtr = allcolumn &amp;lt;&amp;lt; get))
		)
	)
);

//Text Box Put value spec limit Upper &amp;amp; Lower


wd = New Window("Spec Limit",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("HighL:"), High_Limit = Number Edit Box("", &amp;lt;&amp;lt;set width(10)), ),
	Button Box("OK", HighL = High_Limit &amp;lt;&amp;lt; get)
);
	
// If cancel or X was clicked, stop the script
If(wd == {Button(-1)}, Stop());	
		
wd = New Window("Spec Limit",
	&amp;lt;&amp;lt;modal(),
	H List Box(Text Box("LowL:"), Low_Limit = Number Edit Box("", &amp;lt;&amp;lt;set width(10)), ),
	Button Box("OK", LowL = Low_Limit &amp;lt;&amp;lt; get)
);

// If cancel or X was clicked, stop the script
If(wd == {Button(-1)}, Stop());



//Put value Spec Limit on choosen column

col = Column(prmtr);

Eval(EvalExpr(
	col &amp;lt;&amp;lt; Add Column Properties(
		Set Property(
			"Spec Limits",
			{LSL(Expr(LowL)), USL(Expr(HighL)), Show Limits(2)}
			
		)
	)
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also if you would like to, you could combine all those selections into a single modal window&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Current Data Table();
col_names = dt &amp;lt;&amp;lt; Get Column Names("String", Continuous);

nw = New Window("Set Specs", &amp;lt;&amp;lt; Modal,
	H List Box(
		Panel Box("Select Column",
			rb_col = Radio Box(col_names)
		),
		Panel Box("Select Limits",
			Lineup Box(N Col(2),
				Text Box("LSL: "),
				lsl_neb = Number Edit Box("", &amp;lt;&amp;lt;set width(10)),
				Text Box("USL: "),
				usl_neb = Number Edit Box("", &amp;lt;&amp;lt;set width(10))
			)
		),
		Panel Box("Actions",
			Lineup Box(N Col(1),
				Button Box("OK",
					lsl_val = lsl_neb &amp;lt;&amp;lt; get;
					usl_val = usl_neb &amp;lt;&amp;lt; get;
					sel_col = rb_col &amp;lt;&amp;lt; get selected;
				),
				Button Box("Cancel")
			)
		)
	)
);

If(nw["Button"] != 1,
	Throw("Cancel pressed");
);

show(sel_col, lsl_val, usl_val);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jul 2023 07:33:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-put-value-in-spec-limit-column-properties/m-p/654610#M84380</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-07-02T07:33:34Z</dc:date>
    </item>
  </channel>
</rss>

