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.
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:
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.
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.
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.