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
csoon1
Level III

Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

I am processing hundreds of thousands of rows and I wanted something "visual" to tell the user that the script is doing something. I appreciate any hints or tricks to achieve this.

14 REPLIES 14
msharp
Super User (Alumni)

Re: Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

I like your use of functions to accomplish the same thing, makes it cleaner. 

A few things I've learned from when I scripted mine above, if the user decides to close the window it will crash your script.  I'd suggest looking at my code I attached above.  Uses try/catch and allows the user to hit cancel as well.  Also, feel the Show Menu(0), and Show Toolbar(0) makes a loading bar a little cleaner for the window.

Craige_Hales
Super User

Re: Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

I like the cancel button and the x-axis percentage.  The Show Menu(0) and Show Toolbar(0) is pretty cool too.

Craige
pmroz
Super User

Re: Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

Craige,

Somehow the website munged a portion of your code.  See the middle line below:

spacerbox(size(20,20)),

  progress:busy = Busy Light( <

  Border Box( Left( 20 ), Right( 20 ), top( 20 ), bottom( 20 ),

stan_koprowski
Community Manager Community Manager

Re: Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

Hi,

Yes. It does look like the translator removed some of the key elements.

I'll see if I can get the translation to stop being so greedy.

In the meantime, if you uncheck the the Translate Page to: option it will show the missing characters.

11087_Screenshot 2016-02-26 15.59.38.png

Stan

Craige_Hales
Super User

Re: Does JSL provide a "busy" indicator similar to a spinning wheel or bar?

Thanks, I attached a copy of the script.  I suspect the less-than less-than in the JSL makes some browsers unhappy.  I've noticed the three browsers I often use render the community pages differently.  Progress Bar

Craige