Creating Custom Report Queries

8-70 Application Administrators Guide for Content Server The Content Information page is displayed.

2. Select View Access History Report from the Global Actions list.

The most current Content Access Report for the content item is displayed.

3. On the Content Access Report, click the live Accesses link.

The most current Accesses by Day report for the content item is displayed.

4. On the Content Access Report, click the live Users link.

The most current Accesses by User report for the content item is displayed.

8.5.9.4 Viewing Access Results by Revision

By default, the access results for multiple versions of a single content item are displayed individually on the Content Dashboard. To see the separated access results view of the Content Dashboard report:

1. Generate a content item-based query report from the Content Tracker Report

Generator main page. See Generating Reports on page 8-69. For example, select the Top Content option on the Content Tracker Report Generator Main Page to generate the applicable report.

2. Select a content item from the results report and click the content identification

number listed in the DocName column. The Content Dashboard for the selected content item is displayed. By default, this view shows the access results for each revision of the selected content item that was accessed. For more information, see Content Dashboard Feature on page 8-59.

8.5.9.5 Viewing Access Results for All Versions Combined

To see the combined access results view of the content dashboard report: 1. Generate a content item-based query report from the Content Tracker Report Generator main page. See Generating Reports on page 8-69. For example, select the Top Content option on the Content Tracker Report Generator Main Page to generate the applicable report. 2. Select a content item from the results report and click the content identification number listed in the DocName column. The Content Dashboard for the selected content item is displayed.

3. Click the All Versions Together link.

The resulting content dashboard view shows the combined access results for both versions.

8.5.9.6 Creating Custom Report Queries

This section provides an example that demonstrates how to create a non-secure custom report query. This particular query generates a report that lists users and their personal attributes. The data is derived from the Content Servers Users database table. Managing Content Tracker 8-71 To create the custom users report: 1. Design your SQL report query. 2. Enter the custom report query into the query file of Content Tracker Reports: a. In a text editor, open the contenttrackerreports_query.htm file: IntradocDircustomContentTrackerReportsresourcescontenttrackerreports _query.htm b. Enter the custom report name, number of columns, and the source database table. For example, the following excerpt from the query file illustrates that the custom query report will extract the information from all columns in the Users database table. tr tdqCustomUserstd td SELECT FROM Users td tr 3. Enter a link to the custom report in the Content Tracker Report Generator main page file: a. Open the following directory: IntradocDircustomContentTrackerReportstemplates b. In a text editor, open the following file: contenttrackerreports_main_page.htm c. Enter the attributes to display the link on the Content Tracker Report Generator main page. For example, the following excerpt from the main page file illustrates that the custom report link is presented as a selectable radio button and is listed as Custom Users Report on the page. See the custom report link in the section about Custom Report Query Display Results on page 8-61. h4 class=xuiSubheadingCustom Reportsh4 table width=80 border=0 tr td span class=tableEntryinput type=radio name=radiobutton value=qCustomUsers Custom Users Report spantd tr Note: The example in this section uses a non-secure query. Therefore, the generated report results can be viewed by any user regardless of their role and account privileges. All of the reports are generated using either non-secure of secure queries. The query selection is dependent on the security mode. For more detailed information about the optional security checks preference variable, see Security Checks and Query Results on page 8-63. If you want to create a secure report query, see Creating Secure Report Queries on page 8-73. 8-72 Application Administrators Guide for Content Server table 4. Enter the formatting requirements in the template resource file of Content Tracker Reports: a. Open the following directory: IntradocDircustomContentTrackerReportsresources b. In a text editor, open the following file: contenttrackerreports_template_resource.htm To view the resulting custom report format, see the generated custom report in the section about Custom Report Query Display Results on page 8-61. c. Enter the display features to use for the generated custom report as well as any desired drill-down reports, see the drill-down report in the section about Custom Report Query Display Results on page 8-61. For example, the following excerpt from the template resource file illustrates that in addition to the link listing, the report title is Deannas First Report and a drill-down report is provided that is based on the content items seen by user report. -- Custom Template -- dynamichtml qCustomUsers_vars reportWidth = 100 title = iContent Access Reporti reportTitle=Deannas First Report column1Width=35 column0Drill=qSctrDocsSeenByUser_Drill end 5. Restart the Content Server to apply the changes.

8.5.9.7 Changing the Security Checks Preference Setting