So basically, what I’m trying to do is this:
Users Selects a Start TIME and End TIME to make changes to the datatable, which has of 80+ columns
each representing 15minutes of a day.
Once they select a Job Function and the StartTime and EndTime and then press the save_changes_button,
a callback function runs and changes the value of the cells in those columns which range between the StartTime and EndTime with the job function they selected.
So a usual flow would be to select say “Cashier”, then Select 15:00 to 18:00 as the time ranges. The function will change the cells who’s columns are “15:00”, “15:15”… etc. for that employee into “Cashier”.
the function currently looks like this, but when I simply put a print statement to check if the callbacks work, dash prints “ERROR LOADING DEPENDENCIES” into the app.
@app.callback(Output('indirect_job_changes', 'data'), [Input('save_changes_button', 'n_clicks'), Input('main_datatable', 'data')] [State('indirect_job_options', 'value') State('start_time_filter', 'value'), State('end_time_filter', 'value')] ) def make_indirect_job_function_changes(n_clicks): print("hello")
How do I go about making this callback work? I want the callback to fire only when the save button is clicked, and it takes the current values in the JobFunction dropdown, and the StartTime,EndTime options which are of type dcc.Input(type = ‘time’).