What you could do is check that they are qual in paint, and call applyPatches if they are not. This will trigger an update, recalculation and a new call to paint.
Be careful, or you will be building an inifinite loop. Also try to make all changes in one call.
Please as Correct and/ or Helpful is this helps you.
Hi Erik, thanks for your reply.
I was already trying to use patching, but I have a question. You say:
check that they are qual in paint, and call applyPatches if they are not.
how do I do this? I don't see any methods in the backend API that let me read the Hypercubes' definition object, so how can I compare their definitions to see if they match?
Also, the backend API doesn't let me chose which cube to use for methods like "getDataPages" or "getPivotData", it always calls them using the default hypercube, so how would I manually retrieve the data from the second cube?
You could compare DimensionInfo and MeasureInfo for the two cubes or you could use getProperties to get the actual properties.
You're right, the backend API won't help you with the second cube, you would need to access the layout directly and possibly use enigmajs for function calls.