This content has been archived and is no longer being maintained.

Table of Contents

Article

getSections: Public JS API for Actions

getSections

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

Syntax

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

Parameters

  • 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>"]  

Published April 25, 2017 — Updated April 28, 2017


100% found this useful

Have a question? Get answers now.

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