cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
pbrett
Level II

Problems with Data Filter and Plots Autoupdating

I'm trying to use sliders and have a data filter at the same time. The problem I have is that when I open my filter, moving the sliders causes the figure to no longer update. Without the filter, the figure updates fine. The sliders are hooked up to Table Variables that then are used in columns for calculations. I opened the data sheet and the numbers are still changing as well as the equations. Unsure why the figure itself won't update.

I've replaced the specific details of the data with generic placeholder names. DataTable12 is the data table with the data and equations updating. I was using 'Current Data Table()' but it got confused if something else somehow ended up as my current data table so that's why I replaced it to the table name.

Filter Code

DataTable12 << Data Filter(

    Location({3600,121}),

    Add Filter(

        columns(

            :Column Name1,

            :Column Name2,

            :Column Name3

        ),

        Display( Column Name1, Size( 298, 154 ), List Display ),

        Display( Column Name3, Size( 298, 79 ), List Display )

    )

)

Slider Code

dt = DataTable12;

val = Slider1 << Get;

dt << Set Table Variable("w_one",val);

NumberEdit1 << Set(val)

Number Box Code

dt = DataTable12;

val = NumberEdit1 << Get;

dt << Set Table Variable("w_one",val);

Slider1 << Set(val)

Thanks!

5 REPLIES 5
Nate_Riordan
Staff (Retired)

Re: Problems with Data Filter and Plots Autoupdating

HI pbrett​,

Have you included automatic recalculation in the figure?

Bivariate( Y( :height ), X( :weight ), Automatic Recalc( 1 ) )

11981_Screen Shot 2016-07-07 at 9.03.11 PM.png

pbrett
Level II

Re: Problems with Data Filter and Plots Autoupdating

Nate,

Yep, it's turned on. The plot updates prior to opening the filter and after closing the filter, a little bit later. Just can't figure out why it doesn't work with the filter on. I can try switching back to using 'Current Data Table()' in lieu of DataTable12 but I do acknowledge that it causes other problems if that value changes.

chungwei
Staff (Retired)

Re: Problems with Data Filter and Plots Autoupdating

What filter mode is set ? Select ? Show ? Include ?

pbrett
Level II

Re: Problems with Data Filter and Plots Autoupdating

When it opens, it's only set to select currently. Even opening the filter and not picking any options (basically just "here's a filter") breaks autocalculation of the formulas from the slider/number box changes.

On closing it, the changes to the slider/number boxes again update the plot.

pbrett
Level II

Re: Problems with Data Filter and Plots Autoupdating

A colleague and I figured out the cause of our figure not updating. I had included the y-axis in the plot (which is calculated) in the filter. When we removed it from the filter, the plot would update with the sliders/number box and the filter open. It seems that JMP is not able to dynamically update the bounds of a calculated parameter in the filter window and that was the cause of my frozen figure.

I can see why that might be a challenging endeavor. But surely there might be a fix for that?

Thanks all for the help.