cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
agonzales2021
Level III

Refreshing items in text edit box, text box, or list box (whichever is easiest)

Ughh the last thing I get held up on is refreshing :\

 

Okay. So I have the option of having a list box or text edit box (I hate text boxes since you can't hilight text in them) that by default contains only one line "Existing comments go here"

 

And when a user presses a button below, a function is run that feeds back a list "All_Comments" = {"A", "B"};
I'd like to replace that "Existing comments go here" in the box I use with the items from my list. :) Unfortunately, nothing I am trying is working.

I've tried refreshing, reshowing, appending... maybe I'm not going it right. Here is a simple example I can learn from:

disp = {"INSERT HERE"};

nw1 = New Window("NEW STUFF",
lb= List Box(disp)

);


All_Comments={"SOAP","FOOD","PUPPIES"};
lb << Append( List box(All_Comments));

2 REPLIES 2
ian_jmp
Level X

Re: Refreshing items in text edit box, text box, or list box (whichever is easiest)

Is this it?

NamesDefaultToHere(1);
disp = {"INSERT HERE"};
nw1 = New Window( "NEW STUFF",
		lb = List Box( disp ),
		ButtonBox("Update List", updateScript);
		);
ShowProperties(lb);

updateScript =
Expr(
	All_Comments = {"SOAP", "FOOD", "PUPPIES"};
	lb << removeAll;
	lb << append(All_Comments)
);

Look in the log to see what other messages 'ListBox()' understands.

pmroz
Super User

Re: Refreshing items in text edit box, text box, or list box (whichever is easiest)

You can highlight text boxes by changing their background color.

nw = new window("Test",
	tb1 = text box("Hello"),
	tb2 = text box("World")
);

tb1 << Background Color( "Green" );
tb2 << Background Color( "Light Yellow" );

The method is there for text edit boxes too but doesn't seem to have any effect.

Recommended Articles