Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

Groupware question

$
0
0
Hi,

in WinDev v20 :

Usually I dont like to use the black box software PCS supplies, but I`m in a hurry and have not done any groupware classes so far, so I`ve implemented the manual groupware.

I Made 2 users, one supervisor and one standard-user.

The standard user is not allowed to access a certain window.

But when I (as the standard-user) try to access the not-allowed window, my app chrashes with a error code 10019 - You have no rights to access the Win_Mywin.

I do not want to crash my application, merely give a warning of type "You are not allowed to do this, contact your supervisor" or something.
(Is it common to crash the app if no user-rights?)

So I trap the give exception with the following project code:
WHEN EXCEPTION
	IF ExceptionInfo(errCode) = 10019 THEN
		Error("Not allowed. ")
		ExceptionEnable()
	END
	EXCEPTION
END

But my calling window is hided/invisible and not to be found again?

A advice on this would be highly appreciated, as I guess I`m doing something wrong :)

Cheers
Tor-Bjarne

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>