Wednesday, August 16, 2017

Little Icon in Personal details

In PeopleSoft HCM 9.2 Image 22, we have Personal Details Tile in Employee Self Service Homepage. Clicking this tile will take you to an Elegant Fluid Component. This component will have a Left Panel with multiple tabs for Address, Name, Phone, Ethnic Groups. I9 Information etc. Clicking each of the Tab will show the details in Right Panel Target area.

Though it looks like a single Component, each of the Tab will make a full transfer to a new Component. Full Transfer mean each component will have a similar left panel and right panel structure. Only the contents in Right panel changes giving us a unified look and feel.

On Further examination of the Fluid Component you can find that each of the Component will have a two panel Fluid layout and a grid in the sub page of the left panel. The grid contains Push Buttons which provide a Tab like CSS styling.

There is a common requirement to Add or hide any of the components from the left tabs. The visibility of the tabs is controlled by permission of the Target components. If we remove permission for the user for any particular component, the left tab will be hidden. The permission based visibility peoplecode is available in below App Package PeopleCode. This PeopleCode is called from Post Build of the components.

HR_FL:MASTER_LIST:PersonalDetails

Adding a new tab requires little PeopleCode in the above Package.

1. Add tab count and add new row in the left panel grid
2. Assign Label Text and Icon
3. Add code for transfering to component

Design the Transfer component similar by cloning the delivered Fluid component. Transfer can be made to any of the classic components too if thats the requirements.

About the little icon. The icon is 20 px by 20 px SVG image. SVG is a Scalable Vector Graphics image. It simply means the image is not bitmap. The image file can be opened in a text editor. You will find XML based geometry objects. SVG images can be downloaded from Google search. Image type can be set as SVG in the Google Image search advanced properties. The file can be downloaded and edited in Notepad++ or any XML editor. We can change the color, view port dimension to set  Height to 20px and Width 20px. Image file can be opened in browsor to preview.  Once you are satisfied with the image, Go to App Designer, File, New, Image and import this image. App Designer cannot display SVG type of image. This Image object can be used in PeopleCode like any other image.

If there is problem with the back button use the below code in Target component. Refer to Oracle Support article related to this.

SetTransferAttributes(False, False, "","", Null, True);


No comments: