loadView(caseId, viewName, config)
Loads a view with data from server based on the context of a case.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
caseId | string | Unique identifier of the case associated with a context. | ✅ |
viewName | string | Name of the view which must be loaded with data. | ✅ |
config | object | Object that passes the context and container information. | ❌ |
Usage example
In this example, the API loads the pyReview
view with data from a
server based on the context of the case whose ID is ON8TTL-C11NGALL-WORK
C-7001
.
const loadViewPromise = getPConnect().getActionsApi().loadView("ON8TTL-C11NGALL-WORK C-7001","pyReview");
loadViewPromise.then(() => {
// load view success handling
}).catch(() => {
// load view failure handling
});
Previous topic invoke(url [, opts]) Next topic navigateToStep(stepID, containerItemID)