Tip #20 - Save Report Usage

Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
edited 2013-12-19 in NAV Tips & Tricks
This is a hot subject for a lot of companies using Navision. When was a report last executed, by whom and how many times.

The classic solution for this is to add code to every report to store this information in a table.

But it can be solved more generic...

The solution is in Codeunit 1. Here is a trigger FindPrinter that is executed prior to each report being printed. So what about implementing the solution here.

In order for this to work, we have to implement a trick, because when this code is executed, Navision is not yet in transaction state.

The trick is to save the report usage in a Temporary table first inside a SingleInstance codeunit.

Read more...

http://dynamicsuser.net/blogs/mark_brum ... usage.aspx

Comments

Sign In or Register to comment.