Choose Language Hide Translation Bar
jthi
New Contributor

Opening Running Queries from script

I'm trying to create UI where sql query can be run on foreground when user presses a button and this button may be pressed multiple times. I would like to the user how many queries are currently running. If possible I would like to use Running Queries which can be found from View menu. Can this be opened directly from script?

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Opening Running Queries from script

One option just occurred to me.  It does not allow interaction or asking for information from the Running Queries window, but if you just want to pop it up you can use:

 

Main Menu("Running Queries");

 

In your script and the Window will at least be presented to users.

 

Brian Corcoran

JMP Development

 

View solution in original post

4 REPLIES 4

Re: Opening Running Queries from script

Hi,

 

If you run the query in the foreground, you are only going to have one query running at a time.  However, to answer your question there currently is no scripted way to get access to the View->Running Queries dialog.  There is an open suggestion for an enhancement to do this.

 

Brian Corcoran

JMP Development

jthi
New Contributor

Re: Opening Running Queries from script

Oopss. Meant to say background instead of foreground...
Thank you for information, I'll create some kind of custom New Window temporary (waiting of enchantment) to give information to user that queries are being ran in background.
0 Kudos
Highlighted

Re: Opening Running Queries from script

One option just occurred to me.  It does not allow interaction or asking for information from the Running Queries window, but if you just want to pop it up you can use:

 

Main Menu("Running Queries");

 

In your script and the Window will at least be presented to users.

 

Brian Corcoran

JMP Development

 

View solution in original post

jthi
New Contributor

Re: Opening Running Queries from script

This is exactly what I was looking for. Couldn't just find the Main Menu() function. This should be enough most of the time for my script. Thank you!
0 Kudos