Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

xufei123
Valued Contributor

Reload Widget doesn't work in Sense 3.2

Hi,

I am creating a Reload button in Sense 3.2 widget.

If I only do reload like below it is working:

<p>

<b>{{settings.TextAboveButton}}</b>

<br>

  <lui-button ng-click="app.doReload()">{{settings.TextInButton}}</lui-button>

<br>

</p>

However the reloaded data is not saved. The data will change back to the old in several seconds.

I want to reload and save the data so I copied the script from the Qlik help page at doSave method ‒ Qlik Sense

and change the widget script to:

<p>
<b>{{settings.TextAboveButton}}</b>
<br>
  <lui-button ng-click="
   app.doReload().then(function(){
    app.doSave();
   })
  ">{{settings.TextInButton}}</lui-button>
<br>
</p>

It doesn't even reload the data. Does anyone know how to make the script work for reload and save?

Thank you very much!

Fei

Community Browser