Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 2 Monaten, 4 Wochen
Letzter Beitrag:
vor 2 Monaten, 3 Wochen
Beteiligte Autoren:
Joris, Markus K., Andre Fourie

User active window

Startbeitrag von Andre Fourie am 27.05.2017 10:14

Hi Everyone,

Can someone help please - On a C/S application, I have some windows that can be run by only one user at a time. I tried this by recording the user and window in a file and delete it when the user exits the window, but will still have the record there in case the system crashed. So ideally I would like to check at he beginning of the window if another user is busy accessing the window without using a log file. Has anyone done this before? WD21/22. Thanks

Antworten:

Hi,

you can delete all remaining entries for a specific user when this user logs in again. But you still need a possibility to delete these entries manually.
Create a window with a table to delete this entries. So the locked records can be freed manually.

von Markus K. - am 27.05.2017 11:05
Hi,

You can use a timer and write every minute the date + time into your record.
If you are using HFSQL client/server then use HInfoServer("MyConnection", hInfoDate) to retrieve the date+time on the server. So you don't have to worry about synchronised times.
If the record is >= 2 minutes old then you know that the user is not in the window anymore.

Regards,

Joris.

von Joris - am 29.05.2017 07:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.