applyPatches method
applyPatches(qPatches, qSoftPatch)
Method used to update properties for this object.
Information noteThis method was introduced in Qlik Sense version 1.0.
Parameters
Name | Type | Description |
---|---|---|
qPatches | Array |
Array of patches. Each path contains:
|
qSoftPatch | Boolean | Set to True if properties should be soft, that is not persisted. |
Returns
Returns a promise of the RPC call response.
Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.
Example
this.backendApi.applyPatches([
{
"qPath": "/qListObjectDef/qDef/qSortCriterias/0/qSortByLoadOrder",
"qOp": "replace",
"qValue": "-1"
},
{
"qPath": "/meta",
"qOp": "add",
"qValue": "{ \"data\": \"this is the data\"}"
}
], true);
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!