I have developped an online survey solution that runs solely using the Web Client, and I have added a method to the last page that does application.exit() so that I can immediately reuse the license from the user. However, this brings them back to the Servoy Client lanucher, which I would rather avoid.
If I use application.closeSolution() instead, the person filling out the survey will see a list of all the solutions served by Servoy Server, which is not what I would like either.
Is there a way to bring my user on a Web Page that I can customize, but only for THIS solution? Or better yet, if I could run a method that would close the browser window in which the survey runs, that would work also. As long as the user’s session is closed right away, because that’s what I’m looking for.
LOGIsoft:
Is there a way to bring my user on a Web Page that I can customize, but only for THIS solution?
Just from the top of my head: you could create a simple solution with a single form saying “thank you for partecipating…” and on the startup method of this mini solution call the user logout; then from the main solution when the user is done you open this minisolution that basically just shows the splash out screen and logs out the user.
Another idea could be to use a redirect link in xx seconds in the closing form of the main solution so that after xx seconds that the form is shown (and application.close() has being invoked) the browser autoloads a different page.
I like the redirect idea, Nicola. How would I implement this using a method without showing the files listing? And what would control the delay before the refresh?
Where 5 is the number of second to wait and html-redirect.html is the redirection page.
Remember that when edited via webdav servoy won’t update the page anymore even if you change something on the corrisponding form.
I don’t know how application.close() and application.logout() work on the webclient so you’ll have to find out yourself. This is just an idea.
I am working on a solution that will run in the web client and would like to be able to stop the users seeing the servoy menu as well. However I cant seem to make the above work, I get an “Internal Error” and a link back to the servoy menu.