on 02-12-2015 2:54 PM
Hi there,
I'm facing a problem with the data feeds.
In the flow.js file of my extension I have defined 3 measure feeds and would like to transform my data object to a new internal structure for easier use. Therefore I need to know the measure sets belonging to every feed.
This mapping can be seen in data.meta._meta.measureSets because i know the index of every feed:
feed1 -> index 0,
feed2 -> index 1,
feed3 -> index 2
So when I look up data.meta._meta.measureSets[0], I will get the IDs of the measure sets belonging to feed1.
My problem is the following:
Each feed can contain 0 to 3 measure sets. That means when feed1 is empty, the indices belonging to the feeds are the same:
feed1 -> index 0,
feed2 -> index 1,
feed3 -> index 2
(can also be seen in data.meta.mgMap),
but when i look up data.meta._meta.measureSets[0], i will get the iDs of the measure sets belonging to feed2 because the entry for the (now empty) feed disappeared and the other entries moved to its position in the array. It would be much better if it stays there but e.g. as an empty array...
This brings me to my question: Does anyone know another way to find out which measure set belongs to a specific feed with the option to have empty feeds?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.