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: 
mchrenka
Contributor
Contributor

How do I get data from my web environment through an iframe into qlik sheet?

In Embedding analytics onto our site using iframes.....I need to be able to pass a piece of data such as a company id from my web environment into qlik so that I can use that piece of data in set analysis.    i.e.   The report values might be different for different people viewing the same worksheet depending on which company id is logged into  our site.

I figured out how to pass in values as selections which is a bit hacky and also breaks when the suer clears the filters.

Surely there is a way to get something like an "id" into an iframe to be used in a variable or some other way?

Any solutions?

Labels (3)
2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You could make that selection against a field with "Always one selected" set and then it would not clear when the user cleared selections. Make it a hidden field so it doesn't show up in the current selections.

Another idea would be to add the value as a query parm to the url like

?companyId=123

Then you would need to write a small extension that read the companyId from window.location and saved the value in a qlik variable for use in expressions.

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

mchrenka
Contributor
Contributor
Author

Great Tips!

I got this working as a "Visualization" extension but from what I can tell I need to actually drag the visualization onto the sheet which takes up real estate.    

Do you know of a way to make this an app (or sheet) wide extension without needing to add a chart visualization to the sheet?