On the Continuation to my previous post here i am going to tell about the custom style sheet in Fluid.
The layout of all page elements in a fluid application is controlled by free from style sheets using CSS 3.0 standards. This is one of the most critical differences to consider when comparing classic PIA applications to fluid applications. With each control that you add to a page, PeopleTools automatically applies a style class to that control structure, and that style class enables that control to behave and render successfully on a fluid page.
Below are some of the main style sheets provided by the PeopleSoft fro the Fluid Pages and Controls.
If we want to use the CSS to render the page then we need to create the Style sheet. We have to include our CSS code to add the Styles or to change width or to change the look and feel of page to the newly created style sheet. Add the CSS name to the Page control properties --Fluid tab.
Demo:
The layout of all page elements in a fluid application is controlled by free from style sheets using CSS 3.0 standards. This is one of the most critical differences to consider when comparing classic PIA applications to fluid applications. With each control that you add to a page, PeopleTools automatically applies a style class to that control structure, and that style class enables that control to behave and render successfully on a fluid page.
Below are some of the main style sheets provided by the PeopleSoft fro the Fluid Pages and Controls.
Style Sheet | Description |
PSSTYLEDEF_FMODE | General style sheet for fluid applications (included on every page), containing the majority of fluid style classes. |
PTNUI_NAVBAR_CSS | Contains the styling used for the Navigation Bar (NavBar). |
PTPN_NOTIFYWIN_CSS | Notification/Alerts styling. Included on every page where notifications are enabled. |
PTNUI_PINTO_CSS | Controls the styling for the “Add to…” functionality. Included on pages with the Add to feature enabled. |
PTS_NUI_FFSTYLE | Used by both global search and component search features. |
PTPG_MENUSTYLE | Used by pivot grid search features. |
PTPG_NUI_GRID_CSS | Used by pivot grid display. |
If we want to use the CSS to render the page then we need to create the Style sheet. We have to include our CSS code to add the Styles or to change width or to change the look and feel of page to the newly created style sheet. Add the CSS name to the Page control properties --Fluid tab.
Or add the code in the component post build to add the custom style sheet to the fluid page.
AddStyleSheet(StyleSheet.TEST_FLUID_CSS);
Demo:
Let me demo on how to add the CSS to the Fluid pages. I am taking simple page where i have only the employee id field. I would like to show the Name of the Empid to the right of the Empid Field. For that i am using the display control field.
The above is designed by adding a sub page to the Fluid page. In Sub page i have placed the Emplid field and related content field to show name.
Place a Group box in the Sub page as shown as above. Add the Group boxes to each field.
Add one group box for Emplid and another Group box to the Display field. Add the delivered class PSC_INLINE to the group boxes to make them show side by side.
By adding the class PSC_INLINE make the group boxes to display in blocks. You can check the class used and the style properties of that class by Developer tool provided by the Chrome.
Thanks,
VPN PS Team.
Place a Group box in the Sub page as shown as above. Add the Group boxes to each field.
Add one group box for Emplid and another Group box to the Display field. Add the delivered class PSC_INLINE to the group boxes to make them show side by side.
Thanks,
VPN PS Team.