Writing Your Own Reporting Search
CentraSite includes a set of predefined reporting searches that you can execute and capture design-time and/or run-time information of registry objects. In addition to the predefined reporting searches, you can create your own custom reporting search to execute and capture information on the registry objects that best suit your needs.
In CentraSite, you use queries in XQuery format to search and report for registry objects. You define custom queries and report your searches using XQuery modules and functions.
Reporting searches that are developed using XQuery modules and functions are applicable to CentraSite registry objects, such as reports and portlets in CentraSite Business UI.
In the following sections, we demonstrate a sample named, TopXAssetsBasedonAPIKeys that illustrates how a custom reporting search can be set up using the XQuery module and functions in CentraSite Business UI.
The sample extends to use the Add New Portlet dialog box which prompts for the data set you need to display in the new portlet. After confirming the data set, the corresponding search results are displayed in the newly created portlet Top X Assets Based on API Keys.
You may use this sample as a guideline, adapting it and renaming it to suit your individual requirements.
To add a custom reporting search in CentraSite Business UI, you must perform the following steps:
Write XQuery Module
Upload XQuery Module to
CentraSite Registry Repository
Write Saved Search XML
Upload XML Search File from the Command Line
Activate the Reporting Search