Hello
I'm generating a data filter on a table and I have two questions:
- How can I use scripting to select several values (with contains?) for one of my data filter columns?
- Is it possible to fix one of the fields? For example, having my Region field set to ‘S’ in the data filter, so that it's visible but not modifiable by the user, and the rest of the fields on the data filter (conditional on the set field) remain modifiable? I could use a subset of the table on which I'm doing my data filter, but I'd like to avoid that.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = dt <<
Data Filter(
Conditional,
Add( Filter Columns( :Region, :Lead ) )
);
Wait( 1 );
obj << (Filter Column( :Region ) <<
Where( Contains({"C","S"},:Region)));