How to Any Validation without Open the Company

sanjeevdalelasanjeevdalela Member Posts: 45
Dear Viewers''

Please help me,
I want to know. when I login the database but not open the company. How to any Validate for open the database.(like check which license Id user Open if not match that close the navison'

](*,) ](*,) ](*,) help me?????????????????????????


I am waitng your reply..................... :oops: ](*,) ](*,)
Sanjeev Kumar Dalela
Technical Consultant
(Dataman Computer Systems P Ltd.)

Comments

  • garakgarak Member Posts: 3,263
    The first function where you can programming is CompanyOpen() and this run LogInStart() in CU 1.
    Here is the first place where you can check the ID of License and logoff the / terminate the session (Client). But NAV runs this function first when you select a company.


    Why do you want this? With more backgrounds we will find maybe a other solution
    Do you make it right, it works too!
  • sanjeevdalelasanjeevdalela Member Posts: 45
    I want the solution, with out open the company.
    Sanjeev Kumar Dalela
    Technical Consultant
    (Dataman Computer Systems P Ltd.)
  • DenSterDenSter Member Posts: 8,305
    You don't have to, because NAV already takes care of it, it is standard functionality. It will not let you open a database that you don't have permissions to open.
  • kinekine Member Posts: 12,562
    I want the solution, with out open the company.

    And I want more details what exactly you want to do... if you want the solutio, you need to tell more, because for what you wrote, there is no solution... 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    The first function where you can develop this, is CompanyOpen() and this run LogInStart() in CU 1.
    Here is the first place where you can check the ID of License and logoff the / terminate the session (Client).
    But NAV runs this function first when you select a company.

    Why do you want this? With more backgrounds we will find maybe a other solution

    Sometimes i think, nobody listen to me :oops:
    So, and i want a beer (and i get it :lol: )
    Do you make it right, it works too!
  • DenSterDenSter Member Posts: 8,305
    He wants it to run BEFORE the company opens, when the database is opened.
  • garakgarak Member Posts: 3,263
    i know, but the first place where you can place C/AL code ist CU 1.
    If you are under SQL you can create, based on the connection, a little sql trigger to check some value before the user open a company.
    But here you can't check the local license id.
    Do you make it right, it works too!
Sign In or Register to comment.