Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Webapps Dash - interaction between webapps

antoine_glr
Level 1
Webapps Dash - interaction between webapps

Hi, 

I have an issue using webapp dash functionality.
I'm currently working on creating an interactive map that can display layers and apply filters at the user's convenience.
To do this using my current solution, the user must first load its .geojson files and instructions (points and polygons) throughout an homemade form (using dash features and extensions). These files are then saved in dataiku folders from the current flow.
In a second time, another piece of code allows to use the files saved in the folders and to generate the map.
These two pieces of code work very well independently.
However, once the complete consolidated code is created, the code does not work anymore because the map generation code runs in the backend even before the files are loaded (so the map is always empty). I can't find any dash function or callback configuration to help me for the moment.

I wonder then, is there a way to make two webapps interact successively so that : 1) the user can upload these geojson files using our solution (not uploading directly on dataiku folders), 2) once the files are saved, the map can be generated?

Thank you in advance,

Antoine

0 Kudos
1 Reply
AlexT
Dataiker
Dataiker

Hi Antoine, 

Have you tried looking at adding prevent_initial_call attribute in the callback:  https://dash.plotly.com/advanced-callbacks

That may help if not perhaps you can share a snippet of your code to get a better idea of your code.

 

Thanks,

0 Kudos