I would like to implement a download all function which allows me to download all pages (10+) in one go using ag grid export multiple excel sheets api. Inside of each page (each page connects to different tables), I did data aggregation, (renaming, pivot…) and since I also use ag grid row grouping feature, I also define columnDef for each dataset. Therefore I dont wanna to duplicate those steps/work, instead I would like to directly import those dash girds into a separate py file. I am not sure if it is allowed to import this pages(df,columndef,dashgrids) now due to this duplicate module error, also not sure if I do this download all function in a wise way.
It will be really appreciated if you can give some suggestions to solve duplicate path issue or any better ideas to implement download all pages function.
Could you please provide a little more information?
Are you trying to save a snapshot of the grids on all the different pages - after callbacks and user interaction? If so, that is not a simple thing to do.
If you would like to create a new page with the initial grid definitions on each page, that would be possible, but the dash.register_page would need to be called from app.py.
Thanks for that issue I think I have found a way to solve it. But I have another question, really appreicated if you can help.
I would like to create a button on of the app narvbar (Instead of creating a page which only has one download button), when users clicked, it downloads all girds (I save these grids in a separate py file). I have already use clientside_callback to trigger a download. Not sure if it is possible to achieve?