Choose Language Hide Translation Bar
Highlighted
Kelly
Level III

How do I prevent JMP Alerts from popping up?

When I use a combo button on the dashboard I get a JMP Alert. Nevermind what the alert says because it runs smoothly besides the popup. Is there a way to prevent or close that Alert within the script?

 

I have tried:

 

 

Combo11 << Batch Interactive ( 1 );

throw();

stop();

 

 

Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
vince_faller
Super User

Re: How do I prevent JMP Alerts from popping up?

Don't send batch interactive to the combobox, you just put the environment into batch interactive when you run your script.  

 

Names default to here(1);
new window("Example", 
	combobox({"Thing 1", "Thing 2", "Thing 3"}, 
		<<Set Function(
			Function({self, value},
				print(value);
				if( value == 2, 
					throw("This should throw a popup")
				, //elif 
					value == 3, 
					batch Interactive(1);
					throw("This should throw to log");
					batch Interactive(0);
				)
			)
		)
	)
)

 

Vince Faller - Predictum

View solution in original post

1 REPLY 1
Highlighted
vince_faller
Super User

Re: How do I prevent JMP Alerts from popping up?

Don't send batch interactive to the combobox, you just put the environment into batch interactive when you run your script.  

 

Names default to here(1);
new window("Example", 
	combobox({"Thing 1", "Thing 2", "Thing 3"}, 
		<<Set Function(
			Function({self, value},
				print(value);
				if( value == 2, 
					throw("This should throw a popup")
				, //elif 
					value == 3, 
					batch Interactive(1);
					throw("This should throw to log");
					batch Interactive(0);
				)
			)
		)
	)
)

 

Vince Faller - Predictum

View solution in original post

Article Labels

    There are no labels assigned to this post.