Skip to main content


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

showDataPreview(dataContext, dataContextParameters, options)

Updated on July 20, 2021

Displays a preview of a data item in the preview panel.

Returns

A promise associated with the action.

Parameters

NameTypeDescriptionRequired
dataContextstringThe name of the data page whose data must be displayed.
dataContextParametersstringThe parameters associated with the data page.
optionsobjectThe JavaScript object containing the properties to display the data.
Note: The properties of this parameter are generated by the system and cannot be provided by the user.

Usage example

In this example, the API displays the preview of a data item (identified by dataContext and the dataContextParameters) inside the preview panel with the extra configuration object provided.

getPConnect().getActionsApi().showDataPreview(dataContext, dataContextParameters, options);
  • Previous topic showData(pageName, dataContext, dataContextParameters, options)
  • Next topic showPage(pageName, className, 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