cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-776503%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%88%97%E3%83%AA%E3%82%B9%E3%83%88%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E6%9B%B4%E6%96%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776503%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BB%A5%E4%B8%8B%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E5%8F%82%E7%85%A7%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0%20%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E7%9B%AE%E7%9A%84%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AF%E3%80%81Col%20List%20Box()%20%E3%81%AE%E6%9C%80%E5%B0%8F%E9%A0%85%E7%9B%AE%E3%82%92%200%20%E3%81%BE%E3%81%9F%E3%81%AF%201%20%E3%81%AB%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%82%8C%E3%82%92%E8%A1%8C%E3%81%86%E3%81%A8%E3%80%81%E5%88%97%E3%83%AA%E3%82%B9%E3%83%88%20%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E5%86%85%E3%81%AE%E9%80%8F%E3%81%8B%E3%81%97%E3%81%8C%3CEM%3E%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%3C%2FEM%3E%E3%81%8B%E3%82%89%3CEM%3E%E5%BF%85%E9%A0%88%3C%2FEM%3E%E3%81%AB%E5%A4%89%E3%82%8F%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E3%81%93%E3%82%8C%E3%81%AF%E3%80%81%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%92%E5%88%97%E3%83%AA%E3%82%B9%E3%83%88%20%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E4%B8%8A%E3%81%AB%E7%A7%BB%E5%8B%95%E3%81%97%E3%81%9F%E5%BE%8C%E3%81%AB%E3%81%AE%E3%81%BF%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%20(%E7%94%BB%E9%9D%A2%E3%81%AE%E3%83%93%E3%83%87%E3%82%AA%E3%82%92%E5%8F%82%E7%85%A7)%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E3%83%9E%E3%82%A6%E3%82%B9%20%E3%82%AB%E3%83%BC%E3%82%BD%E3%83%AB%E3%82%92%E5%88%97%E3%83%AA%E3%82%B9%E3%83%88%20%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E4%B8%8A%E3%81%AB%E7%A7%BB%E5%8B%95%E3%81%9B%E3%81%9A%E3%81%AB%E6%9B%B4%E6%96%B0%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22lia-vid-container%20video-embed-center%20lia-video-unavailable%22%3E%3CDIV%20id%3D%22lia-vid-6359367957112w400h300r449%22%20class%3D%22lia-video-ooyala-player-container%22%3E%3CDIV%20class%3D%22lia-video-status-message%22%3E%E3%81%93%E3%81%AE%E3%83%93%E3%83%87%E3%82%AA%E3%81%AF%E7%8F%BE%E5%9C%A8%E5%87%A6%E7%90%86%E4%B8%AD%E3%81%A7%E3%81%99%E3%80%82%E6%95%B0%E5%88%86%E5%BE%8C%E3%81%AB%E3%82%82%E3%81%86%E4%B8%80%E5%BA%A6%E3%81%8A%E8%A9%A6%E3%81%97%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FDIV%3E%3C%2FDIV%3E%3CA%20class%3D%22video-embed-link%22%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fvideo%2Fgallerypage%2Fvideo-id%2F6359367957112%22%20target%3D%22_blank%22%3E(%E3%83%9E%E3%82%A4%E3%83%93%E3%83%87%E3%82%AA%E3%81%A7%E8%A6%8B%E3%82%8B)%3C%2FA%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0Adlg%20%3D%20New%20Window(%20%22Col%20List%20Box%20Min%20Item%20Refresh%20Issue%22%2C%0A%09H%20List%20Box(%0A%09%09Panel%20Box(%20%22Select%20Columns%22%2C%20clb1%20%3D%20Col%20List%20Box(%20all%2C%20max%20selected(%201%20)%20)%20)%2C%0A%09%09Panel%20Box(%20%22Cast%20Column%22%2C%0A%09%09%09V%20List%20Box(%0A%09%09%09%09H%20List%20Box(%0A%09%09%09%09%09Button%20Box(%20%22Choose%20Column%22%2C%20clbvar%20%26lt%3B%26lt%3B%20append(%20clb1%20%26lt%3B%26lt%3B%20get%20selected%20)%20)%2C%0A%09%09%09%09%09clbvar%20%3D%20Col%20List%20Box(%20maxitems(%201%20)%2C%20nlines(%201%20)%20)%0A%09%09%09%09)%2C%0A%09%09%09%09cb%20%3D%20Check%20Box(%0A%09%09%09%09%09%22required%22%2C%0A%09%09%09%09%09If(%20cb%20%26lt%3B%26lt%3B%20get%2C%0A%09%09%09%09%09%09clbvar%20%26lt%3B%26lt%3B%20set%20min%20items(%201%20)%2C%0A%09%09%09%09%09%09clbvar%20%26lt%3B%26lt%3B%20set%20min%20items(%200%20)%0A%09%09%09%09%09)%0A%09%09%09%09)%0A%09%09%09)%0A%09%09)%2C%0A%09%09V%20List%20Box(%0A%09%09%09Button%20Box(%20%22Ok%22%2C%0A%09%09%09%09Print(%20clbvar%20%26lt%3B%26lt%3B%20get%20items%20)%3B%0A%09%09%09%09dlg%20%26lt%3B%26lt%3B%20close%20window%3B%0A%09%09%09)%2C%0A%09%09%09Button%20Box(%20%22Remove%22%2C%20clbvar%20%26lt%3B%26lt%3B%20remove%20selected%20)%2C%0A%09%09%09Button%20Box(%20%22Cancel%22%2C%20dlg%20%26lt%3B%26lt%3B%20close%20window%20)%0A%09%09)%0A%09%09%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-776503%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E5%A4%A7%E9%87%8F%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%9E%E3%82%A4%E3%82%BA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-776602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%E5%88%97%E3%83%AA%E3%82%B9%E3%83%88%20%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E3%81%AE%E6%9B%B4%E6%96%B0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-776602%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%20%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AB%20%26lt%3B%26lt%3B%20%E5%86%8D%E8%A1%A8%E7%A4%BA%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0Adlg%20%3D%20New%20Window(%20%22Col%20List%20Box%20Min%20Item%20Refresh%20Issue%22%2C%0A%09H%20List%20Box(%0A%09%09Panel%20Box(%20%22Select%20Columns%22%2C%20clb1%20%3D%20Col%20List%20Box(%20all%2C%20max%20selected(%201%20)%20)%20)%2C%0A%09%09Panel%20Box(%20%22Cast%20Column%22%2C%0A%09%09%09V%20List%20Box(%0A%09%09%09%09H%20List%20Box(%0A%09%09%09%09%09Button%20Box(%20%22Choose%20Column%22%2C%20clbvar%20%26lt%3B%26lt%3B%20append(%20clb1%20%26lt%3B%26lt%3B%20get%20selected%20)%20)%2C%0A%09%09%09%09%09clbvar%20%3D%20Col%20List%20Box(%20maxitems(%201%20)%2C%20nlines(%201%20)%20)%0A%09%09%09%09)%2C%0A%09%09%09%09cb%20%3D%20Check%20Box(%0A%09%09%09%09%09%22required%22%2C%0A%09%09%09%09%09If(%20cb%20%26lt%3B%26lt%3B%20get%2C%0A%09%09%09%09%09%09clbvar%20%26lt%3B%26lt%3B%20set%20min%20items(%201%20)%2C%0A%09%09%09%09%09%09clbvar%20%26lt%3B%26lt%3B%20set%20min%20items(%200%20)%0A%09%09%09%09%09)%3B%0A%2F%2FUpdate%20the%20Col%20List%20Box%0A%09%09%09%09%09clbvar%20%26lt%3B%26lt%3B%20Reshow%3B%0A%09%09%09%09)%0A%09%09%09)%0A%09%09)%2C%0A%09%09V%20List%20Box(%0A%09%09%09Button%20Box(%20%22Ok%22%2C%0A%09%09%09%09Print(%20clbvar%20%26lt%3B%26lt%3B%20get%20items%20)%3B%0A%09%09%09%09dlg%20%26lt%3B%26lt%3B%20close%20window%3B%0A%09%09%09)%2C%0A%09%09%09Button%20Box(%20%22Remove%22%2C%20clbvar%20%26lt%3B%26lt%3B%20remove%20selected%20)%2C%0A%09%09%09Button%20Box(%20%22Cancel%22%2C%20dlg%20%26lt%3B%26lt%3B%20close%20window%20)%0A%09%09)%0A%09%09%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
MathStatChem
Level VII

Refresh Col List Box

See the script below.  This is intended to be used in a dialog window. 

 

What this script does is set the Col List Box() min items to be either 0 or 1.  When doing this, the watermark inside the column list box should change from optional to required.  It will do this, but only after I move the mouse over the column list box (see screen video).

 

Is there a way to make that refresh/update without having to move the mouse cursor over the Col List Box?  

 

 

Names Default To Here( 1 );

dlg = New Window( "Col List Box Min Item Refresh Issue",
	H List Box(
		Panel Box( "Select Columns", clb1 = Col List Box( all, max selected( 1 ) ) ),
		Panel Box( "Cast Column",
			V List Box(
				H List Box(
					Button Box( "Choose Column", clbvar << append( clb1 << get selected ) ),
					clbvar = Col List Box( maxitems( 1 ), nlines( 1 ) )
				),
				cb = Check Box(
					"required",
					If( cb << get,
						clbvar << set min items( 1 ),
						clbvar << set min items( 0 )
					)
				)
			)
		),
		V List Box(
			Button Box( "Ok",
				Print( clbvar << get items );
				dlg << close window;
			),
			Button Box( "Remove", clbvar << remove selected ),
			Button Box( "Cancel", dlg << close window )
		)
		
	)
);
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Refresh Col List Box

Add a << Reshow message to your Check Box script.

 

Names Default To Here( 1 );

dlg = New Window( "Col List Box Min Item Refresh Issue",
	H List Box(
		Panel Box( "Select Columns", clb1 = Col List Box( all, max selected( 1 ) ) ),
		Panel Box( "Cast Column",
			V List Box(
				H List Box(
					Button Box( "Choose Column", clbvar << append( clb1 << get selected ) ),
					clbvar = Col List Box( maxitems( 1 ), nlines( 1 ) )
				),
				cb = Check Box(
					"required",
					If( cb << get,
						clbvar << set min items( 1 ),
						clbvar << set min items( 0 )
					);
//Update the Col List Box
					clbvar << Reshow;
				)
			)
		),
		V List Box(
			Button Box( "Ok",
				Print( clbvar << get items );
				dlg << close window;
			),
			Button Box( "Remove", clbvar << remove selected ),
			Button Box( "Cancel", dlg << close window )
		)
		
	)
);

View solution in original post

1 REPLY 1

Re: Refresh Col List Box

Add a << Reshow message to your Check Box script.

 

Names Default To Here( 1 );

dlg = New Window( "Col List Box Min Item Refresh Issue",
	H List Box(
		Panel Box( "Select Columns", clb1 = Col List Box( all, max selected( 1 ) ) ),
		Panel Box( "Cast Column",
			V List Box(
				H List Box(
					Button Box( "Choose Column", clbvar << append( clb1 << get selected ) ),
					clbvar = Col List Box( maxitems( 1 ), nlines( 1 ) )
				),
				cb = Check Box(
					"required",
					If( cb << get,
						clbvar << set min items( 1 ),
						clbvar << set min items( 0 )
					);
//Update the Col List Box
					clbvar << Reshow;
				)
			)
		),
		V List Box(
			Button Box( "Ok",
				Print( clbvar << get items );
				dlg << close window;
			),
			Button Box( "Remove", clbvar << remove selected ),
			Button Box( "Cancel", dlg << close window )
		)
		
	)
);

Recommended Articles