Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
gadwinjer
Partner - Contributor III
Partner - Contributor III

Custom extension - Can't access to the third measure

Hello, I try to custom an extension by adding a third measure.
So I have set the min property of measures definition to 3 but when I log the layout, the Array lenght is only 4 (instead of 5 for my 2 dimensions and 3 measures).

Did I miss something ?

        definition : {

            type : "items",

            component : "accordion",

            items : {

                dimensions : {

                    uses : "dimensions",

                    min : 2,

                    max : 2

                },

                measures : {

                    uses : "measures",

                    min : 3,

                    max : 3

                },

                sorting : {

                    uses : "sorting"

                },

                settings : {

                    uses : "settings"

                }

            }

        },

1 Solution

Accepted Solutions
ErikWetterberg

Hi Jeremy,

don't know if this is what happened in your case but if your create your extension with an initialProperty with the initial width to say 4, create a visualization in an app, and then change to 5 (because you have added an expression) the visualization will not be updated, since these are just initial properties, used on creation. You will have to recreate it.

Hope this helps

Erik

View solution in original post

2 Replies
gadwinjer
Partner - Contributor III
Partner - Contributor III
Author

I didn't find the reason of this bug but after a copy of my code in another extension, I can now access to the third measure.... Strange...

ErikWetterberg

Hi Jeremy,

don't know if this is what happened in your case but if your create your extension with an initialProperty with the initial width to say 4, create a visualization in an app, and then change to 5 (because you have added an expression) the visualization will not be updated, since these are just initial properties, used on creation. You will have to recreate it.

Hope this helps

Erik