<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Net SDK session shared with client in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337491#M7599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Did you ever get this to work?&amp;nbsp; I'm trying to figure out the best way to connect to an app repeated times without hitting the 5 logon limit.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 23:27:58 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-05-23T23:27:58Z</dc:date>
    <item>
      <title>Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337488#M7596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a .Net application that apply a specific filter value for a field programmatically.&lt;/P&gt;&lt;P&gt;I supposed to see the same filter applyed in my browser client session, but it doesen't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replicate the same behaviour that happens when you have the same app opened in two different browser and you apply a selection in one browser. You can see the same selection replicated to second browser (same session called "Default Session").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code to connect via proxy (i tryed direct access to engine too):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14945941067057276 jive_text_macro" jivemacro_uid="_14945941067057276" modifiedtitle="true"&gt;
&lt;P&gt;var uri = new Uri($"{senseServerUri}");&lt;/P&gt;
&lt;P&gt;location = Qlik.Engine.Location.FromUri(uri);&lt;/P&gt;
&lt;P&gt;var proxyUsesSSL = senseServerUri.ToLower().Contains("https:");&lt;/P&gt;
&lt;P&gt;location.AsNtlmUserViaProxy(proxyUsesSsl: proxyUsesSSL, certificateValidation: false, loginCredentials: new NetworkCredential(userDirectory + "\\" + userName, password));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment i tryed a lot of different approach to open the App and working with this one. &lt;/P&gt;&lt;P&gt;In this sample we use the default session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14945944554357840 jive_text_macro" jivemacro_uid="_14945944554357840"&gt;
&lt;P&gt;using (var app = location.App(aI, session: defaultSession, noVersionCheck: true))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var field = app.GetField(fieldName);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = field.Select(value, true);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know why this selection is not visible in the browser if I open from hub the same App (while .Net application is running).&lt;/P&gt;&lt;P&gt;By the way i am sure that the selection is applyed because if I create a snapshot (via Net Sdk) after selection I can see the snapshotted object (after closing all the browser and sessions) with the right filter applyed. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 13:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337488#M7596</guid>
      <dc:creator />
      <dc:date>2017-05-12T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337489#M7597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabio,&lt;/P&gt;&lt;P&gt;Are you using Session to attach to the engine session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try the following:&lt;/P&gt;&lt;P&gt;ISession _session = Session.WithApp(aI, SessionType.Default);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use _session when opening the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mattias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 11:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337489#M7597</guid>
      <dc:creator>mow</dc:creator>
      <dc:date>2017-05-15T11:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337490#M7598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mattias,&lt;/P&gt;&lt;P&gt;yes I am using the default session (I omitted the session assignment in previous post sorry) at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14948519032521487 jive_text_macro" jivemacro_uid="_14948519032521487" modifiedtitle="true"&gt;
&lt;P&gt;var aI = location.AppWithId(qlikSenseAppId, noVersionCheck: true);&amp;nbsp; &lt;/P&gt;
&lt;P&gt;var defaultSession = Session.WithApp(aI, SessionType.Default);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the custom session too (adding the parameter '&amp;amp;identity=MyCustomSession' in the 'Single' url) but it doesen't seem to share the same engine session:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1494852033206325 jive_text_macro" jivemacro_uid="_1494852033206325"&gt;
&lt;P&gt;var customAppSession = Session.WithApp(aI, "MyCustomSession");&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 12:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337490#M7598</guid>
      <dc:creator />
      <dc:date>2017-05-15T12:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337491#M7599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Did you ever get this to work?&amp;nbsp; I'm trying to figure out the best way to connect to an app repeated times without hitting the 5 logon limit.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 23:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337491#M7599</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-05-23T23:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337492#M7600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see you are adding network credentials to your AsNtlmUserViaProxy call. Are you sure you end up with the same user as the one you get when you go through a browser?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that it looks correct to me. I seem to remember that there was an issue with the session matching in some older version of Qlik Sense though, so just to be sure: which version are you running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, for reference, here is the exact code I used for connecting to the client session during my talk at Qonnections this year: &lt;A href="https://github.com/kolsrud/qonnections2018_demo/blob/master/QonnectionsDemo/Program.cs" title="https://github.com/kolsrud/qonnections2018_demo/blob/master/QonnectionsDemo/Program.cs"&gt;https://github.com/kolsrud/qonnections2018_demo/blob/master/QonnectionsDemo/Program.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That program connects to a desktop and the selection performed at the last line is reflected in the Qlik Sense client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 08:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337492#M7600</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-05-25T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Net SDK session shared with client</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337493#M7601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there are any ways around that I'm afraid. Other than keeping the WebSocket open that is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 08:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Net-SDK-session-shared-with-client/m-p/1337493#M7601</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-05-25T08:51:15Z</dc:date>
    </item>
  </channel>
</rss>

