my customers complain that they don’t notice if Servoy is working. For example you hit a tab that fires a complex query that will take a few seconds. Now it’d be really nice if the cursor could change to a watin cursor (stop watch or something similar).
Some processes in my solution are not instant. Visually there’s no user feedback a process has begun. I want to guard against impatient users who click a button a second or third time unnecessarily.
For now, you could use the splash-plugin from it2be, and control it this way.
I am not really sure we are talking about the same thing. If I have complicated code that needs time to execute (usually a loop) I can notify users myself in various ways. What I am talking about is a single action that might take a while (like accessing a form that uses a complicated query or something like that). In this case I cannot do much, I don’t even know if it takes long or not (might depend on a specific record).
I remember some where on the forum I saw something regarding a progess bar bean or plugin. Sounds like what you might be looking for, I will use it for some reporting, and maybe even solution startup.
Yes, I know. I am using that bean quite a bit. But it only works if the “progress” is in your hands (e.g. in a loop). But if a simple loadRecords() or something like that takes 30 seconds, how should I show a progress? I can show it before I do loadRecords() and hide it afterwards. So first you see a blank bar and after 30 seconds on that is completely filled. That’s no so great…
If you’re in a loop where you have the ability to update the progress percentage, this works, but if you have one command (for example LoadAllRecords or something like that) this is not an option.
So after 25 comments we are back to my original request
my customers complain that they don’t notice if Servoy is working. For example you hit a tab that fires a complex query that will take a few seconds. Now it’d be really nice if the cursor could change to a watin cursor (stop watch or something similar).
Until Servoy comes up with something native, the following does work.
var image = plugins.http.getMediaData('media:///7OfficeProcessing.gif');
plugins.it2be_splash.showImage(image, 1, true, 0);
application.updateUI();
// initiate the complex routine
Requires the splash-plugin from it2be. Puts up a large in-your-face graphic of your own design which hangs in there until the screen redraws at which point it disappears. My graphic says “Processing… Please wait until the screen redraws.”
Well, partly. The splash option kind of works, but to me it’s not a very neat option, since it’s static. The HourGlass cursor is neater.
I’ve tried making a plugin for that, but the cursor is not updated to the hourglass untill you leave the Servoy window and come back into it, or click on the mouse. So, unless I find a way for that, it ain’t really working either.
Still, the best way would be for Servoy to control this under the hood…
Only if you know that something will take a while. My problem is more basic. I have related tables with 3 million records. If you hit a tab for example that fishes out 2321 of those it takes longer than if there is only 2 records. How should I know before (how should Servoy??)?
But I think we cut the discussion here. We all know more or less what we mean, do we
Servoy: is a wait cursor possible for lengthy operations like refreshFromDatabase(), loadRecords(), recalculate()… and maybe simply loading a related foundset?
Basically, how it should work is that at the start of process, you start a timer with an initial delay. when the delay has expired (for example after a second) you display the waiting cursor. At the end of the process, you display the regular cursor again.
Marcel could do the same with the Splash Plugin.
this way, it’s not shown if the process lenght is less then the initial delay.
Can someone from Servoy please advise on this request? I have had a similar request in for more than a year http://forum.servoy.com/viewtopic.php?t … light=wait
with no response from the development team. I don’t have any idea how difficult of a request this may be to put into effect, but it would be helpful for me, and I suspect others, to know if and/or when such a feature might be expected. Thanks.