You can have the displayed web page use selected labels instead of the property names to identify component interface data.
Data contained in PeopleSoft Component Interfaces is identified by property names. These names are usually abbreviations of the labels that are used for the data when displayed on a report or web page. For example, some component interfaces have a property called PROP_EMPLID, which contains an employee identification.
When displaying component interface data on a web page, it is best to use meaningful labels such as Employee ID. PeopleSoft component interfaces contain label metadata that can be used to create presentable web pages and reports.
The PeopleSoft Component Interface builder contains a Generate Label Resources
input that, when enabled, causes the builder to query a component interface for its property label metadata. The builder can then construct two resource bundles that can be used by other builders, such as Data Page, to create presentable web pages. One resource bundle contains long labels and the other contains short labels. Using PROP_EMPLID as an example, the long-label resource bundle can contain an entry similar to PROP_EMPLID=Employee ID
. Similarly, the short-label resource bundle can contain an entry like PROP_EMPLID=Emp ID
- Enable the Generate Label Resources input of the builder.
- Apply the builder input changes.
The label resource bundles are written to WEB-INF/source and WEB-INF/classes.
- Open the Data Page builder that is being used to display the component interface data.
- In the Label Translation Settings group, select either the long or short label resource bundle as the value for the Resource Bundle Name input.
- Apply the Data Page changes and run your model.
The displayed web page now uses the selected labels instead of the property names to identify component interface data.
Parent topic: PeopleSoft Component Interface builder: wpf7