Contents SAS/IntrNet 1.2: MDDB Report Viewer Previous Next
 

Customizing the MDDB Report Viewer with Cascading Style Sheets

The MDDB Report Viewer uses Cascading Style Sheet properties to enable you to customize the viewer output. You can use Cascading Style Sheets to modify background colors, fonts, the size and location of the HTML elements, and to indicate whether the HTML elements are displayed or not. For more information on Style Sheet capabilities, consult your favorite HTML reference guide.

HTML elements use the CLASS parameter to surface Style Sheet properties. Table 1 lists the CLASS definitions used by the MDDB Report Viewer. An example Style Sheet is shipped with the viewer software, and you can create your own to use as well. To apply a Style Sheet to the viewer output, specify the CSS parameter as a hidden field on your initial HTML page. For example,

   <INPUT TYPE="hidden" NAME="CSS" VALUE="http://myserver/mystyle.css">

or add the CSS parameter to the URL of bookmarked reports, as in the following.

&CSS=http%3A//myserver/mystyle.css (note the URL encoding)

An additional CSST parameter is provided so that you optionally can apply a separate Style Sheet to the toolbar frame. If you do not specify the CSST parameter, the toolbar frame uses the value specified by the CSS parameter.

Table 1. MDDB Report Viewer 1.2 CSS Class Tags

Class Name Description
MAINTAB Main Report Table
ROWLAB Row label cells
TROWLAB Total row label cell
STROWLAB Total row label cell for expanded row (for example, "subtotals")
TROWCELL Total row data cells<
TDCELL All other data cells
TCOLLAB Total column label cell
STCOLLAB Total column label cell for nested totals
TCOLCELL Total column data cells
COLLAB Column label cells
EMPTY Empty cell in upper left-hand corner
FILTERBOX Table containing filter list boxes
DIMBOX Table containing dimension selector list boxes
DIMSELBOX Table containing dimension selector list boxes (Report Layout page)
ANALYBOX List box for selecting analysis variable (Report Layout page)
ANALYSIS Class for the <DIV> tag for the analysis variable list box
STATSBOX Listbox for selecting statistic (Report Layout page)
STATS Class for the <DIV> tag for the statistics listbox
ANALYCOL Analysis variable column
STATSCOL Statistics column
GRAPH Class for the IMG tag for Standard GIF graph
TOOLTAB Class for Toolbar
IMGDOWN Class for the IMG tag for Download to Spreadsheet
IMGROTATE Class for the IMG tag for Rotate
IMGLAY Class for the IMG tag for Layout
IMGHELP Class for the IMG tag for Help
HEADER Report Layout html headers
LABEL Report Layout html labels
SELECT Report Layout html SELECT and INPUT tags
SUBMIT Submit (view report) button class

Contents SAS/IntrNet 1.2: MDDB Report Viewer Previous Next