mibuso.com

Microsoft Business Solutions online community
It is currently Thu Apr 17, 2014 8:45 pm

All times are UTC + 1 hour [ DST ]




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

Joined: Tue Jul 19, 2005 4:49 pm
Posts: 4141
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

Like me on Facebook

Author of the book : Microsoft Dynamics NAV Application Design

MY BLOG : http://www.brummelds.com


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

Joined: Sat Nov 15, 2008 1: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 10:38 am 
Offline

Joined: Mon Dec 11, 2006 10:34 am
Posts: 2882
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 11:01 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Jul 19, 2005 4:49 pm
Posts: 4141
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

Like me on Facebook

Author of the book : Microsoft Dynamics NAV Application Design

MY BLOG : http://www.brummelds.com


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

Joined: Tue Apr 11, 2006 10:00 pm
Posts: 1315
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 :-)

_________________
Sorry, no support using PM, e-mail or MSN - please use this forum.


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

Joined: Thu Aug 13, 2009 1: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 [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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: