BookmarkSubscribe
Choose Language Hide Translation Bar
Highlighted
anne_sa
Community Trekker

How can we automatically run a script when opening a table?

Hello everyone,

 

I would like to know if there is a way to automatically run a script each time a table is open.

 

Thanks in advance for your help!

 

0 Kudos
2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: How can we automatically run a script when opening a table?

I am not aware of such a feature.  However, one can create a JMP Report(.jrp) or a script(.jsl) or an addin(.jmpaddin) that when opened, would open the data table and run a script.  What are the specifics of what you are wanting to do?

 

You can create a table script called "On Open" which will be run when the data table is opened.

See "Prompting to Run a Script upon Opening a Data Table" in the Scripting Guide

     Help==>Books==>Scripting Guide

Jim
gzmorgan0
Super User

Re: How can we automatically run a script when opening a table?

This works on JMP 14.

 

Attached are 2 files:

  • Subscribe.jsl
  • Chemical Kinetics.jmp, which is a modification of the JMP sample data table with an attached script called startup.

Run the script Subscribe.jsl then close it.  Until you unsubscribe any table you open with a script named Startup will automatically run. If you download and run the attached Chemical Kinetics.jmp table, a bivariate script named startup will automatically run. 

3 REPLIES 3
txnelson
Super User

Re: How can we automatically run a script when opening a table?

I am not aware of such a feature.  However, one can create a JMP Report(.jrp) or a script(.jsl) or an addin(.jmpaddin) that when opened, would open the data table and run a script.  What are the specifics of what you are wanting to do?

 

You can create a table script called "On Open" which will be run when the data table is opened.

See "Prompting to Run a Script upon Opening a Data Table" in the Scripting Guide

     Help==>Books==>Scripting Guide

Jim
gzmorgan0
Super User

Re: How can we automatically run a script when opening a table?

This works on JMP 14.

 

Attached are 2 files:

  • Subscribe.jsl
  • Chemical Kinetics.jmp, which is a modification of the JMP sample data table with an attached script called startup.

Run the script Subscribe.jsl then close it.  Until you unsubscribe any table you open with a script named Startup will automatically run. If you download and run the attached Chemical Kinetics.jmp table, a bivariate script named startup will automatically run. 

anne_sa
Community Trekker

Re: How can we automatically run a script when opening a table?

Thank both of you for your answers!

Two different but really great ways to do it :)

0 Kudos