Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

master_t
New Contributor III

.NET SDK - Sharing session

Hi

I'm trying to share a session between a browser and and the .NET SDK, so that selections are mirrored on both ends. I'm connetcing to a QlikSense server using a certificate, and o like this:

//Connect to QlikSense server

senseLocation.AsDirectConnection(

    "myuserdir", //User directory

    "administrator", //UserID (this user is RootAdmin)

    false,

    false,

    x509coll //Certificate

);

var appIdentifier = ...

var senseSession = Session.WithApp(appIdentifier, SessionType.Default);

var appInstance = senseLocation.App(appIdentifier, senseSession);

then I'm applying some selections:

app.GetField("Foo").Select("Bar");

however, the selection does not get applyed on the broser side. And likewise, if I apply some selections using the browser they are not applied when querying data via the SDK.

EDIT: more precisely: sometimes nothing happens, other times the last lines causes this error on the client session:

2018-04-16 14_48_38-TEST _ Fogli - Qlik Sense.png

Which translates more or less to:

An error occurred

Connection to the QlikSense engine failed due to unspecified reasons

Refresh your browser or contact a system administrator


What am I missing here?

Tags (1)
3 Replies
Employee
Employee

Re: .NET SDK - Sharing session

Hi! FYI: There's another thread on a similar topic here: Re: Net SDK session shared with client

david7gauthier
New Contributor

Re: .NET SDK - Sharing session

Hello,

I have exactly the same problem,

Any solution?

Thanks

Employee
Employee

Re: .NET SDK - Sharing session

This might not solve your problem, but it seems that you get the behavior you are looking for if you connect using NTLM through the proxy. So this configuration should make your SDK selections visible in the client:

senseLocation.AsNtlmUserViaProxy();
var appIdentifier = ...
var senseSession = Session.WithApp(appIdentifier, SessionType.Default);
var appInstance = senseLocation.App(appIdentifier, senseSession);
Community Browser