Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jmITG
Partner - Contributor
Partner - Contributor

Error when having two iframes with the same session

Hi!! we have embedded mashups using iframes in our company software. Until now we didn't have any issues with it, but now we want to load different mashups on the same page using two iframes at the same time. When we do that we are getting a "bad request" error. Is there any recommended procedure for having two mashups on different iframes on the same page? where can I find some documentation about how to do this?

 

Thanks,

 

 

Labels (2)
1 Solution

Accepted Solutions
jmITG
Partner - Contributor
Partner - Contributor
Author

Hi @alex_colombo, thanks for your answer, we sent a request to qlik support too and I got this answer:

" is possible to have two mashups using the same session in different iframes embedded on the same page. Please check the below details;

For the iframe you need to pass in the selections using the selection query string parameter. See the doc here:

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/APIs/Content/Sense_ClientAPIs/single-...

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/Mashups/Content/Sense_Mashups/SingleI...

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/Mashups/Content/Sense_Mashups/mashups...

If you are trying to embed more than one iframe on a page you will want to use the identity parameter as well to assign a shared value for both iframes . This will instruct Qlik to use the same session.

https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-All-you-need-to-know-...

"

We didn't test it yet, but I think is the answer to this post. I'll mark it as Solved.

Regards,

 

View solution in original post

2 Replies
alex_colombo
Employee
Employee

Hi @jmITG , could you please share your iframes html tag, screenshots for your browser console errors and also for the browser console network tab with a focus on Qlik resources? What is the authentication method used by the iframes?

jmITG
Partner - Contributor
Partner - Contributor
Author

Hi @alex_colombo, thanks for your answer, we sent a request to qlik support too and I got this answer:

" is possible to have two mashups using the same session in different iframes embedded on the same page. Please check the below details;

For the iframe you need to pass in the selections using the selection query string parameter. See the doc here:

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/APIs/Content/Sense_ClientAPIs/single-...

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/Mashups/Content/Sense_Mashups/SingleI...

https://help.qlik.com/en-US/sense-developer/May2023/Subsystems/Mashups/Content/Sense_Mashups/mashups...

If you are trying to embed more than one iframe on a page you will want to use the identity parameter as well to assign a shared value for both iframes . This will instruct Qlik to use the same session.

https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-for-Windows-All-you-need-to-know-...

"

We didn't test it yet, but I think is the answer to this post. I'll mark it as Solved.

Regards,