Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ChrisSL
Partner - Contributor II
Partner - Contributor II

Listening to Dimensions and measures properties

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. 

Labels (1)
1 Solution

Accepted Solutions
ChrisSL
Partner - Contributor II
Partner - Contributor II
Author

Got it with 'layout.qHyperCube.qDimensionInfo' and qMeasureInfo

View solution in original post

1 Reply
ChrisSL
Partner - Contributor II
Partner - Contributor II
Author

Got it with 'layout.qHyperCube.qDimensionInfo' and qMeasureInfo