Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to load dimension names into settings dropdown

Hello I am new to qliksense and attempting to write an extension for version 1.0 (so this could be a silly question).

I would like the user to select from a list of dimension names in the visualization settings panel to the right, without having to retrieve any data or be forced to add a dimension to the visualisation before loading it. I'd like the dimension names to be those that were originally defined in the sheet's data.

definition : {

     type : "items",

     component : "accordion",

     items : {

          dimension : {

               type : "items",

               label : "Select Fields",

               min : 1,

               max : 1,

               items : {

                    field1 : {

                         type : "string",

                         component : "dropdown",

                         label : "Select field 1",

                         options : //TODO: how do I get all the possible field names defined in the data sheet here?

                    },

                    field2 : {

                         type : "string",

                         component : "Select field 2",

                         label : "Select a dimension",

                         options : //TODO: how do I get all the possible field names defined in the data sheet here?

                    }

               }

          }

     }

}

Hope this makes sense

0 Replies