I have some code that is building a variability chart for a few different properties, and I wanted a local data filter that worked for all of them together, but I realized that hte scope of the local data filter is just down to each property, as opposed to the full page.
Is there a way in the code to change the scope within the given report? Or will I have to do something with a Global Data filter instead?
You can use a Data Filter Context Box to define the context for the data filter.
Here's an example from the documentation.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); New Window( "Shared Local Filter", Data Filter Context Box( H List Box( dt << Data Filter( Local ), Platform( dt, Bubble Plot( X( :weight ), Y( :height ), Sizes( :age ) ) ), Platform( dt, Bubble Plot( X( :weight ), Y( :age ), Sizes( :height ) ) ) ) ) );
Jeff, thanks a lot for this, very helpful for something I am trying to do with building an application.