Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

gadwinjer
New 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
erik_wetterberg
Honored Contributor

Re: Custom extension - Can't access to the third measure

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

Erik Wetterberg
https://extendingqlik.upper88.com/
2 Replies
gadwinjer
New Contributor III

Re: Custom extension - Can't access to the third measure

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...

erik_wetterberg
Honored Contributor

Re: Custom extension - Can't access to the third measure

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

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser