自动刷新Tableau在线仪表板使用”Auto refresh” Chrome扩展

huangapple go评论66阅读模式
英文:

Auto refresh Tableau online dashboard using "Auto refresh" Chrome extension

问题

我已经在Tableau Online中创建了一个视图,使用实时连接。我希望每隔10分钟自动刷新页面。只有通过在Tableau Online的仪表板/视图中手动按下刷新按钮才能完成,刷新浏览器页面不会刷新仪表板。我看到了一个Tableau讨论,其中提到了以下提示:“提示:要持续刷新视图,在网页的部分中添加,其中#是刷新之间的秒数。”如何做到这一点?Tableau Online可以实现吗?

作为第二个选项,我可以向仪表板URL添加参数来解决此问题。我在这个讨论中看到了这一点:https://community.tableau.com/thread/289924至少要在URL中添加部分“:refresh=yes”。由于我在这个领域完全不了解,我无法解决这个问题。我需要在URL的哪个位置以及如何添加这个参数,以使其永久生效?

我也愿意听取其他建议。

英文:

I've created a view in tableau online using a live connection. I want to the page to refresh automaticly every 10 minutes. It can only be done by pressing manually the refresh button in the dashboard/view in tableau online, refreshing the browser page wont refresh the dashboard. I saw a tableau discussion with this tip: "Tip: To continually refresh a view, in the <head> section of the web page, add <meta http-equiv="refresh" content="#">, where # is the number of seconds between refreshes." How can I do this? Can this be done in tableau online?

As a second option I can add parameters to the dashboard URL to fix this issue. I saw this in this discussion: https://community.tableau.com/thread/289924 At least the part ":refresh=yes" had to be added to the URL. Since I'm totally unknown in this area I was not able to fix this. Where and how I need to add this to the url so this will permantly works?

I'm also open for other suggestions.

答案1

得分: 2

有几种方法可以处理这个问题,你选择哪一种取决于你的情况、规模和可用资源。

选项1:使用元标签嵌入

这是你描述的第一种选项。为了实现这一点,你需要将仪表板嵌入到自己的独立自定义网页中。你可以从任何仪表板的分享按钮获取嵌入代码,并可以使用参数和JavaScript 嵌入 API进行自定义。你提到的元标签将放置在嵌入仪表板的自定义网页的头部。所以它会看起来像这样:

<html>
  <head>
    <meta http-equiv="refresh" content="600">
  </head>
  <body>
    <script>
      // 仪表板的嵌入代码在此处
    </script>
  </body>
</html>

你还需要确保包括你提到的 :refresh 标签,以便始终获取最新的数据。

优点:任何人都可以打开页面,自动刷新的仪表板无需安装任何东西。

缺点:你需要拥有某种形式的 web 服务器来托管你的自定义页面。需要一些编码。难以扩展仪表板的数量。

选项2:Chrome 扩展

这是你描述的第二种选项。在这种情况下,浏览器中的 Chrome 扩展会为你刷新页面。这意味着你不需要自己的独立网页。然而,它只会在你安装和设置扩展的浏览器上工作。在Chrome 网上应用店中似乎有一些自动刷新扩展可供选择。你需要配置它们以刷新页面,同样要确保在 URL 中包含 :refresh 标签。

优点:不需要独立的 web 服务器。无需编码。适用于多个仪表板的扩展。

缺点:仅适用于安装了 Chrome 扩展的浏览器。

选项3:仪表板扩展

你没有提到的另一个选项,但我认为是最好的选择,是使用仪表板扩展。仪表板扩展是可以直接添加到仪表板中的 Web 应用程序。我们目前在扩展库中有一个专门用于此目的的自动刷新扩展。下载后,只需打开仪表板,拖入一个新的扩展对象,选择下载的文件,并配置为10分钟。

优点:不需要独立的 web 服务器。无需编码。适用于多个仪表板的扩展。任何人都可以打开仪表板,并自动刷新,无需安装任何东西。

缺点:自动刷新仅适用于2019.4版本及更高版本。

希望对你有所帮助!

英文:

There are a couple of ways you could approach this, which one you choose will depend on your situation, scale, and available resources.

Option 1: Embed with meta tag

This is the first option you were describing. In order to do this, you will need to embed your dashboard into your own custom separate webpage. You can get the embed code from the share button on any dashboard and can customize it using parameters and the JavaScript Embedding API. The meta tag you mentioned would then go in the header of your custom webpage where you are embedding the dashboard. So it would look something like this:

<html>
  <head>
    <meta http-equiv="refresh" content="600">
  </head>
  <body>
    <script>
      // Your embed code from the dashboard here
    </script>
  </body>
</html>

You would also want to make sure to include the :refresh tag you mentioned so you always get the latest data.

Pros: Anyone can open the page and have an auto-refreshing dashboard without installing anything.

Cons: You will need to have some form of a webserver to host your custom page. Requires some coding. Hard to scale up the number of dashboards.

Option 2: Chrome Extension

This is the second option you were describing. In this case, a chrome extension in the browser is refreshing the page for you. That means you don't need your own separate webpage. However, it will only work on the browser you install and setup the extension on. It looks like there are a couple of auto-refresh extensions in the chrome web store you can choose from. You would need to configure them to refresh the page, again make sure to include the :refresh tag on the url.

Pros: Don't need a separate webserver. No coding. Easy to scale for multiple dashboards.

Cons: Only works for the browser that the chrome extension is installed on.

Option 3: Dashboard extension

One option you didn't mention but I think is the best would be to use a Dashboard Extension. Dashboard extensions are web apps that you can bring directly into the dashboard. We currently have an Auto-Refresh extension in the gallery built for just this purpose. Once you've downloaded it simply open your dashboard, drag in a new extension object, select the downloaded file and configure for 10 minutes.

Pros: Don't need a separate webserver. No coding. Easy to scale for multiple dashboards. Anyone can open the dashboard and have it auto-refreshing without installing anything.

Cons: Auto-Refresh only works with 2019.4+.

Hope this helps!

huangapple
  • 本文由 发表于 2020年1月6日 22:27:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/59613817.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定