BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
bjbreitling
Community Trekker

How to hide a data table within a script

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,

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
stan_koprowski
Community Manager Community Manager

Re: Hide data table with script

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");

0 Kudos
4 REPLIES 4
stan_koprowski
Community Manager Community Manager

Re: Hide data table with script

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 );

0 Kudos
bjbreitling
Community Trekker

Re: Hide data table with script

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;

0 Kudos
pmroz
Super User

Re: Hide data table with script

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 Community Manager

Re: Hide data table with script

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");

0 Kudos