This topic is locked

Refresh Page after Export

9/11/2022 6:26:38 PM
PHPRunner General questions
J
Joe S. author

I'd like to add a refresh of a export page, after a export was completed

i trued a custom button to invoke the export, follwoing this

https://asprunner.com/forums/topic/25566-invoking-export-page-in-popup-from-your-own-button
[ This one is quite simple. Add a button to the List page and add the following code to ClientBefore event:
[ $("a[id^=export]").click();
[ Server and ClientAfter events should be left empty.

then added a [[ window.location.reload(); ]] in client after event

but i think the reload causes the export to never start, any suggestions?

Idea is: standard export, then refresh page.

Sergey Kornilov admin 9/12/2022

I don't think this is something that is easily doable. Export is an user-driven asynchronious operaion and you can never know when exactly it will end. Not sure how you can make it work. Also not clear why do you need it to work this way.