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

Possible to have title bar display full file path?

Is it possible to have the title bar display the full file path rather than just the filename?

4 REPLIES 4
txnelson
Super User

Re: Possible to have title bar display full file path?

Is this what you are talking about?

txnelson_0-1676400333025.png

If so,  this is how to do it

Names Default To Here( 1 );
dt01 = Open( "$SAMPLE_DATA/Big Class.jmp" );

bivariate( x( :height ), y( :weight ) );

// Once the report is generated, this JSL will change the title 
// to the path
thePath = dt01 << get path;
Current Report()[Outline Box( 1 )] << set title( thePath );

 

Jim

Re: Possible to have title bar display full file path?

@txnelson 

 

That answers my question in the case of a report, but can it be done for a data table? Ideally I'd the Windows title bar to display the full file path and filename.

 

txnelson
Super User

Re: Possible to have title bar display full file path?

The Windows title bar for a data table only lists the table name.  Given that, you technically can change the name of your data table to be the complete path

txnelson_0-1686951755453.png

 

 

Jim
Craige_Hales
Super User

Re: Possible to have title bar display full file path?

Here's a slightly flawed solution:

dt = Open( "$sample_data/big class.jmp", Invisible );
New Window( dt << getpath, dt << New Data Box );
  • The window has a small space above.
  • The window thinks it is a report, not a table. The needs-to-save check does not work right.
  • When the window is closed, the invisible table remains open. You might add an OnClose to fix that.
Craige