Session.SETFILTER("Database Name", '%1|%2', 'MODC - Live', 'MODC - Development'); UsersLoggedOn.INIT; UsersLoggedOn."Current Users" := Session.COUNT; UsersLoggedOn.Time := TIME; UsersLoggedOn.Date := TODAY; IF Session."Database Name" = 'MODC - Live' THEN [b] IF Session."Application Name" = 'Application Server for Microsoft Dynamics NAV Classic' THEN [/b] BEGIN UsersLoggedOn."Current NAS Users" += UsersLoggedOn."Current NAS Users"; END; UsersLoggedOn.INSERT;
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
looking at the picture might give you a better idea...
http://www2.zshare.ma/r2bw0tpe11ed
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
LicensePercentage doesnt work. Its always 0 for some reason. I tried debugging it, and maximumUser has a value and licenseusercount has a value aswell...but it doesnt calculate the licensepercentage...any idea why???
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Also I just noticed another issue, in my codeunit I was able to calculate the value for 'Current NAS Users' and when i ran the codeunit, it gave me the correct answer and the answer was put in the table. Now I was trying to display the answer in the report using this line of code and I put CurrentNASCount in the sections of the report:
It always displaying 0, no matter what ](*,) ....even though there is a value in the table for this variable for a particular date and time...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Are there any flowfields?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav