[英]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.