Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

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.

getSections: Public JS API for Actions

Updated on April 28, 2017


Async API to get a section's markup rendered on each item of a list page (page of type Code-Pega-List).


pega.api.ui.actions.getSections(sectionName, contextList, callback);


  • sectionName: String name of the section whose markup is desired.
  • contextList: String reference to the list page whose pxResults entries become the context of rendering the section
  • callback: The function to be called with the resulting JSON

Return value

Returns a JSON string in the form of an array, entries being the string HTML markup of the section rendered on each item in the supplied list page.
["<div data-ui-meta=\"{'type':'Section'......</div>",
"<div data-ui-meta=\"{'type':'Section'......</div>"]

Have a question? Get answers now.

Visit the Support 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. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us