Does anybody have any idea on how to disable logins in Navision?
What I'm trying to do is this:
Every morning a batch job runs under NAS and if the job runs into problems I want to stop ordinary users from loging in until the problem is resolved. I have no problem identifying the fact that the job did not finish correctly or distinguishing ordinary from priviledged users. The question is how do I stop a user from loging in. Or perhaps force read-only mode?
I know the answeris in Codeunit 1, function CompanyOpen, but then what? An error there will simply stop the execution of the trigger but the user will log in anyway? I tried deleting the session record of the current user but it wouldn't let me.
Any Ideas?
thanks
0
Answers
allowedToLogin would be a function that will check a table for your criteria and return a true or false.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
B3 Technologies - Making Technology Serve the People
The SendKeys worked beautifully. The expiry date is also a good idea.