Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Announcements
Qlik Analytics Tour 2020 Online. Begins August 10th. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner
Partner

Command Line / Button , Reload Qlik Sense APP

Hi to everyone ,

I need help about the command line for reload an APP Qlik sense in enterprise environment , if it's not possible I think a workaround with a Button "Reload" inside an HTML page.

I have made this script  but without success:

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>RELOAD QLIK</title>
</head>
<body>
<h1>RELOAD QLIK</h1>
<button type="button" onclick="testqs()">
clik to start </button>
<div id="status"> Ready.. </div>
<script>
function testqs()
{
var reloadtest="ws://185.xx.xxx.44:4848/app/";
var ws=new WebSocket(reloadtest);
var socketStatus= document.getElementById('status');
////////////////////////// OPEN APP ///////////////////////////
//"D:\\QlikShare\\Apps\\60d83ebf-3aab-4cea-a76d-e6a3c2fcc228"

var opendoc=
{
"method":"OpenDoc",
"handle": -1,
"params": {
"qDocName":"60d83ebf-3aab-4cea-a76d-e6a3c2fcc228"
},
"outKey":-1,
"id":1,
type:"open"
};

////////////////////////// RELOAD APP ///////////////////////////
var doreload=
{
"handle": 1,
"method":"DoReload",
"params":{
"qmode":0,
"qPartial": false,
"qDebug": false
},
"jsonrpc":"2.0",
"id":2,
type:"run"
};


////////////////////////// SAVE APP ///////////////////////////
var dosave=
{
"handle": 1,
"method":"DoSave",
"params":{
"qFileName":"60d83ebf-3aab-4cea-a76d-e6a3c2fcc228"
},
"id":3,
type:"save"
};

}
</script>
</body>
</html>

 

ERROR:

ReloadQlik.html:15 WebSocket connection to 'ws://185.xx.xxx.44:4848/app/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT

 

P.s. I have added in White List the server address  185.xx.xxx.44

Please, someone Can help me ??  
THANKS !!

 

Tags (3)
1 Reply
Highlighted
Support
Support

Re: Command Line / Button , Reload Qlik Sense APP

Could you please run the test in this article https://support.qlik.com/articles/000038601 to rule out a websocket issue in your environment?