Additional checking when user login

chen_wanchen_wan Member Posts: 34
Hi all,

I am using Navision 4.0 SQL Option. Is there any way I can put additional checking / validation when user login into Navision. When the validation failed, I want to prevent user from logging in to Navision.

Regards,
Chen

Comments

  • ArhontisArhontis Member Posts: 667
    Hi,

    I haven't tested it but you could try adding functionality in cu1 Application Management and in the routine LogInStart and raise an error in case you don't validate.

    I have used it for setting custom defaults for users.

    Merry Christmas
  • chen_wanchen_wan Member Posts: 34
    Hi Arhontis,

    I have tried to put Error at the LoginStart. It doesn't work. Even after the Error has been raised, the system still login sucessful. Once I clicked OK on the OK button on the Error message box, the system still log in
  • ArhontisArhontis Member Posts: 667
    :-k

    I have tested it and you are right. I can't think of anything else right now, I will make some tests and I will notify you if I found something.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can try this, untested, code to exit Navision:
    CREATE(WindowsShell);
    WindowsShell.SendKeys('%{F4}');
    CLEAR(WindowsShell);
    
    with WindowsShell being a variable of type Automation '"Windows Script Host Object Model'.WshShell"
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • jelias56jelias56 Member Posts: 10
    I have additional validation in CU 1 - Application Management in the CompanyOpen function. If the user doesn't validate I call an Error. This prevents logging in. (Ver 3.7, Native). :shock:
    Don't blame me. It's the hardware.
    j
Sign In or Register to comment.