Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
david_kesselhei
Contributor III
Contributor III

python: doReload not working

Hi,

 

I am using th method described here to connect to the Qlik Engine with python3.6.

 

Connecting and opening the app works and apparently even doReload() works, but I can't see the reloaded data in my app in Qlik Sense Enterprise.

On connecting the server answers with this:

{"jsonrpc":"2.0",
"method":"OnConnected",
"params":{"qSessionState":"SESSION_CREATED"}
}

After connecting I send the request to open the app:

{
              "method": "OpenDoc",
              "handle": -1,
              "params": [
                      "ff47d159-bc96-4140-a34d-c8c6a4b355b7"
              ],
              "outKey": -1,
              "id": 2
      }

To which the server replies with:

{"jsonrpc":"2.0",
"id":2,
"result":{"qReturn":{"qType":"Doc",
		     "qHandle":1,
		     "qGenericId":"ff47d159-bc96-4140-a34d-c8c6a4b355b7"
		     }
		},
"change":[1]}

So far so good. I send this to reload the app:

      {
              "handle": 1,
              "method": "DoReload",
              "params": {
                      "qMode": 0,
                      "qPartial": false,
                      "qDebug": false
              },
              "outKey": -1,
              "id": 3
      }

and the servers answer looks ok to me:

{"jsonrpc":"2.0",
"id":3,
"result":{"qReturn":true},
"change":[1]}

The thing is though that the app isn't reloaded when I open it. To monitor this I have a text-field that shows ReloadTime().

It gets updated when I use the engine-api-explorer but not when I do it from python.

 

Can anybody see where the error is? Thanks in advance!

 

 

 

 

 

2 Replies
david_kesselhei
Contributor III
Contributor III
Author

Bump

 

Anybody having any idea what I am doing wrong?

PradeepK
Creator II
Creator II

Use DoSave method after reloading