How to send messages to an already existing local data filter inside a graph builder windowIs it possible to send messages to a local data filter inside a graphbuilder object?
Unfortunately, it's not possible to define a varaible "ldf" inside the graphbuilder code - to send the messages to "ldf".
Do I have to "pipe" the message "through the gb object"?
View more... Advanced Statistical ModelingContent OrganizationData AccessData Exploration and VisualizationMass CustomizationRe: Ho to send messages to a local data filter inside a graph builder windowAh, via the report layer!
thanks.
<<GET scriptable="" object=""></GET>
is the best invention!
Re: Ho to send messages to a local data filter inside a graph builder windowldf = current report()["Local Data Filter"]<<GET scriptable="" object=""></GET>
Re: Ho to send messages to a local data filter inside a graph builder windowAnd if the Graph is already there and I want to get the settings of the (existing) local data filter?
Any chance?
Re: Ho to send messages to a local data filter inside a graph builder windowOh, sure.
Like always:
enter the room through another door - and the wall is gone.
Thanks Jarmo.
Re: Ho to send messages to a local data filter inside a graph builder windowHere is an example taken from the Scripting Index
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Time Series/Air.jmp" );
gb = dt << Graph Builder(
Size( 522, 492 ),
Show Control Panel( 0 ),
Variables(
X( :month ),
Y( :Ozone Concentration ),
Group X( :Summer Months Intervention )
),
Elements( Points( X, Y, Legend( 10 ) ), Smoother( X, Y, Legend( 11 ) ) ),
);
ldf = gb << Local Data Filter(
Add Filter( columns( :date ), Where( :date >= 16Oct1965 & :date <= 31Aug1968 ) )
);
fc = ldf << Get Filter Column( :date );
fc << Zoom to Selection;
Wait( 1 );
fc << Reset Zoom;
Re: Ho to send messages to a local data filter inside a graph builder windowYou could add local data filter after graph builder has been created, this will let you have a reference
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = dt << Graph Builder(
Size(534, 464),
Show Control Panel(0),
Graph Spacing(5),
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(5)), Smoother(X, Y, Legend(6)))
);
ldf = gb << Local Data Filter(Add Filter(columns(:sex), Where(:sex == "F")));
wait(1);
ldf << Clear();
ldf << Add Filter( columns( :name) );// same for ldf?