This content has been archived.

Table of Contents

getSections: Public JS API for Actions


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>",  <br />
"<div data-ui-meta=\"{'type':'Section'......</div>"]  
Suggest Edit

100% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.