Show progress in Web Client

Forum to discuss the Web client version of Servoy.

Show progress in Web Client

Postby vincentSchuurhof » Mon Sep 13, 2010 2:20 pm

I have been looking for a way to show the progress of a long-running process in the Web Client. Now I found a number of posts about this issue, but none of them are working as the Web Client seems only to be refreshed when the method finishes (at least, that is my conclusion). I noticed the new release of the busy plugin, but I would really like to solve it a bit different if possible.

What I want to achieve is a text area or HTML area which is displayed as some kind of log and updated everytime an iterate action within that method finishes (whether succesful or not). I tried the function application.updateUI() after every update of that log but this seems to have no effect at all.

I cannot imagine something like this cannot be achieved. Am I missing something obvious here?
vincentSchuurhof
 
Posts: 26
Joined: Fri Aug 21, 2009 12:39 pm

Re: Show progress in Web Client

Postby jcompagner » Mon Sep 13, 2010 2:33 pm

this is not possible, you cant force a updateUI from your script to the browser (this only works in smart client)

for this you need to use the new busy plugin.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Show progress in Web Client

Postby Janssenjos » Wed Mar 02, 2011 9:48 am

Hi, I have looked into the busy plugin, and from what i've seen it isn't possible with this plugin to update the web-client while running the process.

We would like something like :
Code: Select all
for(var i=0;i<10;i++)
{
    doStuff();
    //Update on client to inform user iteration 1 is done.
    updateWebclient(); //This is not possible??
}


This is currently not (yet) supported in the webclient?
Jos Janssen
Software Developer
Axerrio
http://www.axerrio.com
Janssenjos
 
Posts: 148
Joined: Thu Aug 13, 2009 3:55 pm
Location: Bergen op Zoom

Re: Show progress in Web Client

Postby jcompagner » Wed Mar 02, 2011 11:10 am

no this is currently not possible
The request comes from the client browser to the server
On the server you run that code and that code first must be finished to end the request and build up the changes
the request will not end as long as your code runs.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Show progress in Web Client

Postby Janssenjos » Wed Mar 02, 2011 2:42 pm

Ok thanks.

But can we add a feature request for this functionality?
Or is it just impossible to implement this in the servoy-webclient? (In my opinion it shoud be possible?)
Jos Janssen
Software Developer
Axerrio
http://www.axerrio.com
Janssenjos
 
Posts: 148
Joined: Thu Aug 13, 2009 3:55 pm
Location: Bergen op Zoom

Re: Show progress in Web Client

Postby jcompagner » Wed Mar 02, 2011 2:46 pm

you can always add a feature request, but it will not come on 6 and i also don't think that it will be in the version right after that.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 4 guests

cron