Generating a custom report

You can create just the report you want with CourseMill's custom reports. Generate reports based on predefined database views, custom database queries, or external scripts.

Custom reports can be downloaded or saved for quick retrieval or for automatic scheduling in the Report Locker.

To generate a custom report based on a predefined database view:

  1. Open the Reports side-tab and select Custom.

  2. Click Add Custom Report. The Custom Report window opens.

  3. Select the organization if you are a global administrator.

  4. Select Database View in the Type field.

  5. Select the unassigned database view from the View Name list.

  6. Specify a description of the report in the Description field.

  7. Click Save.

The results are displayed in the window. Click a column heading to re-sort the table.

To generate a report based on a custom database query:

  1. Open the Reports side-tab and select Custom.

  2. Click Add Custom Report. The Custom Report window opens.

  3. Select the organization if you are a global administrator.

  4. Select Database Query in the Type field.

  5. Specify a description of the report in the Description field.

  6. Enable the appropriate report selection options in the Allow Report Selection list.

    The report selection fields are enabled if you include in the select fields the corresponding column keys or they are enabled as part of the conditional WHERE clause of the query. The Status option is enabled if you include either StudentCourse.Status or Sco.Lession_Status. The Dates option is enabled if you include any of the following: Student.LastLogin, StudentCourse.LastAccess, StudentCourse.CompletionDate, CourseSession.StartDate, or CourseSession.EndDate.

  7. Click Save.

The results are displayed in the window. Click a column heading to re-sort the table.

To generate a report based on an external database script, the script must return XML records based on the following passed parameters and in the following XML format:

Parameters

Description

orgID

Organization ID

currID

ID of the curriculum (configured in CourseMill)

courseID

ID of the course (configured in CourseMill)

sessionID

ID of the session (configured in CourseMill)

scoID

ID of the SCO (configured in CourseMill)

status

lesson_status or status (configured in CourseMill)

startDate

Beginning day of the report

endDate

Ending day of the report

suborg0-n

Suborgs

start

Starting record if pagination is available

Response in XML format:

<reportlist>

<totalRecs>1</totalRecs>

<numRecs>1</numRecs>

<hdr0>StudentID<hdr0/>

<hdr1>StudentName<hdr1/>

<hdr2>LastLogin<hdr2/>

<report>

<col0>TestStudent</col0>

<col1>Lastname, FirstName</col1>

<col2></col2>

<report>

</reportlist>

CourseMill provides a sample callable script SampleCustomReport.jsp located in the root in your CourseMill.jsp installation. See the contents of this file for details.

To generate a report based on an external script:

  1. Open the Reports side-tab and select Custom.

  2. Click Add Custom Report. The Custom Report window opens.

  3. Select the organization if you are a global administrator.

  4. Select Database Script in the Type field.

  5. Specify a description of the report in the Description field.

  6. Specify the address to the script in the Script URL.

  7. Enable the appropriate report selection options in the Allow Report Selection list.

  8. Click Save.

The results are displayed in the window. Click a column heading to re-sort the table.

Additional resources: Custom Reports Made Easy

Support | About ELB Learning
© ELB Learning 2022