cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Pass combo box value to another script

UserID16644
Level V

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.