View PeopleCode Styles

I have always had trouble finding the right style for an edit box, label, header etc. in Peoplesoft. Everything was trial and error where I would pick a style , save the page and then see how it looked online.

This was very inefficient and time consuming so I was looking for a better way where I can see all the styles at once and pick the one I like. ¬†I came across Doug Stupple’s post on this topic which is exactly what I was looking for.

Here is the idea:

  • Create a while loop and fetch styles from¬†PSSTYLECLASS
  • Enclose returned style name in html DIV tags and add them to a string variable
 &StyleHTML = &StyleHTML | "
<div class=" | &StyleName | "> " | &StyleName | "</div>
";
  • Create a HTML area on a page and reference a long descr field on a work record
  • set the value of descr long to the string variable above
TEST_RCD_WRK.DESCRLONG = &StyleHTML;

Here is the result:

Ps0ft_styles

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s