Subscribe Bookmark RSS Feed

How to use' user input' in determining which columns to process?

vishwasanj

Frequent Contributor

Joined:

Dec 27, 2016

Hi All,

 

I am able to run scripts continuously and get what I want in the output folder.

 

Sometimes I come across, bad data set that I had to eliminate manually in the raw data files. I use a lot of data filter, looping through it through FOR loops. 

 

Is there a way while running, data filter box freezes and I get to choose what I want and then the script continues?

 

If you have any other suggestion also to make it easier, that would be wonderful.

 

Thank you. I really appreciate your time and effort.

2 REPLIES
uday_guntupalli

Community Trekker

Joined:

Sep 15, 2014

@vishwasanj : 
        Please provide sample data + your script and explain with an example as to what you want .

        Is there a way to stop a file processsing in script - yes , but without knowing what are the conditions that you are dealing with - it is hard to provide any help. 

 

Best 

Uday

Best
Uday
ian_jmp

Staff

Joined:

Jun 23, 2011

If you can give more details it would surely help folks to make better suggestions.

 

Extrapolating from the somewhat sketchy description, perhaps the code below might help to get you started;

NamesDefaultToHere(1);
// Sample data
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Show the global data filter
win = NewWindow("Filter the Data Before Continuing", << Modal,
			dt << DataFilter(Mode( Show( 1 ), Include( 1 ) )),
			ButtonBox("OK", win << closeWindow)
		);
// Using a modal window means that the code below will not be executed until the data filter is set by hand
dt << Graph Builder(
			Show Control Panel( 0 ),
			Variables( X( :height ), Y( :weight ) ),
			Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
		);