Contents SAS/IntrNet 9.1: SAS Design-Time Controls Previous Next

Example Scenarios

This section provides example scenarios for working with the SAS Table Control and the SAS Thin Client Graphics Control. The scenarios assume that you know how to use your HTML editor to insert a Design-Time Control into an HTML page.

SAS Table Control

  1. Insert a Table Control and access its properties. From the Data Set Name drop-down list, select SASHELP.RETAIL.

  2. Go to the Variables tab.

    Note: All of the fields on this tab are type-in fields, so if you know a variable's name, you can type it into the field instead of opening the Select dialog.

    1. Select the Select button that is next to the Display variables field.

    2. On the Select dialog, select the MONTH, DAY and SALES variables, in that order, from the Available list box. Select the OK button.

    3. Select the Select button that is next to the ID variables field.

    4. On the Select dialog, select the DATE variable from the Available list box and then select the OK button.

    5. Type SALES in the Sum variables field to indicate that you want the SALES column summed.

  3. Select the OK button to close the Properties dialog. At this point, a SAS server program executes and returns an HTML page that displays the columns DATE, MONTH, DAY, and SALES from the SASHELP.RETAIL data set. Save this HTML page and view it in your Web browser or via the preview window of your HTML editor.

  4. Set some more properties to make the generated table more attractive.

    1. Access the properties for the Table Control and go to the Appearance tab. Specify a value of 10 for the Padding field and a value of 0 for the Spacing field.

    2. Go to the Color tab and supply the following colors for the associated fields:

      Field Foreground Color Background Color
      Variables Teal Silver
      Sum variables White Red
      Column labels White Navy
      ID variables White Navy

    3. Select the OK button to close the Properties dialog. To see the enhanced table, save the HTML page and view the page in your Web browser or via the preview window of your HTML editor.

SAS Thin Client Graphics Control

Note: In order to use the Thin Client Graphics Control, you must license the SAS/GRAPH product.

  1. Insert a Thin Client Graphics Control and access its properties. From the Data Set Name drop-down list, select SASHELP.RETAIL.

  2. On the Variables tab and select

    • YEAR for the Independent field
    • SALES for the Dependent field
    • MONTH for the Subgroup field.

    Note: All of the fields on this tab are type-in fields, so if you know a variable's name, you can type it into the field instead of accessing the drop-down list.

  3. Select the OK button to close the Properties dialog. At this point, a SAS server program executes and returns a Java graphic that uses the variables that you selected from the SASHELP.RETAIL data set. Save this HTML page and view it in your Web browser or via the preview window of your HTML editor.


Contents SAS/IntrNet 9.1: SAS Design-Time Controls Previous Next