I have used ApplyPatches a lot and never come across properties that cannot be patched. What happens? Do you get an error message? Or does it simply not work? It's more likely there is a format problem with your patch.
Can you share an example?
Erik Wetterberg https://extendingqlik.upper88.com/
I was passing a batch set of definitions to patch an object. So, I wasn't getting the individual error messages for each patch, just a broad fail. When I tried each patch individually in the API Explorer I see the problem. Basically, I am trying to patch a value in an array that does not exist (but could in theory). Here's an example with a combochart.
The error is, "Illegal Array Index. Out of bounds"
Basically, because a combo-chart could have two measures my algorithm tries to patch it, but in this case my chart only has one measure, so the second index of the qMeasures array is not defined yet.
Hopefully, this is the only problem. Thanks again.
Let's say we have a path within the json for a KPI object to a key like "conditionalColoring". There are several key-value pairs inside this object. Like this (retrieved with GetFullPropertyTree, only relevant part displayed):
If I want to patch only one of these key-value pairs, like "singleColor", I might try this ApplyPatches method (in Engine API Explorer):