PeopleSoft (Tips & Tricks)

Archive / RSS
Jan 16

Using the PIA Welcome Message

Posted by Tipster in Peoplesoft Tipster

The PIA Welcome message, or Portal Greeting is a pretty simple piece of functionality, but I’ve not seen it used on a single client site. For those that haven’t seen it before, it looks like this:

Welcome Message exampleThe welcome message is stored on a per user basis, it is set using the ‘Personalize Content’ link on the Homepage, and it is stored in the table PSPRUHDEFN. If updated via SQL, it won’t appear instantly unless you either bounce the App Server (and clear the cache) or increment the versions in PSVERSION and PSLOCK. There is an (Oracle) sql script to update the message - so it appears instantly - at the foot of this post.

A more constructive use of the greeting would be to alter it slightly. Particularly during development and testing it would be useful to display the logged on user and the environment name. An extremely simple change to a Tools object (yes, I know, but it’s such a small change that the upgrade implications will be minimal) allows this.

There are two steps, output the user/database in the greeting and make the message appear on every page, not just the Homepage.

1. Output the user/database in the greeting

Open Application Package PT_BRANDING, Application Class BrandingBase, Method GetIScriptHPDefaultHdrHTML.

Replace:
Greeting = &Portal.Homepage.Greeting;

With:
/* <name> - 13/06/07 - Adding user and environment to branding */
/* &Greeting = &Portal.Homepage.Greeting; */
&Greeting = %UserId | ” on ” | %DbName;
/* <name> - End */

2) Make the message appear on every page, not just the Homepage.

If you want it to display on all pages, you need to edit Application Package PT_BRANDING, Application Class BrandingBase, Method GetUniHeaderHTML and GetUniHeaderHTML_PIA.

Add the following just before the ‘If &navTheme.isNS4x()’:
/* <name> - 13/06/07 - Adding user and environment to branding */
&Greeting = %UserId | ” on ” | %DbName;
/* <name> - End */


Page 1 of 12