cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
anne_sa
Level VI

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!

 

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

View solution in original post

gzmorgan0
Super User (Alumni)

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. 

View solution in original post

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 (Alumni)

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
Level VI

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