openCase(caseId, targetContext, options)
Loads a case into a target container.
Returns
An empty Promise.
Parameters
Name | Type | Description | Required |
caseId | string | The ID of the case to be loaded. | ✅ |
targetContext | string | The target context where the case must be loaded. | ❌ |
options | object | The JavaScript object containing the property that can be used to load a specific view. | ❌ |
The following table contains the properties of the options object:
Name | Type | Description | Required |
pageName | string | The name of the view that must be loaded into a container. | ❌ |
Usage example
In this example, the API opens the case whose ID is OPB1HW-SPACETRA-WORK
RA-10001
, and updates the Redux Store.
PCore.getMashupApi().openCase('OPB1HW-SPACETRA-WORK RA-10001');
Previous topic openAssignment(assignmentId, targetContext, options) Next topic openPage(pageName, className, targetContext)