 |
XML REPORT ENGINE
The current implementation of XML Report Engine only supports Microsoft Internet Explorer web browser. These report samples require Internet Explorer 6.0 or above for viewing. We expect to include Firefox compatibility into our next version.
The major elements of an XML report includes the following (see screenshot below):
- Report Toolbar: Report Toolbar provides detailed control of sorting, grouping and filtering capabilities. For sorting, specify the field name and its sorting order. For grouping, first specify the field name and sorting order, and then check the "group by this field" checkbox. For filtering, specify the field name, an appropriate operator and a value. The front-end user interface allows you to specify up to three levels of sorting, grouping and filtering. Report Toolbar can be toggled on and off by click "Show Toolbar" and "Hide Toolbar".
- Quick Menu: Quick Menu allows an end-user to quickly sort, group or filter the report by a single criteria. It can be turned on by clicking the downward arrow on selected report columns, and turned off by clicking the upward arrow on the Quick Menu itself.
- Group Header: When data is grouped using user-specified criteria, there is a little minus-sign or plus-sign icon at the beginning of the group header. Clicking this icon will hide or expand the entire group. This is useful when you want to hide some less important data on the screen or printed copy.

Now you are ready to explore the possibilities of our XML Report Engine. Check out the following report samples:
Server-Side Code Sample
A sample server-side ASP configuration for the "Online
Application Report" report
(see above) is listed below. The server-side code will translate this configuration into XSLT templates and embed them in the web page. On the client-side, the javascript code will dynamically render the XML data through the XSLT templates based on user-defined criteria, presenting report data with proper filtering, sorting and grouping.
'Define recordset fields
'Syntax: Field.SetField strFieldName, strDescription, intDataType
Flds(0).SetField "CampusID{ALIAS:CampusName}", "Campus",
cNumber
Flds(1).SetField "StudentName", "Student Name", cString
Flds(2).SetField "Organization", "Employer", cString
Flds(3).SetField "JobTitle", "Job Title", cString
Flds(4).SetField "DateApplied", "Application Date", cDbDate
'Define report columns, controlling the report layout
'Syntax: Column.SetColumn strFieldName, strHeader, strHeaderAttr, strCellContent,
strCellAttr
Cols(0).SetColumn "", "", "", _
"<xsl:number/>", ""
Cols(1).SetColumn "", "", "width='10'", _
"<img src='/images/Campus_{CampusID}.gif' />", ""
Cols(2).SetColumn "StudentName", "Student Name", "", _
"{StudentName}", ""
Cols(3).SetColumn "Organization", "Employer", "", _
"{Organization}", ""
Cols(4).SetColumn "JobTitle", "Job Title", "", _
"{JobTitle}", ""
Cols(5).SetColumn "DateApplied", "Application Date", "", _
"{DateApplied}", ""
Cols(6).SetColumn "", "", "", _
"<a href='#' onClick='OpenJobDetails({JobNumber});'>Job</a>", _
"class='forscreenonly'"
Cols(7).SetColumn "", "", "class='hidden_when_printed'", _
"<a href='details.asp?SSN={SSN}'
target='_blank'>Details</a>", _
"class='hidden_when_printed'"
'Miscellaneous settings
blnEnableToolbar = True
blnEnableTaskList = False
arrSort = Array("CampusID{G}", "StudentName", "")
|