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

JMP JSL to add more graphs for DoE model response

Hi @txnelson ,

 

I have many DoE model in the report. I want to use another JSL to add more analysis results to the existing report. But I cannot find a way to do it. For example, I can use the code below to open or close the existing analysis such as Summary of Fit and Parameter Estimates, which was successful only I choose the summary of fit and parameter estimates from the red triangle list. How to modify the code below to check if summary of fit is selected, if not then add it into the report? I spent a lot of time, but not able to figure it out.

 

Thank you so much for your help.

ob = rbiv << XPath( "//OutlineBox[ contains( text(), 'Response' ) ]" );

Print( ob );

For( i = 1, i <= N Items( ob ), i++,
	name = ob[i] << get title;
	Print( name );
	ob[i] << Close( 1 );
	ob[i]["Summary of Fit"] << Close( 0 );
	ob[i]["Parameter Estimates"] << Close( 0 );
);

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: JMP JSL to add more graphs for DoE model response

Here is a piece of code that will open the Summary of Fit if it isn't open.

ob = rbiv << XPath( "//OutlineBox[ contains( text(), 'Response' ) ]" );

Print( ob );

For( i = 1, i <= N Items( ob ), i++,
	name = ob[i] << get title;
	Print( name );
	obj = ob[i] << get scriptable object;
	try( obj<<Summary of Fit(1));
	ob[i] << Close( 1 );
	ob[i]["Summary of Fit"] << Close( 0 );
	ob[i]["Parameter Estimates"] << Close( 0 );
);

Additionally, it is a simple matter to open the Summary of Fit sections for all models, with one click.  If you hold down the CNTL key and click on the Summary of Fit selection, and all models will have the Summary of Fit added to the analysis.

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: JMP JSL to add more graphs for DoE model response

Here is a piece of code that will open the Summary of Fit if it isn't open.

ob = rbiv << XPath( "//OutlineBox[ contains( text(), 'Response' ) ]" );

Print( ob );

For( i = 1, i <= N Items( ob ), i++,
	name = ob[i] << get title;
	Print( name );
	obj = ob[i] << get scriptable object;
	try( obj<<Summary of Fit(1));
	ob[i] << Close( 1 );
	ob[i]["Summary of Fit"] << Close( 0 );
	ob[i]["Parameter Estimates"] << Close( 0 );
);

Additionally, it is a simple matter to open the Summary of Fit sections for all models, with one click.  If you hold down the CNTL key and click on the Summary of Fit selection, and all models will have the Summary of Fit added to the analysis.

Jim