Defining Your Own Web Profile Custom Properties

I recently discovered a good piece of information provided by a member of the psadmin.io community. They explained how they have defined their own custom properties on the web profile in PeopleSoft. I always thought that the custom property names had to be predefined under the hood by Oracle in order for you to make use of them. It turns out that this is not the case. You can define your own custom properties on the web profile so that you can use them as meta-variables anywhere on the web server. This becomes very useful for getting rid of hard-coded values that might exist on the static html pages on the web server. I will demonstrate how this can be done.

For this example I have a link on my PeopleSoft login page that points to my single sign on portal.  If users want to login through the portal instead of the PeopleSoft login, then they can click this link to be taken to the portal login.

PeopleSoft Login With Link

I have the link to the portal hard-coded on this page.  Here is an example of what the source looks like on this signin.html page:

Source Code Before

To get rid of the hard-coded link in the source code, we can define a custom property on the web profile that will point to the link.  To do this, navigate to PeopleTools -> Web Profile -> Web Profile Configuration. Select the name of your web profile and click on the “Custom Properties” tab. Add a custom property with a name of your choosing.  I set the property name of mine to “mylink“. Set the validation type to string and input the link’s value into the property value field.

Custom Property

Now you need to change the source code of the signin.html page to point to the newly defined property.  All that is required for this is to replace the hard-coded link with a meta-html reference to the newly defined custom property. Since I named my custom property “mylink“, then I will replace my hard-coded link with a <%=mylink%> meta-html tag.

Source Code After

A web server bounce and cache clear is required for the changes to go into effect. Once you do this, you will notice that the meta-html variable in the source code gets populated with the value that is defined in the custom property of the web profile.

It is worth noting that these custom properties are stored in the PSWEBPROFPROP table in the database.  If you have links (or other variables) that are environment-specific, then the population of these values to the web profile can be done by updating this table.  This can be useful because you can populate these properties in your post-refresh database scripts.  This can ultimately lead to less maintenance and overhead by only having to maintain a single version of your static html pages.

Comments

Colton Fischer

You’re welcome! I’m glad it was helpful. I am not sure if you already know about this, but there is a nice extension for Chrome browsers called PS Utilities that is capable of giving you the record and field names of values on PeopleSoft pages. With this utility, you can simply put your mouse over a value on the page and it will tell you the corresponding record and field. This is much easier to do versus getting this information through app designer.

Leave a comment

Your email address will not be published. Required fields are marked *

Loading...