|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Tracking Reports
How to track how many reports have been running and when The question on Tech Tips asked how to keep track of when reports had been running and how many. While some viewers and schedulers do keep an audit trail of this, that approach assumes everyone uses the same delivery mechanism. We have a simple solution for this problem. You need a mechanism to save some data every time the report is refreshed. We would recommend you use a formula with our Share User Function Library could maintain a share file for each report. For instance, each time the report is run, data is passed to a simple XML file which you can view later. A sample formula would look like:
A variation on this could keep track of how many people had been running the report each day:
An extension to this would be if you had access to the UserID, you could report on who is running the reports, although that is often not available. If you download our ShareUFL trial, once you install it, you can try our sample report.
This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects. |
About the Share UFLThe Share User Function Library is a Crystal Reports User Function Library that lets you save and retrieve data between reports. This allows you to perform some otherwise impossible tasks with Crystal Reports and improve overall report performance.
How often have you wanted to take a value from one report and use it in a second report? Now you can.
A couple of neat tricks:
And, there are many more ways to use the Share UFL to put your Crystal Reports system on steroids. Share data values between Crystal Reports with Share UFLWe have received requests in the past asking how to use value from one report in a second report. The usual answer is to repeat the database processing in a subreport inside the second report. This is highly inefficient of course, and hits major limitations if there are values needed from more than one report in a later report. Another solution to this is to calculate the totals in some summary tables, and use them there. That's fine if SQL functions will do what you want, but the values could be more complex than some simple SQL functions. In the past, we made this possible via using our Disk Output Library and Text Lookup User Function Library: write the values to a disk file using the DiskLinesEntry function, and retrieve it with the TextLookupCell function. We decided to combine these into an easy-to-use User Function Library that you can access under "Functions" in your Formula Explorer. The result is the Share UFL. To use this powerful tool, you create a Share file and a tag for the value you want to save with the ShareTagStore function:
Retrieve the value in another report with:
You can use multiple Share files in one report, and in the full version up to 1000 different tags for the values you want to save.
|