Creating Standard and Sub Style Sheets

This section discusses how to:

  • Create standard style sheets or sub style sheets.

  • Rename standard style sheets or sub style sheets.

  • Delete standard style sheets or sub style sheets.

  • Insert sub style sheets into style sheets.

  • Insert style classes into style sheets.

  • Inserting override style classes into style sheets.

To create a new standard style sheet or sub style sheet:

  1. Select File > New.

  2. Select Style Sheet from the Definition drop-down list box and click the OK button.

  3. Select the style sheet type.

  4. Click the OK button.

  5. Select File > Definition Properties.

  6. Select the style sheet type and parent style sheet.

    The Parent Style Sheet field is enabled if you create a standard style sheet only. The default parent style sheet is the application style sheet that you set on the PeopleTools Options page.

  7. Enter a description.

  8. Save the style sheet.

To rename standard or sub style sheets:

  1. Select File > Rename.

  2. Select Style Sheet in the Definition drop-down list box and then enter search criteria to find the style sheet definition that you are deleting.

  3. Click the Rename button; the definitions that match the search criteria appear in the list box.

  4. Double-click the style sheet definition that you want to rename.

  5. Enter the new name of the style sheet definition in the highlighted area and press the Enter key.

  6. Click the OK button to confirm the rename.

Note: When you rename a standard or sub style sheet, PeopleSoft Application Designer automatically renames all references to the style sheet.

To delete standard or sub style sheets:

  1. Select File > Delete.

  2. Select Style Sheet in the Definition drop-down list box and then enter search criteria to find the style sheet definition that you want to delete.

  3. Press the Delete key; the definitions that match the search criteria appear in the list box.

  4. Click the style sheet that you want to delete and press the Delete key.

  5. Click the OK button to confirm the deletion or click the Cancel button to cancel the operation.

Note: When you delete a style sheet, PeopleSoft Application Designer automatically deletes all references to the deleted style sheet. If you delete a style sheet that contains sub style sheets, the sub style sheets are not deleted; they become independent definitions.

You can insert a sub style sheet into a standard style sheet or another sub style sheet.

To insert a sub style sheet into style sheets:

  1. Create or open the receiving style sheet.

  2. Select Insert > Insert Sub Style Sheet.

  3. In the drop-down list boxes, select the sub style sheet type and the sub style sheet that you want to insert.

  4. Click the OK button.

  5. Save the sub style sheet.

You can remove sub style sheets from within other style sheets by highlighting the sub style sheet and pressing the Delete key. This action does not delete the definition from the database; it removes the sub style sheet from the current definition only.

You can insert style classes into any standard style sheet or sub style sheet.

To insert a style class into a style sheet:

  1. Open the style sheet in which you want to create the new style class.

  2. Select Insert > Insert Style Class.

  3. Enter the name of the new class.

    Note: Style class names can be upper case, lower case, or mixed case.

    Note: If you import a lower case or mixed case style class into a PeopleTools version prior to PeopleTools 8.53, it may not work as expected.

  4. Copy attributes from another style class by selecting the style class name from the Copy Values From Style Class drop-down list box.

    Leave the Copy Values From Style Class field empty if you want to set all style class properties manually.

  5. Click the OK button.

  6. Configure style class attributes, as necessary.

    See Setting Style Class Attributes.

You can remove a style class from a style sheet by highlighting the class and pressing the Delete key. This action does delete this instance of the style class from the database.

Note: For efficiency, clone style classes from other style sheets. Then, either use the Insert menu or paste the style class into the new style sheet. At that time, the system enables you to enter the new style class name. Be aware that when copying style classes, the copy or clone will not contain any of the related language data associated with the original.

When you create a style sheet and configure the Parent Style Sheet property, the new style sheet inherits all of the style classes of the parent. If you want to change the attributes of an inherited default style class in the new style sheet, you insert an override style class. To insert an override style class into a style sheet:

  1. Open the style sheet.

  2. Verify that the Parent Style Sheet property is configured correctly.

  3. Select Insert > Override Style Class.

  4. Select the style class name from the Style Class drop-down list box and click the OK button.

    The class properties dialog box appears showing the old settings.

  5. Configure the override style class, as necessary.

    See Setting Style Class Attributes.

  6. Click the OK button.

  7. Save the style sheet definition.