Product Documentation

Adding User-Defined Reports

Dec 21, 2015

Reports must be in Crystal Report report format (file with a .rdp extension).

When you configure the reports, the property fields can have the following values:

  • reportFilename. “My_report.rpt” is the personalized report in the Crystal Report.
  • format name is the text that appears on the Device Manager Administration Console tab when you click on the link Click here for my report.
  • linkLabel is the hypertext used to generate the report.
  • description is the help that appears below the hypertext.

The link of the new user-defined report appears under the User-defined reports section on the Reports tab in Device Manager web console.

To add user-defined reports

  1. Stop the Device Manager Server service.
  2. Open the WEB-INF/classes/external-reports.xml file with a text editor that can read and write UTF-8 files, such as Notepad.
  3. In the file, locate the tags <list></list> and add the following parameters:
     
     
    <bean class="com.sparus.nps.reports.EWCrystalReport"> 
    <property name="reportFilename" value="my_report.rpt"/> 
    <property name="name" value="my_report"/> 
    <property name="linkLabel" value="Click here for my_report"/> 
    <property name="description" value="Description of my report"/> 
    </bean>
  4. Save the file in UTF-8 format.
  5. Restart the Device Manager server service.