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.
matt7109
Level III

Update values in window

Hi, the following code has a table box containg a number col edit box initialized to [1,2,3]. However, I would like for when the button named "Change Vals" is pressed, to update the values in the number col edit box to [4,5,6]. How can I go about doing this? Code show below..

Names Default To Here( 1 );

list = [1, 2, 3];
New Window( "Test",
	Button Box( "Change Vals", list = [4, 5, 6] ),
	Table Box( String Col Box( "Col 1", {"One", "Two", "Three"} ), Number Col Edit Box( "Col 2", list ) )
)

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Update values in window

You need a reference to your Number Col Edit Box and you can use the Set Values() message to change the values.

 

Like this.

 

list = [1, 2, 3];
New Window( "Test",
	Button Box( "Change Vals",
		list = [4, 5, 6];
		foo << set values( list );
	),
	Table Box(
		String Col Box( "Col 1", {"One", "Two", "Three"} ),
		foo = Number Col Edit Box( "Col 2", list )
	)
);

JMPScreenSnapz111.png

-Jeff

View solution in original post

1 REPLY 1
Jeff_Perkinson
Community Manager Community Manager

Re: Update values in window

You need a reference to your Number Col Edit Box and you can use the Set Values() message to change the values.

 

Like this.

 

list = [1, 2, 3];
New Window( "Test",
	Button Box( "Change Vals",
		list = [4, 5, 6];
		foo << set values( list );
	),
	Table Box(
		String Col Box( "Col 1", {"One", "Two", "Three"} ),
		foo = Number Col Edit Box( "Col 2", list )
	)
);

JMPScreenSnapz111.png

-Jeff

Recommended Articles