<?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 Open an App by connecting to Qlik Sense Engine API using python in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550013#M39633</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am able to connect to Qlik Sense Desktop Engine API using this below python script :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;from websocket import create_connection&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import json&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ws = create_connection("ws://localhost:4848/app/")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;data=json.dumps({&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'jsonrpc': '2.0',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'id': 2,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'method': 'DoReload',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'handle': 1,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'params': ['C:\\Users\\sbhowmik\\Documents\\Qlik\\Sense\\Apps\\Test.qvf']&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;# sort_keys=True,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#indent=4,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#separators=(',', ': ')&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Sending req...")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ws.send(data)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Sent")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Receiving...")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;result = ws.recv()&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Received '%s'" % result)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;qclosed = ws.close()&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;print("Closed '%s'" % qclosed)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The message I get in return from engine is as below :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_CREATED"}}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; Problem Statement :&lt;/STRONG&gt;&lt;EM&gt; But, the app Test.qvf does not open up AND also, I do not get any QReturn message from the Engine API . I maybe doing something wrong here. Please help.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:28:13 GMT</pubDate>
    <dc:creator>sanchayan</dc:creator>
    <dc:date>2024-11-16T06:28:13Z</dc:date>
    <item>
      <title>Open an App by connecting to Qlik Sense Engine API using python</title>
      <link>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550013#M39633</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am able to connect to Qlik Sense Desktop Engine API using this below python script :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;from websocket import create_connection&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;import json&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ws = create_connection("ws://localhost:4848/app/")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;data=json.dumps({&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'jsonrpc': '2.0',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'id': 2,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'method': 'DoReload',&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'handle': 1,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;'params': ['C:\\Users\\sbhowmik\\Documents\\Qlik\\Sense\\Apps\\Test.qvf']&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;# sort_keys=True,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#indent=4,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#separators=(',', ': ')&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Sending req...")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ws.send(data)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Sent")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Receiving...")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;result = ws.recv()&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;print("Received '%s'" % result)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;qclosed = ws.close()&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;print("Closed '%s'" % qclosed)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The message I get in return from engine is as below :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_CREATED"}}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt; Problem Statement :&lt;/STRONG&gt;&lt;EM&gt; But, the app Test.qvf does not open up AND also, I do not get any QReturn message from the Engine API . I maybe doing something wrong here. Please help.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550013#M39633</guid>
      <dc:creator>sanchayan</dc:creator>
      <dc:date>2024-11-16T06:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Open an App by connecting to Qlik Sense Engine API using python</title>
      <link>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550359#M39664</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anyone help me on this as this is quiet urgent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanchayan Bhowmik&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550359#M39664</guid>
      <dc:creator>sanchayan</dc:creator>
      <dc:date>2019-02-28T09:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Open an App by connecting to Qlik Sense Engine API using python</title>
      <link>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550483#M39673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Con&lt;FONT face="inherit"&gt;tinuously&amp;nbsp; &lt;/FONT&gt;receiving&lt;FONT face="inherit"&gt;&amp;nbsp;this Invalid Params message when connecting with Desktop engine API, even though after successful connection with API. Please look innto this :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;'{"jsonrpc":"2.0","method":"OnConnected","params":{"qSessionState":"SESSION_CREATED"}}'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'{"jsonrpc":"2.0","id":5,"error":{"code":-32602,"parameter":"Invalid handle","message":"Invalid Params"}}'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanchayan Bhowmik&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Open-an-App-by-connecting-to-Qlik-Sense-Engine-API-using-python/m-p/1550483#M39673</guid>
      <dc:creator>sanchayan</dc:creator>
      <dc:date>2019-02-28T12:58:08Z</dc:date>
    </item>
  </channel>
</rss>

