Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
OmarBenSalem

Reload Qlik Sense App via CMD command

Hi all,

Hope you're doing fine.

As clear in the title, I want to know if there is a way to reload a Qlik Sense App via command line?

If there is, can you please share your knowledge with me?

It's a really urgent need, hope you'll help !

Thanks,

9 Replies
OmarBenSalem
Author

Something as simple as with QlikView?

"C:\Program Files\QlikView\qv.exe" /R "C:\QlikviewApplications\app.qvw"

OmarBenSalem
Author

mto‌ , ahaahaaha‌, stalwar1‌  , swuehl,  ... anyone? please !

awhitfield
Partner - Champion
Partner - Champion

Hi Omar,

this is from an 'old' post from 2015, but appears to be still valid :

There is no command line parameters to do a reload with the regular Qlik Sense. You might however be able to write a PowerShell script that use the .NET API to do the reload for you by using the Reload method of the App class.

I may be worthwhile you just searching n the community, unless you have already done so, for more recent articles.

HTH

Best Regards.

OmarBenSalem
Author

I think I've already seen this post but still don't know how to implment such a thing?

Can you please guide me through it?

OmarBenSalem
Author

Have you seen this?

https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/EngineAPI/Content/CreatingAppLoadingData/...

The handle of the app is 1. The DoReload method is used.

The client sends:

{ "jsonrpc": "2.0", "id": 2, "method": "DoReload", "handle": 1, "params": [] }

The engine returns:

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

The app is reloaded.

Where to put this?

OmarBenSalem
Author

I found out where to do this and it works, the app has been reloaded:

Capture.PNG

Now, is there anyone who could /want to guide me on how to make this an automated task?

Imagine I have 5 applications I want to reload them each day like this but without having to do the work manually?

How to proceed?

I'm using Qlik Sense Desktop as you can see

Thank you !

OmarBenSalem
Author

OmarBenSalem
Author

bill.markham‌ , mrkachhiaimp , vinieme12 maybe?
I think that many of you are attending the Qonnections at Orlando, but I hope I'll find someone available to help with this..

Excuse how annoyingly persistent I am.. But It's really an urgent demand..

As said above, I'm able to reload a specific app usgin the Engine API explorer in the Dev-Hub:

Capture.PNG

Now, I want to do this automatically; how?

I found this:

https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/EngineAPI/Content/GettingStarted/connecti...

Its says:

After you launch Qlik Sense Desktop and log in, you can connect to the Qlik Engine API using the following URI:

ws://localhost:4848/app/

For example, using JavaScript in a browser, make the following call:

var ws = new WebSocket("ws://localhost:4848/app");

I thus thought that to connect to the Engine API explorer; I had to copy this :

var ws = new WebSocket("ws://localhost:4848/app");


Then I used the 3 JSON scripts automatically generated and made sthing like this to execute with EasyPHP:


<?php

var ws = new WebSocket("ws://localhost:4848/app");

$a={

  "handle": -1,

  "method": "GetDocList",

  "params": [],

  "outKey": -1,

  "id": 3

}

var_dump(json_decode($a));

$b={

  "method": "OpenDoc",

  "handle": -1,

  "params": [

  "C:\\Users\\BMC\\Documents\\Qlik\\Sense\\Apps\\reloadTest.qvf"

  ],

  "outKey": -1,

  "id": 2

}

var_dump(json_decode($b));

$c={

  "jsonrpc": "2.0",

  "id": 3,

  "method": "DoReload",

  "handle": 1,

  "params": [],

  "outKey": -1

}

var_dump(json_decode($c));

?>


But, obviously, I got an error :

Capture.PNG

What am I do wrong? what should I change or redo?

Is there a solution to reload many applications dynamically ?

Suppose I have 5 applications I want to reload everyday, one by one ? (I'm using Qlik Sense Desktop)

What should I do?..

Hope there still someone out there to help..

t_donnet
Partner - Creator
Partner - Creator

Did you manage to succeed?

I would like to do the same, but I don't find a correct way.

Regards