mibuso.com

Microsoft Business Solutions online community
It is currently Sun Dec 21, 2014 6:12 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Tip #20 - Save Report Usage
PostPosted: Tue Dec 01, 2009 1:25 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Tue Jul 19, 2005 3:49 pm
Posts: 4187
Location: Olst
Country: Netherlands (nl)
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

_________________
Mark Brummel | Freelance Dynamics NAV (Navision) Specialist

Read my new book: Microsoft Dynamics NAV 2013 Application Design

MY BLOG : http://markbrummel.wordpress.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: Tip #20 - Save Report Usage
PostPosted: Thu Aug 02, 2012 11:09 am 
Offline

Joined: Sat Nov 15, 2008 12:55 pm
Posts: 8
Location: Pontevedra
Country: Spain (es)
Congratulations for your code, it's very useful.

I have added a Navision Timer object to "Report Usage Mgt." Codeunit to save report usage periodically instead waiting till user Logoff Navision.

To active the timer ReportUsageMgt.RUN must be included to LogInStart() function in Codeunit 1

_________________
Felipe Crespo


Top
 Profile E-mail  
 
 Post subject: Re: Tip #20 - Save Report Usage
PostPosted: Mon Aug 13, 2012 9:38 am 
Offline

Joined: Mon Dec 11, 2006 9:34 am
Posts: 2883
Location: Bergamo
Country: Italy (it)
althought mark's suggestion was very useful in year 2009, microsoft has implemented this new feature:
http://blogs.msdn.com/b/nav/archive/2011/06/23/how-to-log-report-usage.aspx
enjoy

_________________
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog


Top
 Profile  
 
 Post subject: Re: Tip #20 - Save Report Usage
PostPosted: Sun Aug 19, 2012 10:01 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2014 attendee

Joined: Tue Jul 19, 2005 3:49 pm
Posts: 4187
Location: Olst
Country: Netherlands (nl)
Belias wrote:
althought mark's suggestion was very useful in year 2009, microsoft has implemented this new feature:
http://blogs.msdn.com/b/nav/archive/2011/06/23/how-to-log-report-usage.aspx
enjoy


Guess who convinced them... :mrgreen:

_________________
Mark Brummel | Freelance Dynamics NAV (Navision) Specialist

Read my new book: Microsoft Dynamics NAV 2013 Application Design

MY BLOG : http://markbrummel.wordpress.com


Top
 Profile E-mail WWW  
 
 Post subject: Re: Tip #20 - Save Report Usage
PostPosted: Fri Sep 06, 2013 9:00 am 
Offline

Joined: Tue Apr 11, 2006 9:00 pm
Posts: 1407
Location: Vienna
Country: Austria (at)
I rarely go "wow" these days, but this is a definite case of it. Thanks a lot Mark, I owe you a beer for every ten Classic reports I don't have to redo in Visual Studio :-)


Top
 Profile  
 
 Post subject: Re: Tip #20 - Save Report Usage
PostPosted: Thu Dec 19, 2013 8:07 am 
Offline

Joined: Thu Aug 13, 2009 12:01 pm
Posts: 4
Thanks Mark. this is really helpful.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: