Description
Hey,
I am a bit confused on how to properly chain callbacks so that I would be able to access the values of an element outside the original input callback.
Example:
serial_number_options =dcc.Dropdown(id="serial")
ecu_type_options=dcc.Dropdown(id="ecu")@app.callback(
output=[dl.Output(serial_number_options,"options")],
args=dict(
test_station_id=dl.Input(test_id_options),
),
template=tpl
)def func():
return some list of values to store in serial_number options@app.callback(
output=[dl.Output(ecu_type_options,"options")],
args=dict(
serial_number=dl.Input(serial_number_options),
),
template=tpl
)def func2():
read in the selected value of serial_number_options drop down
return some list of values to store in ecu_type_options
Because each time I run something like this I just get the following error:
"dash.exceptions.DuplicateIdError: Duplicate component id found in the initial layout: serial
"