简体   繁体   English

我们可以使用JavaScript API编辑和更新Tableau数据吗

[英]Can we edit and update tableau data using JavaScript API

I want to know can we edit data and update data using Tableau JavaScript API. 我想知道我们是否可以使用Tableau JavaScript API编辑数据并更新数据。 I tried but didn't get any function to do this work, for now I can only change view ,download data, filter data, customized view. 我尝试过但没有任何功能来完成这项工作,现在我只能更改视图,下载数据,过滤器数据,自定义视图。 If edit data can be done using JavaScript API ,please share any tutorial on this. 如果可以使用JavaScript API完成编辑数据,请共享与此有关的任何教程。

try like this:-

<title>getData() Basic Example</title>
        <script type="text/javascript" src="https://public.tableau.com/javascripts/api/tableau-2.min.js"></script>
        <script type="text/javascript">
            var viz, sheet, table;

            function initViz() {
        var containerDiv = document.getElementById("vizContainer"),
                    url = "http://public.tableau.com/views/RegionalSampleWorkbook/Storms",
                    options = {
                        hideTabs: true,
                        hideToolbar: true,
                        onFirstInteractive: function () {
                            document.getElementById('getData').disabled = false; // Enable our button
                        }
                    };
                viz = new tableau.Viz(containerDiv, url, options);
            }

<body onload="initViz();">
        <div class="page-header">
            <h1>getData() Basic Example</h1>
            <p>Click the "Get Data" button to get underlying data for the viz.</p>
            <button id="getData" onclick="getUnderlyingData()" class="btn" disabled>Get Data</button>
        </div>
        <div id="vizContainer" style="width:600px; height:600px;"></div>
        <div id="dataTarget"></div>
    </body>  

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM