showData(pageName, dataContext, dataContextParameters, options)
Displays the data of a page based on the data context.
Returns
A promise associated with the action.
Parameters
Name | Type | Description | Required |
pageName | string | The name of the view in which the data must be displayed. | ✅ |
dataContext | string | The name of the data page whose data must be displayed. | ✅ |
dataContextParameters | object | The parameters associated with the data page. | ✅ |
options | object | The JavaScript object containing the properties to display the data. | ❌ |
The following table contains the properties of the options object:
Name | Type | Description | Required |
containerName | string | The name of the container that displays the data. | ❌ |
skipSemanticUrl | boolean | The flag that determines if the semantic URL evaluation logic must 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)