cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Pass combo box value to another script

Hi all,

I am currently working on 2 scripts. The 2nd script is being included on the 1st one.

I have a combo box on my 1st script that needs the value to be passed into the 2nd script so I can remove unwanted columns from the 2nd script. But the variable used for my combo box doesn't pass the value to the 2nd script. Pls help

1st Script 

H List Box (cb = Combo Box( {"", "Apple", "Orange"}, frt = cb << GetSelected();  )),						

2nd Script

colname = { "Apple", "Banana", "Strawberry", "Mango", Orange"
		};


if (frt== "Apple", 
	Remove From( colname, Contains( colname, "Apple" ) ),	
	Remove From( colname, Contains( colname, "Orange" ) )	
);
1 REPLY 1

Re: Pass combo box value to another script

you should not have a problem if you use a global variable with the same name in both scripts.

 

Are you currently using specific namespaces for the variable, such as Here? That practice will prevent the second script from accessing the variable defined in the first script.

Recommended Articles