Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
maxim1500
Partner - Creator
Partner - Creator

qlik-visual component and master items

Hi,

Is it possible to reference a master item from a qlik-visual component instead of hard-coding the measure formula in a mashup? I would like to use the Qlik application to define the measures and dimensions, and then refer to these master items as parameters in my qlik-visual component.

Thank you!

3 Replies
ErikWetterberg
Master
Master

Hi,

Yes it is, but you need the id from the measure or dimension. Specify that as qLibraryId. If you are refering to a measure, you also need to add qType:"measure", otherwise the api will assume it's a dimension.

For the visualization API this is described here:

The Visualization API

qlik-visual simply wraps the visualization API, so the same stuff works, only you have to stringify all javascript objects.

Hope this helps

Erik

maxim1500
Partner - Creator
Partner - Creator
Author

Thank you for your answer! Could you tell me how to get the libraryid for a metric? It doesn't appear in the single page...

nvrphanikumar
Creator
Creator

I have the same question. Is there a way to find out qLibraryId of a Master Measure or Dimension ?