Checking the authorisation before a Windows or Dialog starts.

storzi

Member
Hi,

we have several Smart-Windows and Smart-Dialogs where we want check
the authorisation of an user when the Window or Dialog starts.

Now I need to know, where I can implement this authorisation-query?
In the initializeObject-procedure (after the "RUN SUPER"-statement)?

And how can I exit the program when a user don`t have enough rights to use a program (especially the Smart-Dialog).
I have sampled with "APPLY "CLOSE" TO THIS-PROCEDURE." (in initializeObject) but the Dialog stays open.

Thanks
 
You can stop it by doing a RETURN in the definition of the program ,it will prevent the creation of widgets and stop it before it can create anything.

If your using create-object or another procedure to start your window then check the handle to make sure it passed the validation before doing any ruin in it like initiliaze.
 
Back
Top