[英]How can I get Tableau Dashboard objects other than the active one using Tableau Javascript API?
[英]Can we edit and update tableau data using JavaScript API
我想知道我們是否可以使用Tableau JavaScript API編輯數據並更新數據。 我嘗試過但沒有任何功能來完成這項工作,現在我只能更改視圖,下載數據,過濾器數據,自定義視圖。 如果可以使用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.