8 Replies Latest reply on Mar 5, 2013 6:23 AM by Russell Christopher

    Tableau dashboard through web application

    Prashant Ahirao

      hi,

       

      We have tableau server with us but we are not able to host our dashboard to the web application as whenever the dashboard pops up it asks for the username and password.

       

      Can someone please provide the code(ASP or ASP.NET) to get our requirement fulfilled.

       

      Please help

        • 1. Re: Tableau dashboard through web application
          Paramesh Sangangiri

          Hi Prashanth,

           

          Have you tried using "Embed Password" option while publishing the dashboard to the server?

           

          Regards,

          Paramesh

          • 2. Re: Tableau dashboard through web application
            Prashant Ahirao

            can you help me in accomplishing it

            • 3. Re: Tableau dashboard through web application
              Paramesh Sangangiri

              Hi Prashanth,

               

              Please find the screenshots attached. I'm not sure if this is what you are looking for, do post your requirement kindly to assist you further.

               

              As seen in the document the dashboard view pops up without any user credentials and also when trying to open the same in the web application view opens directly.

               

              Regards,

              Paramesh

              • 4. Re: Tableau dashboard through web application
                Prashant Ahirao

                Thanks for your reply but we are looking for some other solution.

                we are looking to integrate the dashboard in our web application and we tried to get this done using trusted authentication, but we are not able to crack it.

                 

                can u please help!

                • 5. Re: Tableau dashboard through web application
                  Paramesh Sangangiri

                  Hi Prashanth,

                   

                  You can utilize the HTML code being generated when the share option is clicked in Tableau server while viewing the dashboard. This code can be used for embedding into your web portals and also once the code is embedded the interactive session of the dashboard will still be the same. So when one accesses your web portal the image of the interactive dashboard exists. This code is mostly used for making the dashboard accessible out of the company network. Within the network you can simply access the other link. This is as per my understanding, please let me know if you are looking for something else in order to help you further.

                   

                  Regards,

                  Paramesh

                  • 6. Re: Tableau dashboard through web application
                    Russell Christopher

                    Trusted Authentication is the correct way to approach this.

                     

                    If you could be more specific about the type of trouble you're running into ("we are not able to crack it"), I think the community can give you some advice.

                     

                    If you are looking for some .NET code samples of how to generate the ticket and attach it to the URL which your pane will display, look at the "SharePoint Web Part" sample in the the following folder on your Tableau Server machine:

                     

                    \Program Files (x86)\Tableau\Tableau Server\7.0\extras\embedding\sharepoint

                     

                    Many customers take this sample code, strip away the "SharePoint stuff", and then use the remainder as a "jump start".

                     

                    Hope this helps.

                    • 7. Re: Tableau dashboard through web application
                      Prashant Ahirao

                      Thanks Russell for your inputs.

                       

                      We are able to generate the unique id with the code mentioned at the bottom. However we are struggling to pass that unique_id into the url string of the application.

                       

                      EG: If we get the unique_id as "177112454" then if we type the url in browser as

                      "http://servername:8000/trusted/177112454/views/sales"

                      It displays the required dashboard without prompting for any credentials.

                       

                      Unique_id works for that session only however we need a code which will automatically get the unique_id and pass it in the code each time we click on the link in the application.

                       

                      The requirement is to have a link in web page(ASP) to open up the dashboard by passing the unique id dynamically for each session.

                       

                      Appreciate if you can help with a sample code.

                       

                      Code used to get the unique id:

                      <html>

                      <head>

                      <title>Trusted Ticket Requester</title>

                      <script type="text/javascript">

                      response.

                      function submitForm(){document.getElementById('form1').action = document.getElementById('server').value + "/trusted";}

                      </script>                     

                          <style type="text/css">

                              .style1    {width: 100%;}

                              .style2   {width: 429px;}

                              #server  { width: 254px; }

                          </style>

                      </head>

                      <body>

                      <H3>Trusted Ticketer</H3>

                      <form method="POST" id="form1" onSubmit="submitForm()">

                          <table class="style1">

                              <tr>

                                  <td class="style2">

                                      Username:</td>

                                  <td>

                                      <input type="text" name="username" value="" /></td>

                              </tr>

                              <tr>

                                  <td class="style2">

                                      Server: </td>

                                  <td>

                                      <input type="text" id="server" name="server" value="http://" /></td>

                              </tr>

                              <tr>

                                  <td class="style2">

                                      Client IP (optional):</td>

                                  <td>

                                       <input type="text" id="client_ip" name="client_ip" value="" /></td>

                              </tr>

                              <tr>

                                  <td class="style2">

                                      Site: (leave blank for Default site, else NameOfSite if using sites)</td>

                                  <td>

                                      <input type="text" id="target_site" name="target_site" value="" /></td>

                              </tr>

                              <tr>

                                  <td class="style2">

                                              <input type="submit" name="submittable" value="Go" /></td>

                                  <td>

                                       </td>

                              </tr>

                          </table>

                      </form>

                      <H4>Be sure to add your IP as a Trusted IP address to the server</H4>

                      </body>

                      </html>

                      • 8. Re: Tableau dashboard through web application
                        Russell Christopher

                        OK. Tableau doesn't provide code to automatically generate a ticket for you because there are so many different web platforms and languages out there. It is up to the web platform developer to understand how to dynamically post a request and deal with the response on their platform.  People do this with PHP, ASP.NET, etc. etc. Writing that code is up to you.

                         

                        However, the sample I pointed to in my previous post DOES have some pretty good C# in it that you can "steal" for this purpose.

                         

                        Hope this helps a little?