PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Hourglass or wait indicator
Hourglass or wait indicator
Débuté par Stefan, 02 sep. 2013 13:50 - 11 réponses
Posté le 02 septembre 2013 - 13:50
Hi all,

Looking for a way to display an hour glass or any other way (except progress bar) to inform user of ongoing calculations.
The display has to start at the start of a server procedure and stop at the end of it.
Inserting a gif and making it visible at run time as the first line of code of the server procedure won't work, the gif will only be displayed after the server code has run.

Any ideas ?
Membre enregistré
47 messages
Popularité : +2 (2 votes)
Posté le 08 août 2014 - 12:16
See standard catalog under giff annimations

--
Roy van der Lee
Membre enregistré
53 messages
Posté le 10 juin 2021 - 12:46
hi,
but how can I do if I can't manage the invisible visible of the control with webdev?

thanks
Posté le 10 juin 2021 - 13:04
but how can I do if I can't manage the invisible visible of the control with webdev?

of course you can change the visible status of a control in webdev...
Membre enregistré
53 messages
Posté le 10 juin 2021 - 14:37
hi,
excuse me how can I do? I have not found anything, or I am too new to understand what to look for, sorry;(
Posté le 10 juin 2021 - 17:18
if you don't know how to make something visible or invisible, the first thing to do is go in the help, and in the search box, type visible.... you will find as the first answer the page for the visible property where you will get all the details

basicvally, it goes like this:
ControlName..Visible=false
Membre enregistré
53 messages
Posté le 10 juin 2021 - 18:35
hi, thanks i tray and work!
but if i wanted to show a progressbar when executing a query of a table how can i do?
I created the query created the table but at what stage should I manage the progress bar?

initializing of page insert connect to db, query and fill db

progressbar in load page?

thanks
Posté le 10 juin 2021 - 21:56
considering that there is no way to know in advance how long a query is going to run, a progressbar makes no sense, as you could not set the max value.

A second problem is that any communication between client and server only has ONE answer (user clicks on button, information is sent to server, query runs, server returns the answer), there would be no way to tell the client side when to refresh with what value

So the progressbar is out.

You can display an animated gif with a message, but that is all you can do during a singular process...
Just do it in the browser code of the button running the query, that will be executed BEFORE the information is sent to the server

Now, if you really need to display more than that, then the only way is to cut the server process in pieces and call them one by one in a loop from the browser side, so that is impractical in most cases
Membre enregistré
53 messages
Posté le 11 juin 2021 - 11:46
hi,

"You can display an animated gif with a message, but that is all you can do during a singular process...
Just do it in the browser code of the button running the query, that will be executed BEFORE the information is sent to the server"

I tried with an image and it could be enough, but I don't understand where to insert the code to view the image during the execution of the question, in which event do I show it and when do I hide it?
Posté le 11 juin 2021 - 13:32
marcov a écrit :
hi,

"You can display an animated gif with a message, but that is all you can do during a singular process...
Just do it in the browser code of the button running the query, that will be executed BEFORE the information is sent to the server"

I tried with an image and it could be enough, but I don't understand where to insert the code to view the image during the execution of the question, in which event do I show it


.... do it in the browser code of the button running the query... if the query is run from a button... as I don't know the details of what you are doing there is no way for me to be more precise than what I already told you

>>and when do I hide it?

Depends on HOW you are doing the server query... If NOT in ajax, then the refresh of the page, when the server sends the answer, will automatically hide it. If in ajax, then do it in the 'return from ajax call' part in the same button (name may differ, I'm doing this from memory)
Membre enregistré
53 messages
Posté le 11 juin 2021 - 17:01
OK thank you very much!! I do tests.
Posté le 28 août 2021 - 15:15
Hi marco.
Did you get it going?
If not drop me an email@carlos.antunez@canissoft.com and I will help you out on how to do this

Regards,

Carlos