License Agreement Acceptance in Dynamics NAV 5.0

Photo credit: johntrainor
Stumbled upon some interesting functionality new to Dynamics NAV 5.0 whilst I was looking at something completely unrelated in Codeunit 1.
The functionality allows you to have your end user digitally sign an end user license or go-live sign off agreement before opening a ‘live’ company.
To set this up you must run Form 180 from Object Designer. The License Agreement Setup Card will be shown:
You can enter a message which will be presented to the user in the Message for Accepting field and a date from which the agreement is effective in the Effective Date field - this would be your go-live date.
On opening the ‘Live’ company, or any company which doesn’t contain the word CRONUS, the user will be presented with the License Agreement Accept window:
The user must then tick the Accepted check box or click the Accept button before being allowed into the database to signify that they agree with the terms of the eula.
The hyperlink styled command button with blue text opens the eula.rtf file in the NAV client folder. On push, a call to the ShowEULA() function which sits in table 140 License Agreement is made:
-
This could be changed to point towards your own sign-off document if required.
-
-
The code responsible for handling the licence acceptance is in the <code>LogInStart()</code> function in <code>Codeunit 1</code>:
-
<pre lang="pascal">IF (STRPOS(COMPANYNAME,Text000) < 1) AND LicenseAgreement.GET THEN
-
IF (TODAY >= LicenseAgreement."Effective Date") AND NOT LicenseAgreement.Accepted THEN BEGIN
-
FORM.RUNMODAL(FORM::"License Agreement Accept");
-
LicenseAgreement.GET;
-
IF NOT LicenseAgreement.Accepted THEN
-
MESSAGE(Text019);
-
END ELSE
-
IF TODAY < LicenseAgreement."Effective Date" THEN
-
MESSAGE(Text020,LicenseAgreement."Effective Date");
Although, the user can still gain access to the database should they choose not to accept the eula, a dialog will be shown informing them that the agreement has not been signed and they will be greeted with the license acceptance form each time they open a non-CRONUS company in the database.
Part of this same functionality will also warn the user of the inteded Go Live date if they open a non-CRONUS company before the date defined in the Effective Date field on the License Agreement Setup Card:
I don’t think Microsoft have finished working on this fully yet as I did notice some commented code behind the Accept button:
-
CurrForm.UPDATE;
-
//CurrForm.CLOSE;
I supose they’ve just not decided if clicking the Accept button should close the form or not. Or maybe they’re just leaving it up to us.
I’ve tested the whole process and it does offer quite a neat way to get a digital sign-off on go-live day.










No Comments, Comment or Ping
Reply to “License Agreement Acceptance in Dynamics NAV 5.0”