Qlik Community

Connectivity & Data Prep

Discussion board where members can learn more about Qlik Sense Data Connectivity.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ibrahim-maher
Contributor
Contributor

Partial Reload using app.doReload() in Qlik Sense April 2020

Hello All,

I am using 

Qlik Sense April 2020
qliksenseserver:13.72.3

I want to do Partial Reload for the data in some app. I found that I can use app.doReload() javascript merthod

https://help.qlik.com/en-US/sense-developer/April2020/Subsystems/APIs/Content/Sense_ClientAPIs/Capab...

qlik.app.doReload(qMode, qPartial, qDebug)

I created Reload Button as described in the below Video:

https://www.youtube.com/watch?v=_fgUBRndn30

uses the below in the Button on-click action:

<lui-button ng-click="app.doReload(null,Boolean(true),null)">Reload app</lui-button>

The button works properly and reload the data but not partial reload. I know this as I used IsPartialReload() in load script and ofcourse the data itself as depicted in the below load script. The variable LoadType always get Standard and the data of QlikData1.xlsx is only loaded.

 

LET loadtypevar = IF(IsPartialReload(),'Partial','Standard');

LOAD Now() AS LastLoad AutoGenerate 1;

LOAD '$(loadtypevar)' AS LoadType AutoGenerate 1;

LOAD
Region,
Sales
FROM [lib://AttachedFiles/QlikData1.xlsx]
(ooxml, embedded labels, table is Sheet1);

ADD ONLY LOAD
Region,
Sales
FROM [lib://AttachedFiles/QlikData2.xlsx]
(ooxml, embedded labels, table is Sheet1);

Labels (1)
2 Replies
did
Employee
Employee

try this:       ng-click="app.doReload(0,true,false)"
Works fine as partial reload for me 

mudanhong
Contributor II
Contributor II

I can't run the Reload Button with your both settings. But I can with setting: <lui-button ng-click="app.doReload()">Reload app</lui-button>.So how can I do PartialReload?