Skip to main content

Implementation

Simplanova Object usage log tool has easy implementation to client Business Central system as it iterates with client Business Central system only through codeunits 40 LogInManagement, 42 CaptionManagement and 44 ReportManagement.

1) Import given objects fob. The objects are in range 50500 – 50503, so please check if they do not intersect with existing custom objects in your solution:

TypeNo.NameVersion List
Table50500Objects Usage SetupUSG2.0
Table50501Objects Usage UserUSG2.0
Table50502Object UsageUSG2.0
Table50503Object Usage EntryUSG2.0
Page50500Objects Usage SetupUSG2.0
Page50501Objects Usage UsersUSG2.0
Page50502Object UsageUSG2.0
Page50503Object Usage EntriesUSG2.0
Codeunit50500Objects Usage Mgt.USG2.0
  1. Do manually code changes/merge to codeunits 40 LogInManagement, 42 CaptionManagement and 44 ReportManagement.

    a. Open Codeunit 44 ReportManagement and add global variable ObjectsUsageMgt

USG1

b.  On trigger GetPrinterName add call to function AddRepUsageTmp

USG1

c.  Open Codeunit 42 ‘CaptionManagement’ and add global variable ObjectsUsageMgt

USG1

d.  This step depends on which version of Business Central you are running:
1. If you are running **BC 13** then do this step below:
On trigger CaptionClassTranslate add call to function ClearCodeCoverage

USG1

 2. If you are running **BC 14** then do this step
On trigger ResolveCaptionClass add call to function ClearCodeCoverage

USG1

e.  Open Codeunit 40 ‘LogInManagement’’ and add global variable ObjectsUsageMgt

USG1

f.  At the end of trigger LogInStart add call to function StartObjectUsageLog

USG1

g.  At the end of trigger LogInEnd add call to function FinishObjectUsageLog

USG1