cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Vinusha
Level II

Blank window is getting poped up when jmp application is used.

I have created a blank application and written jmp script for displaying new window in the pace allocated for module1. But when running the application another window is getting popped up. How to address that window in order to make it invisible.

 

This is the example code of new window. 

Names Default To Here( 1 );

If(
	ex = New Window( "Modal Dialog example",
		<<Type( "Modal Dialog" ),
		<<Return Result,
		<<On Validate(
			If(
				num = variable << Get;
				num >= 1 & num <= 100;
			,
				variable <<
				Background Color( "Background" );
				1;
			,
				variable <<
				Background Color( "Light Yellow" );
				0;
			)
		),
		V List Box(
			Text Box(
				"Enter a value between [1,100]:"
			),
			H List Box(
				variable = Number Edit Box( 42 )
			),
			H List Box(
				Button Box( "OK" ),
				Button Box( "Cancel" )
			)
		)
	);
	ex["button"] == 1;
,
	ex["variable"],
	"CANCEL"
);

I am attaching the two windows that are getting poppWhatsApp Image 2024-01-08 at 11.43.00 AM.jpegWhatsApp Image 2024-01-08 at 11.43.01 AM.jpeged up.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Blank window is getting poped up when jmp application is used.

Hello @Vinusha ,

You can close a report window with the following script.

 

Window( "My Report" ) << close window;

You can set the name of a report in the Properties pane on the right.

2024-01-10 144822.png

  Hope it works.

 

View solution in original post

2 REPLIES 2

Re: Blank window is getting poped up when jmp application is used.

Hello @Vinusha ,

You can close a report window with the following script.

 

Window( "My Report" ) << close window;

You can set the name of a report in the Properties pane on the right.

2024-01-10 144822.png

  Hope it works.

 

Vinusha
Level II

Re: Blank window is getting poped up when jmp application is used.

Yeah, That's working. Thank you