Friday, January 4, 2008

Style Sheets

Stylesheet is a definition like any other object definition. It consists of
classes with attributes that control the appearance/formatting of objects it is applied.

You define a style sheet in Application designer.

Each class is a collection of the above properties. The attributes include font size, color, border width etc.

To make common classes reusable, peoplesoft supports creating of substyles which can be added to multiple stylesheet definitions thus making it reusable.

Each page control defaults a specific class. If that page control's syle drop down list shows use default style, that page control will be applied the default class's attributes.
This can be changed to a custom class that you create provided it is associated with a style sheet linked to the page the page control sits on.

A page can be associated with just one syle sheet. To change the default style sheet for a page, access the page objetc's properties. In the use table change the style sheet.

Thus the following hierarchy emerges
Style Sheet associated with a page.
--> Classes
-> Sub style sheets
--> classes

The class can be associated with the page control and/or the label. ( depends on the type of page control.

This association can be at design time or changed dynamically at run time using peoplecode.

To dynamically associate a class to a page control, assign the class to the Style property of the page control. The class is assigned as a string object in double quotes.

Be carful to avoid makinf spelling mistakes.

Peoplesoft delivers a default stylesheet PSSTYLEDEF which is in turn associated with a number os sub styles.

To use your own style sheet change the Style sheet edit box value in
People Tools > Administration > People Tools Options to your style sheet.
A style sheet has the following properties

  1. Type: Standard or sub style sheet.
  2. Parent Style sheet: Defalt is the one specified in the People Tools Option page.

You will have to play with the various attributes to see the impact of changins specific attribute s on classes associated with pae control.

No comments: