12 Replies Latest reply on Oct 11, 2015 4:25 PM by Karen Huang

    Function refreshDataAsync() does not refresh the view

    Karen Huang

      Hi,

       

      Got a task to refresh a real-time sheet  which can be viewed via browser. Googled the Internet and copied a number of scripts but none works on my pc. I have the following codes in the script:

       

      ...

        function RefreshViz(){
          alert("test");
          viz.refreshDataAsync();  
          }

      ...

       

      The function alert() works as a dialog box pops up:

       

       

      However refreshDataAsync() does not seem to work as the view doesn't get updated.

       

      This morning I stopped the Tableau service for some other reason whilst still having the htm file with the javascript running on Chrome. And I got this:

       

       

      It seems a request was sent to the server! Then why didn't the view get updated? I tried on IE8, Chrome 45 and Firefox22.

       

      Any idea would be appreciated.

       

      Karen