Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Control order of call backs

$
0
0

Here is my scenario:

  1. Drop down#1 have list of data frames to choose and user can choose only 1 dataframe
  2. Drop down#2 is dynamic and depending on the dataframe chose in dropdown#1, it’s columns get populated in this dropdown#2.
  3. Based on column/s selected in dropdown#2, I have some callbacks displaying graphs for the columns selected.

Now let’s say if the user chooses another dataframe without clearing the column/s selected in dropdown#2, I am getting error from the graph displaying callbacks as the predicting columns will not be there in the newly selected datafrane.

One if the solution is when user selected a dataframe from dropdown#1, I can write a callback to first clear the values in the dropdown#2 and another Callback to populate its columns. But how can I control the order of execution of these 2 call backs pointing to same output(values in dropdown#2).

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images