Subscribe Bookmark RSS Feed

How to hide a data table within a script

bjbreitling

Community Trekker

Joined:

Dec 13, 2012

Hi, 

 

I have a script with generates an additional datatable and an analysis.  I would like the additional data table to be hidden after its generated but not closed as I want the analysis to be open.  Is  there a command in the script to do this?

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
stan_koprowski

Community Manager

Joined:

Aug 8, 2012

Solution

Brandon,

You will need to set the boolean option for Invisible to 1.

Under help select scripting index.  Type invisible in the search and look at the entry for ColBox for additional information.

See below for an example.

Stan

dt =Open( "$SAMPLE_DATA/Big Class.jmp");

fitModelPlt = Fit Model(

  Y( :height ),

  Effects( :age, :weight ),

  Personality( Standard Least Squares ),

  Emphasis( Effect Leverage ),

  Run(

  :height << {Lack of Fit( 0 ), Plot Actual by Predicted( 1 ),

  Plot Residual by Predicted( 1 ), Plot Effect Leverage( 1 )}

  ),

  Where( :sex == "F" )

);

fitRpt = Report (fitModelPlt)[Table Box(5)];

tbl = fitRpt << Make Combined Data Table (Invisible(1)) ;

tbl << Set Name("fit_estimates");

4 REPLIES
stan_koprowski

Community Manager

Joined:

Aug 8, 2012

Hello Brandon,

You can use the invisible option.  Invisible keeps the table hidden from view but available in the JMP home window.

dt =Open( "$SAMPLE_DATA/Big Class.jmp", invisible );

bjbreitling

Community Trekker

Joined:

Dec 13, 2012

How would I do that with a data table created with this code:

combinedTbl = Report(fitModelPlt[1])["Effect?"][Table Box(1)] << Make Combined Data Table;

pmroz

Super User

Joined:

Jun 23, 2011

Add << show window(0) to the end of your expression.  << show window(1) will make the table visible again.

combinedTbl = Report(fitModelPlt[1])["Effect?"][Table Box(1)]

     << Make Combined Data Table << show window(0);

stan_koprowski

Community Manager

Joined:

Aug 8, 2012

Solution

Brandon,

You will need to set the boolean option for Invisible to 1.

Under help select scripting index.  Type invisible in the search and look at the entry for ColBox for additional information.

See below for an example.

Stan

dt =Open( "$SAMPLE_DATA/Big Class.jmp");

fitModelPlt = Fit Model(

  Y( :height ),

  Effects( :age, :weight ),

  Personality( Standard Least Squares ),

  Emphasis( Effect Leverage ),

  Run(

  :height << {Lack of Fit( 0 ), Plot Actual by Predicted( 1 ),

  Plot Residual by Predicted( 1 ), Plot Effect Leverage( 1 )}

  ),

  Where( :sex == "F" )

);

fitRpt = Report (fitModelPlt)[Table Box(5)];

tbl = fitRpt << Make Combined Data Table (Invisible(1)) ;

tbl << Set Name("fit_estimates");