Yeah it errors on the tableau.submit() line in JS. I've been googling on this for a while now. I found the article here that shows wrapping the submit call in a setTimeout. So I duplicated that and getting same error. Why is the WDC code not ever calling tableau.init()?
Is this method for building a WDC deprecated? If so, where can I find current code examples?
Thank you! :-)
Ok I see now what you have to do...
You cannot run the WDC html page outside (don't try to open it in Chrome or IE) Tableau WDC connector UI. When you enter your WDC url inside the Tableau Desktop WDC UI, hit enter, then you see your WDC html, click your button, then it works.
Thanks for the update, Mark