Trigger an action from the server using the Web Client

Questions, tips and tricks and techniques for scripting in Servoy

Trigger an action from the server using the Web Client

Postby Foobrother » Thu Mar 19, 2009 11:16 am

Hi everybody,

I have developed an Upload servlet for the Web Client version of my solution. Now I would like to trigger automatically an action on the intial page which launch the upload page, to updatge the details, when the upload is finished but I don't know how!
The states would be like: Initial screen/form --> Upload servlet --> Initial screen/form updated with uploaded files details

I have tried several methods without success:
- generating a "complete" file and try to make the client loop to find the file. But the loop blocked the application in fact
- using the HTMLPanel bean to make the upload on the same intial screen. But the HTMLPanel is not working on the Web Client
- once the upload is done, refreshing the page to go back to the initial one where the screen should be updated (using history.go(-2)). But it just load the cached page and don't run the methods again.

Any suggestions ? :roll:
Current configuration: Servoy 5.2.6 Build 1011, Java 6u24, PostgreSQL 8.3, Windows Server 2003

Servoy / Java Developer
http://www.assetguardian.com
User avatar
Foobrother
 
Posts: 530
Joined: Tue Jan 13, 2009 5:46 pm

Re: Trigger an action from the server using the Web Client

Postby jcompagner » Wed Apr 29, 2009 2:58 pm

what does your uploadservlet output as its value?

There you can redirect to an url (like a solution url with method/param combo)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 36 guests