Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am using .Net SDK in Window application to communicate with qlik sense desktop. I am fetching sheet then its children. On a button click showing the object one by one by index. I am displaying the chart in webbrowser control.It is working fine, But after 6 request a pop up with security error displyed.
Code sample
var sheet = TheApp.GetSheets().ToArray();
var visualizations = sheet[1].Children.ToList();
var barchart = visualizations[index];
webBrowser1.Navigate(barchart.SingleUrl().Fix());
Hi,
Your problem with 6 requests is a known issue for more information see
http://msdn.microsoft.com/en-us/library/ie/ee330736(v=vs.85).aspx#websocket_maxconn
If you are using a Qlik Sense version 2.2 the suggested solution i to use the singel mashup. Single keeps the websocket session open which solves the problem.
private void ShowChart(string serverUrl, string appId, string objectId)
{
var urlString = $"{serverUrl}single/#/app/{appId}/object/{objectId}/options/nointeraction/select/clearall";
webBrowserControl.Navigate(urlString);
}
For single mashup usage see Single integration ‒ Qlik Sense
Best regards
Lars-Göran Book
Thank you for your quick reply.
Yes I am using Qlik Sense version 2.2 and your solution is working fine, but how to pass ticket with URL in your suggested pattern.
Second thing, What will happen if Qlik Sense will upgrade.
Hi,
It should be backwards compatible, else it will be stated in the release notes.
Best regards
Lars-Göran Book