Client Window Blank on Long Process

Questions, answers, tips and ideas on Servoy Client

Client Window Blank on Long Process

Postby Kahuna » Mon Nov 16, 2009 2:58 pm

Hi Folks

I've noticed if I have a long process running (perhaps 30 - 40 seconds or more) if I click out of the solution window, for example to go to another application - when I return to the solution window the inside of the window is blank - the solution does not re-appear until the process has completed / error's etc.

Is this normal or is it a product of Win XP. Is there some way to force the Servoy window to refresh when it gets the focus again (even during a process)?
(Servoy Version: 6.0.7 Win XP / 7 - SQL Server 2008 R2)
Ian Cordingley (Kahuna)
Kahuna
 
Posts: 1235
Joined: Thu Oct 26, 2006 1:39 am
Location: 1/2 NE UK 1/2 Olvera Spain

Re: Client Window Blank on Long Process

Postby Harjo » Mon Nov 16, 2009 5:24 pm

As far as I know, this has nothing to do with Windows XP.
It is Java. because the Servoy Client, is single threaded, you have to wait, when the client is ready again.

Don't know, if Servoy can optimize this, you can file a request here: http://www.servoy.com/s
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Client Window Blank on Long Process

Postby Kahuna » Mon Nov 16, 2009 6:17 pm

Harjo wrote:As far as I know, this has nothing to do with Windows XP.
It is Java. because the Servoy Client, is single threaded, you have to wait, when the client is ready again.

Don't know, if Servoy can optimize this, you can file a request here: http://www.servoy.com/s


Thanks Harjo - I'll make a case - it's really difficult for users - since they think the client has crashed (same thing happens when a window app miss behaves and is unlikely to come back) - I'll try and see if updating the UI has any response!
(Servoy Version: 6.0.7 Win XP / 7 - SQL Server 2008 R2)
Ian Cordingley (Kahuna)
Kahuna
 
Posts: 1235
Joined: Thu Oct 26, 2006 1:39 am
Location: 1/2 NE UK 1/2 Olvera Spain

Re: Client Window Blank on Long Process

Postby ngervasi » Tue Feb 23, 2010 5:06 pm

You could also use the status area to show something is going on, just display a message like "Calculating..." or "Please wait...", at least the users know that the apps is doing something.
Application.updateUI() won't help you, since the client runs in only one thread that command would be executed AFTER the processing is done.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy

Re: Client Window Blank on Long Process

Postby rgansevles » Tue Feb 23, 2010 8:50 pm

In Servoy 5.1 we have introduced a plugin (the headless client plugin) that allows you to run code asynchronously in the server started/stopped by the client.
You can use this to spawn long running processes and show something else interesting to the user.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Client Window Blank on Long Process

Postby jcarlos » Wed Feb 24, 2010 12:25 am

rgansevles wrote:In Servoy 5.1 we have introduced a plugin (the headless client plugin) that allows you to run code asynchronously in the server started/stopped by the client.


Rob, this is great. I think you should offer a how-to-do demo about this plugin in one of the upcoming/proposed webinars.

JC
jcarlos
 
Posts: 578
Joined: Thu May 04, 2006 8:55 pm
Location: Palo Alto, California USA

Re: Client Window Blank on Long Process

Postby sbutler » Wed Feb 24, 2010 5:24 am

You can also use my Busy plugin to show status to the user and prevent the blank screen. http://www.servoyguy.com/servoy_components/busy_plugin.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: Client Window Blank on Long Process

Postby Harjo » Wed Feb 24, 2010 9:40 am

Scott, that plugin gives an nullpointer exception, when it is loaded in weblclient
On Servoy-stuff there is new (better ;-) ) version.....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Client Window Blank on Long Process

Postby ptalbot » Wed Feb 24, 2010 3:45 pm

Harjo wrote:Scott, that plugin gives an nullpointer exception, when it is loaded in weblclient
On Servoy-stuff there is new (better ;-) ) version.....

Hi Harjo/Scott,
I uploaded the updated plugin on google code too.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Client Window Blank on Long Process

Postby Harjo » Wed Feb 24, 2010 4:18 pm

ah my mistake, Scott is refering also on his site, to the google-code site
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Client Window Blank on Long Process

Postby david » Thu Feb 25, 2010 1:30 am

rgansevles wrote:In Servoy 5.1 we have introduced a plugin (the headless client plugin) that allows you to run code asynchronously in the server started/stopped by the client.
You can use this to spawn long running processes and show something else interesting to the user.

Rob


Looking forward to giving this a go.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: Client Window Blank on Long Process

Postby jcompagner » Thu Feb 25, 2010 11:35 am

ngervasi wrote:You could also use the status area to show something is going on, just display a message like "Calculating..." or "Please wait...", at least the users know that the apps is doing something.
Application.updateUI() won't help you, since the client runs in only one thread that command would be executed AFTER the processing is done.



We are talking about the smart client here right?
then the above statement is not correct.
In a long going process if at certain points you call application.updateUI() then the screen will refresh itself with the latest info.

This does not work for a webclient because there the browser really only paints the new data when the request is done on the server.
But the request that is done to the server is async so your webbrowser will not blank out (but show you the loading... in the top right corner)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 8 guests

cron