cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
AmitS
Level II

How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

Our application is executing JMP scripts via the COM automation objects to create control charts for product stability monitoring.  At a later date, we will look to update the scripts to use Control Chart Builder.  For now, we need to use the existing control charts.  After upgrading from JMP 14 to JMP 18, the control charts now show large red warning banners, as shown below.  Is there a setting change we can make, script command we can execute, etc., to hide these red banners?  Any help would be appreciated.  Thanks!

 

Control Chart - JMP 18.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

You might be able to disable these from preferences but I'm not sure from where. You can script it with something like this

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Coating.jmp");
obj = dt << Control Chart(
	Sample Size(:Sample),
	KSigma(3),
	Chart Col(:Weight),
	Chart Type(XBar)
);

tbs = Report(obj) << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19. Please use Control Chart Builder from the Quality and Process menu instead.')]");

tbs << Visibility("Collapse");

or do it manually from report's properties

jthi_0-1726852358155.png

 

-Jarmo

View solution in original post

jthi
Super User

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

You can either check for JMP version

If(Word(1, JMP Version(), ".") == "18",
	tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");
	tbs << Visibility("Collapse");
);

or you can check if the text boxes are found using N Items

tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");

If(N Items(tbs) > 0,
	tbs << Visibility("Collapse");
);

 

And if you happen to have this left in JMP19 you most likely will run into error before that (but who knows how it will be handled, in "worst" case you can still script it even in JMP19 even though it is totally gone from menus).

-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

You might be able to disable these from preferences but I'm not sure from where. You can script it with something like this

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Coating.jmp");
obj = dt << Control Chart(
	Sample Size(:Sample),
	KSigma(3),
	Chart Col(:Weight),
	Chart Type(XBar)
);

tbs = Report(obj) << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19. Please use Control Chart Builder from the Quality and Process menu instead.')]");

tbs << Visibility("Collapse");

or do it manually from report's properties

jthi_0-1726852358155.png

 

-Jarmo
AmitS
Level II

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

Wonderful, that worked!  Thank you very much!  This is what I added to my script, where the "ccr" variable is the control chart report object:

 

tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");
tbs << Visibility("Collapse");

 

I am not experienced with JMP scripting; I am inheriting the application from a previous developer.  I want the code to work with all versions of JMP.  So for users that are on an older version where this text box would not be found, how should I tweak the code?  In other words, what is the JMP way to write a null check (pseudo-code below)?

 

tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");

if (tbs != null)
   tbs << Visibility("Collapse");

 

jthi
Super User

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

You can either check for JMP version

If(Word(1, JMP Version(), ".") == "18",
	tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");
	tbs << Visibility("Collapse");
);

or you can check if the text boxes are found using N Items

tbs = ccr << XPath("//TextBox[contains(text(), 'Legacy Control Charts are being removed in JMP 19.')]");

If(N Items(tbs) > 0,
	tbs << Visibility("Collapse");
);

 

And if you happen to have this left in JMP19 you most likely will run into error before that (but who knows how it will be handled, in "worst" case you can still script it even in JMP19 even though it is totally gone from menus).

-Jarmo
AmitS
Level II

Re: How can I hide/remove the "Legacy Control Charts are being removed in JMP 19" warning messages?

Thank you!  I like option 2 best, so I have implemented that.  I will test it Monday with a user who I know still has JMP 14 installed.  Have a great weekend!