Qlik Community

Ask a Question

Integration, Extension & APIs

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

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
alan_grn
Creator II
Creator II

Extension using a variable value in AngularJS

I have an extension which is trying to get the value set by setVariableContent in another extension. When I use getContent or getByName it returns the initial value of the variable and not the value used by the set function. If I put the variable in a a text box it shows the new value. How do I capture the new value using the APIs?

Also I need the extension to refresh when the variable value changes. The variable could be set by another extension so how do I register/ capture this event in an AngualrJS erxtension

Labels (3)
1 Solution

Accepted Solutions
ErikWetterberg

Hi,

don’t use getContent in your extension. Instead includes an expression with your variable in the object properties. I have written about this here:

http://extendingqlik.upper88.com/accessing-system-data-and-variables-in-a-qlik-sense-extension/

 

View solution in original post

2 Replies
ErikWetterberg

Hi,

don’t use getContent in your extension. Instead includes an expression with your variable in the object properties. I have written about this here:

http://extendingqlik.upper88.com/accessing-system-data-and-variables-in-a-qlik-sense-extension/

 

View solution in original post

alan_grn
Creator II
Creator II
Author

Thanks. I'll have a read through of this