Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
EliGohar
Partner - Creator III
Partner - Creator III

Passing a parameter through a URL into a variable

Hi,

Assuming I have the following address structure for the application:
http://new-ui:8090/bc/sense/app/bdb93862-48e3-4605-a353-97424acec650/sheet/7f7d14c0-c422-4eda-b297-a...

I want to pass a parameter (a dynamic value that changes every time the user signs into the application) into a variable that exists in the application. Is it possible?

I am not interested in working with a field and making a selection because the value I am passing does not exist in the data model and therefore I want to work with a variable.

To make it clearer - this is the flow:

We are working in embedded analytics method which means that Qlik application is intergrated in our product and we open it using iframe (with the URL I mentioned earlier). So now we want to pass the parameter of session ID of the user (which is created once the user logs into our product) from our product and work with it in Qlik application.


Many Thanks.

 

Labels (1)
1 Solution

Accepted Solutions
ajaykakkar93
Specialist III
Specialist III

Hi,

Yes you can do that using a custom extension, unfortunately, that extension doesn't exists but it is doable.

follow the steps below

  1. Create a basic extension
  2. Using javascript get the URL of the page
  3. Get the parameter from the URL which is needed & save it into a javascript variable
  4. Using capability API -> Variable API you can use setcontent() to set your value to a variable name & get your product working

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

View solution in original post

5 Replies
ajaykakkar93
Specialist III
Specialist III

Hi,

Yes you can do that using a custom extension, unfortunately, that extension doesn't exists but it is doable.

follow the steps below

  1. Create a basic extension
  2. Using javascript get the URL of the page
  3. Get the parameter from the URL which is needed & save it into a javascript variable
  4. Using capability API -> Variable API you can use setcontent() to set your value to a variable name & get your product working

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

alex_colombo
Employee
Employee

Hi @EliGohar , unfortunately this is not possible out-of-the-box. As suggested by Ajay you can use an extension, but this means that you have to add the extension on the correct sheet, otherwise the code will not be triggered.

Another option is to use a very simple mashup (web application), which basically render you Qlik app with an IFrame and then read url parameter and set QlikVariable content.

ajaykakkar93
Specialist III
Specialist III

Hi,

Yes you can do that using a custom extension, unfortunately, that extension doesn't exists but it is doable.

follow the steps below

  1. Create a basic extension
  2. Using javascript get the URL of the page
  3. Get the parameter from the URL which is needed & save it into a javascript variable
  4. Using capability API -> Variable API you can use setcontent() to set your value to a variable name & get your product working

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

EliGohar
Partner - Creator III
Partner - Creator III
Author

That's what I did in the end, thank you very much

ajaykakkar93
Specialist III
Specialist III

i Hope my solution was benefit for you.

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting