admin管理员组文章数量:1287583
This is my first time to use Tableau and I want to embed it into Odoo 18 with custom module
This is my code for embed the Tableau on odoo 18 using javascript, but when want to catch the Authorization errors, I got Uncaught ReferenceError: TableauEventType is not defined
<?xml version="1.0" encoding="UTF-8" ?>
<template>
<t t-name="tsel_tableau.TableauDashboard">
<t t-set="title">Tableau Dashboard</t>
<div class="container mt-4">
<script type="module" src=".embedding.3.latest.min.js"></script>
<script type="module" src=".embedding.3.1.0.min.js"></script>
<tableau-viz id="tableauViz"
src=";
token="MY_TOKEN"
onVizLoadError="handleLoadError">
</tableau-viz>
<script>
function viz(){
console.log(1);
const tableauViz = document.getElementById('tableauViz');
tableauViz.addEventListener(TableauEventType.VizLoadError, handleLoadError);
function handleLoadError(e){
console.log(2);
}
}
viz();
</script>
</div>
</t>
</template>
This is i got the error
I have read Tableau documentation, and follow the instruction but still not work. This is link doc : .html#improved-error-handling-for-connected-apps
本文标签:
版权声明:本文标题:javascript - How to fix Uncaught ReferenceError: TableauEventType is not defined when embedded Tableau cloud - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741230715a2362057.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论