Skip to main content


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

showData(pageName, dataContext, dataContextParameters, options)

Updated on July 20, 2021

Displays the data of a page based on the data context.

Returns

A promise associated with the action.

Parameters

NameTypeDescriptionRequired
pageNamestringThe name of the view in which the data must be displayed.
dataContextstringThe name of the data page whose data must be displayed.
dataContextParametersobjectThe parameters associated with the data page.
optionsobjectThe JavaScript object containing the properties to display the data.

The following table contains the properties of the options object:

NameTypeDescriptionRequired
containerNamestringThe name of the container that displays the data.
skipSemanticUrlbooleanThe flag that determines if the semantic URL evaluation logic must be skipped.
Note: The default value is false.
  • If the value is false, the semantic URL evaluation logic will not be skipped.
  • If the value is true, the semantic URL evaluation logic will be skipped.

Usage example

In this example, the API displays the data of the EmployeeDetails page based on the D_EmployeeDetails data context.

const showPagePromise = getPConnect().getActionsApi().showData("EmployeeDetails", "D_EmployeeDetails", {pyGUID: "0759409f-4146-439c-aa25-57d4f495fee5"});
showDataPromise.then(() => {
  // show data success handling
}).catch(() => {
  // show data failure handling
});
  • Previous topic showCasePreview(pzInsKey, configObj)
  • Next topic showDataPreview(dataContext, dataContextParameters, options)

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us