Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Parameter "includeStyles" for ListView Control not showing up



"includeStyles" parameter for ListView control (Pega-Gadgets : 06-02-20 ) is not showing up when the ListView control is included in a section. This means that any stylesheet included in the "Format" tab of the List view will not take effect. If we remove the "HTML Fragment for Parameter Prompting" - ListViewParams, then this parameter starts showing up and we can pass values for this parameter.

Error Messages

The "includeStyles" parameter for the ListView control does not show up.

Steps to Reproduce

Include a stylesheet in the Format tab of a list view
Include the list view in a section
The "includeStyles" parameter for the ListView control does not show up.


As per design, includeStyles attribute will be set to 'none' if the list view is embedded in section.Although we include style sheet in the Format tab, PRPC will not consider this style sheet when the list view is embedded, because the styling might not match the portal styling.
So we are not given an option to set includeStyles attribute in the parameters of listview in a section.
This has been documented as below:


There are two possible approaches to set styles for a listview embedded in a section.

1. Embedded listviews can be styled using the CSS rule set in the skin rule for the portal.
2. If you want to include the styles in the format tab and want those style to be applied for the list view when it is embedded we need to follow the below steps.

Step 1
In the Parameter Settings for the ListView Control, set the Report Parameters as below

Step 2
Write a Custom HTML Fragment as follows. In the HTML Fragment, refer to your custom text/css file.

Step 3
Include the above Custom HTML Fragment in the Organize Tab of the List View.


Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us