cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Jackie_
Level VI

Manage spec limits

Hi,

 

I am trying to get write a jsl code which will disable the manage spec limits but there seems be an error. Need some advise

It works well if number of columns are less but not with larges data sets with more columns

 

dt2= current data table();
dtx = dt2 << Get Column Group( "Tests" );


								new window("", modal,
							ob = Check Box( {"Check to hide limits"}, 
								
								ou = ob << get selected;
								If( ou != "Check to hide limits",
									dt2 << Manage Spec Limits(
												Process Variables( Eval( dtx ) ),
												Show Limits All( 0 ),
												Save to Column Properties( 1 )
											)
										
									); ));
1 REPLY 1
txnelson
Super User

Re: Manage spec limits

Here is some code that seems to work

names default to here(1);
dt2 = current data table();

dtx = dt2 << Get Column Group( "Tests" );

msl = Manage Spec Limits(
	Process Variables(
		eval(dtx)
	),
	show limits all(0), save to column properties(1)
);
msl<<close window;
Jim