Disabling the WebClient Home page

Forum to discuss the Web client version of Servoy.

Disabling the WebClient Home page

Postby LOGIsoft » Thu Feb 15, 2007 1:35 pm

Hello everyone,

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.

Thanks in advance,

Ben
Benoit R. Savignac, president
LOGIsoft Consulting inc.
--------------------------------------------------------
Servoy Alliance Network Partner
User avatar
LOGIsoft
 
Posts: 260
Joined: Wed May 24, 2006 3:06 pm
Location: St-Basile-le-Grand (Montreal), Qc, Canada

Re: Disabling the WebClient Home page

Postby ngervasi » Thu Feb 15, 2007 2:12 pm

LOGIsoft wrote: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.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby LOGIsoft » Thu Feb 15, 2007 3:09 pm

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? :?

Thanks for your input,

Ben
Benoit R. Savignac, president
LOGIsoft Consulting inc.
--------------------------------------------------------
Servoy Alliance Network Partner
User avatar
LOGIsoft
 
Posts: 260
Joined: Wed May 24, 2006 3:06 pm
Location: St-Basile-le-Grand (Montreal), Qc, Canada

Postby ngervasi » Thu Feb 15, 2007 4:57 pm

You should edit the webclient html page using a webdav capable editor and insert in the HEAD section:

Code: Select all
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=html-redirect.html">


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.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Postby Westy » Fri Feb 16, 2007 11:07 pm

currentcontroller.saveData ();
application.showURL('/index.html','_self');
application.exit();


Dean
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby LOGIsoft » Fri Mar 02, 2007 2:37 pm

Thanks Dean, works like a charm!

Sincerely,

Ben
Benoit R. Savignac, president
LOGIsoft Consulting inc.
--------------------------------------------------------
Servoy Alliance Network Partner
User avatar
LOGIsoft
 
Posts: 260
Joined: Wed May 24, 2006 3:06 pm
Location: St-Basile-le-Grand (Montreal), Qc, Canada

Postby Dexadrine » Tue Mar 20, 2007 12:11 pm

Westy wrote:currentcontroller.saveData ();
application.showURL('/index.html','_self');
application.exit();

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.
Paul
Edgeward Digital Design & Development
Servoy Developer - London
Dexadrine
 
Posts: 96
Joined: Wed Jun 07, 2006 12:25 pm
Location: London

Postby ngervasi » Tue Mar 20, 2007 12:15 pm

Already posted in the SupportBase, the bug will be fixed in the next release. ;)
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 19 guests