Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Greetings Qlik community!
I am working on a Qlik extension that will allow custom filtering. For that to work, I need to get a list of all dimensions in an app, so I can fetch data / do selections.
I've spent hours reading the docs and the forum, and the closest I could find is to use the Qlik Engine JSON API, and from what I could find it's not accessible through the Extension API.
Does anyone know how to do this?
Add the system data you need to your data model, described in initialProperties. I have written about this here:
http://extendingqlik.upper88.com/accessing-system-data-and-variables-in-a-qlik-sense-extension/
Add the system data you need to your data model, described in initialProperties. I have written about this here:
http://extendingqlik.upper88.com/accessing-system-data-and-variables-in-a-qlik-sense-extension/
The problem is, I've tried both app.getList("DimensionList") and specifying "qDimensionListDef" in the "initialProperties". Both return an empty array.
Currently, I have the dimension names hard coded, and I am able to get the data and do selections.
When you say "a list of all dimensions in an app"... Are you sure you mean all "dimensions" and not all "fields"? "dimension" in this context typically means "library dimensions". It's those you get when you create one of those DimensionList objects. It might be that it is actually a "FieldList" you want:
Yep, turned out what I needed was to get the fields, and not dimensions. Still getting used to this stuff.
I installed Erik's syslist extension, and it showed 0 dimensions too, but 100+ fields.
Thanks for help @ErikWetterberg @Øystein_Kolsrud !