5 Replies Latest reply on Mar 30, 2015 5:27 AM by Tamas Foldi

    Can I embed views to use javascript code with viewid not view name?

    Takaya Imai

      Hi,

       

      Tableau provides simple html codes to embed views on Tableau Server into webpage like below.

      Embed Views into Webpages

       

      This has name parameter like below to determine one view.

      <param name='name' value='MyCoSales&#47;SalesScoreCard&#47;' />

       

      Can I specify one view by using view id getting from REST API like below?

      http://onlinehelp.tableau.com/v8.2/server/en-us/help.htm#rest_api_ref.htm#Query_Views_for_Workbook%3FTocPath%3DREST%2520API%7CAPI%2520Reference%7C_____14

       

      If not, how do I get view name from REST API to embed views into web page?

      REST API can returns view name as response like above but this name seems to be just view's name(I tried to use it as name parameter in javascript code for embedding but not work).