updateTransientData(transientObject)
Updates a transient item in the current context, which can be used to hold the values that don't get submitted with the content.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
transientObject | object | The JSON object containing the ID of the transient item and data containing the properties and their values. | ✅ |
Usage example
In this example, the API updates a transient item in the current context.
const containerManager = getPConnect().getContainerManager();
containerManager.updateTransientData({
transientItemID: 'uniqueIdentifier',
data: {
"Prop1": "valueA",
"Prop2": "valueB"
}
});
Previous topic updateContainerItem(containerInfo) Next topic APIs in the ValidationApi class