Hi all,
I would like to ask how to use JSL to select a specific item in the filter when the local data filter already exists, such as first selecting :age == "12" and then selecting :age == "13" next time,thanks (JMP17)
Sending Where message to data filter is one option. Scripting Index has example on how to use it
Names Default To Here(1); dt = Open("$SAMPLE_DATA/Cities.jmp"); obj = dt << Data Filter(Add(Filter Columns(:Region, :Lead))); Wait(1); obj << (Filter Column(:Lead) << Where(:Lead >= .4 & :Lead <= 1.4));
Sorry, I forgot to add one condition — it was in the Graph Builder and I just tried it out, but it doesn't seem to have taken effect.
What does your script look like? Do you have reference to the local data filter?
dt = Open( "$SAMPLE_DATA/Cities.jmp" ); graph = dt << Graph Builder( Size( 528, 455 ), Show Control Panel( 0 ), Variables( X( :POP ), Y( :CO ) ), Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 5 ) ) ), ); graph << Local Data Filter( Add Filter( columns( :Region ), Display( :Region, N Items( 6 ) ) ) ); <BR />//It seems that writing it this way doesn't work, obj << (Filter Column(:Region) << Where(:Region == "C"));
It is hoped that the selection of filters can be separated for independent operation.