Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am working on an extension right now, which needs two hyperCubeDefs, which have 2 sets of arrangements from the main dimensions and measures in the properties.
I am applying the dimensions and measures with applyPatches().
In essence, everything works fine. What I would like to achieve though, but have not been successful so far, is to re-apply the changes each time I change the dimensions or measures in 'Edit' mode.
So far, the closest I got, for having the extension work properly, is listening to the SelectionObject changes (which I need to do anyway in my extension). But although this gets called often, it will not get called when I add a new dimension or measure.
I have seen posts that use something like this: ( I have tried 'measures, 'layout.measures') -- in the "mounted" function
this.$scope.$watchCollection('measures', (props) => {
....
});
The callback gets called on load, but nothing afterward.
How can I listen to the Dimensions and Measures changes?
Thanks.
Got it with 'layout.qHyperCube.qDimensionInfo' and qMeasureInfo
Got it with 'layout.qHyperCube.qDimensionInfo' and qMeasureInfo