Qlik Community

QlikView Documents

Documents for QlikView related information.

Refresh data without user interaction on AJAX client

Not applicable

Refresh data without user interaction on AJAX client

This solution let update data without user interaction and without reload the page, it work with v11.

Hope help.


Problem:

There may be situations where one needs to maintain a session, without user interaction and/or have automatic data refresh.
This document provides an example of a possible solution on how to solve this request using the Ajax client.

Solution:

  • Open the location of the Ajax client (C:\Program Files\QlikView\QlikView Server\QlikViewClients\QlikViewAjax)
  • Make a copy of the file opendoc.htm renaming it to opendoc_refresh.htm
  • Edit the copied file and add the following script in the <Head></Head> section:

                       <script>            

                            var int=self.setInterval(function(){RefreshData()},60000);            

                             function RefreshData()           

                                    {

                                       qva.Send();           

                                    }           

                      </script>

  • Save it


The new opendoc_refresh.htm can be applied to the AccessPoint, affecting all QlikView Documents

or a single document.

1) All AccessPoint


To set the customized opendoc_refresh.htm to be used in AccessPoint, do the following:

  • Open QMC
  • Go to System - Setup - <QlikView Webserver instance> - AccessPoint - Accesspoint Settings
  • In Client Paths, change the path for Full Browser to /QvAjaxZfc/opendoc_refresh.htm
  • Click Apply to save changes

2) Single document already published


To use the customized opendoc_refresh.htm for a single QlikView document do the following:

  • Open QMC
  • Go to Documents - User Documents - <DocumentName> - Server - Availability
  • Change the path for Full Browser to /QvAjaxZfc/opendoc_refresh.htm
  • Click Apply to save changes

3) Single document using the distribution task


To apply the customized opendoc_refresh.htm using a distribution task do the following:

  • Open QMC
  • Go to Documents - Source Documents - <TaskName> - Server - Availability
  • Change the path for Full Browser to /QvAjaxZfc/opendoc_refresh.htm
  • Click Apply to save changes
Tags (2)
Labels (2)
Comments
Partner
Partner

hello all I'm trying to install the extension in on my server server,

according to I already did it but I do not see how it works, someone could indicate to me how it is done step by step ?, this of the configurations do not know much to the QMC.


I saw stefan's link on how to configure it, but I did not succeed


by sierto I have installed the version November 2017 R2

Thank you

0 Likes
Support
Support

Hi,

This post is 5 years old... Code has changed in QV and I am betting this doesn't work anymore.

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎2013-09-10 04:35 AM
Updated by: