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
hogi
Level XII

Report with an image

Hi,

 

the script below generates a window with an image, a script box and a play button.

When I click on play, I get the warning:

hogi_0-1731785811550.png

 

I don’t want to save any report – I just want to run the script – without a warning message.

I can disable this message on my computer via the preferences, but another user might want to have this choice.

how can I disable the warning message for my report?

When I click on "Reference", in the future, I can run the script in the Scriptbox without the warning - till I close the window and open a new report. Can I somehow set it once to “Reference” for the report, such that the warning doesn’t show up?


dummyImage = Open( "$SAMPLE_IMAGES/progress.gif", gif );                                       
New Window( "", 
	V List Box(
		Picture Box( dummy Image ), 
		sb = Script Box( "Caption(\!"hello\!")" ), 
		Button Box( "play", sb << run() )
	)
);
1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XII

Re: Report with an image

Easy solution:
after debugging the application, I want to use it as a Dialog - and in Dialogs one can run scripts without triggering the auto-save : )

 

dummyImage = Open( "$SAMPLE_IMAGES/progress.gif", gif );                                       
nw = New Window( "", 
	<< type("Dialog"), // new -> solves the issue
	V List Box(
		Picture Box( dummy Image ), 
		sb = Script Box( "Caption(\!"hello\!")" ), 
		Button Box( "play", sb << run() )
	)
);

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Report with an image

When I run the script (windows 10 using JMP Pro 18.01) and press Play I do not get the same prompt. The caption box opens normally and I can close scripts/window like I normally would. My preference for Save table with report has been set as Prompt

jthi_0-1731789348400.png

 

-Jarmo
hogi
Level XII

Re: Report with an image

Hm, surprising.
I see it with Jmp17.2, 18.1 and JMP 19EA4.

 

hogi
Level XII

Re: Report with an image

Looking at my script folder ...
Hey, who generated all those report files ?!?!

ah ...

hogi_1-1731796450586.png

 

Interesting, seems that JMP just clicks on  save - even if the window is a report window !

 

NB: the autosave before run is very (!!) helpful. 

I don't know how many times it saved the work of the last 30min  from a nasty bug in the script!

hogi
Level XII

Re: Report with an image

Easy solution:
after debugging the application, I want to use it as a Dialog - and in Dialogs one can run scripts without triggering the auto-save : )

 

dummyImage = Open( "$SAMPLE_IMAGES/progress.gif", gif );                                       
nw = New Window( "", 
	<< type("Dialog"), // new -> solves the issue
	V List Box(
		Picture Box( dummy Image ), 
		sb = Script Box( "Caption(\!"hello\!")" ), 
		Button Box( "play", sb << run() )
	)
);