5 Replies Latest reply: Feb 22, 2013 3:20 PM by Leonardo Osorio RSS

    DMS + TICKET + Falha ao abrir arquivo

    Paulo Vanzela

      Pessoal Bom dia, tudo certo ??

       

      Estou implementando o WebTicket via JS, realizei as configuracoes necessarias no servidor. Estou conseguindo obter o ticket

      porem ao tentar abrir um aplicativo, ocorre o erro em anexo.

       

      o meu arquivo fica no seguinte caminho.

       

      D:\Qlikview\Empresa\Produção\presidents.qvw

       

      o caminho para open document:

       

                  window.open("/QvAJAXZfc/opendoc.htm?document=Produção/presidents.qvw&ticket=" + escape(GetTicket()), "_blank");

       

      Alguem ja passou por isto ??

       


        • Re: DMS + TICKET + Falha ao abrir arquivo
          Leonardo Osorio

          Paulo tudo bom?? Eu to precisando fazer isso, mas não acho nenhum material sobre isso.

          • Re: DMS + TICKET + Falha ao abrir arquivo
            Fernando Suzuki

            Será que o problema não pode ser a acentuação da pasta "Produção"? (Apenas um palpite, nunca mexi com WebTicket...)

            • Re: DMS + TICKET + Falha ao abrir arquivo
              Leonardo Osorio

              Paulo será que você poderia me passar um código de exemplo de como passar a informação de login e senha , para o qlikview gerar o ticket ? Como saber a URL do Web Service?

                • Re: DMS + TICKET + Falha ao abrir arquivo
                  Paulo Vanzela

                  <html xmlns="http://www.w3.org/1999/xhtml">

                  <head>

                      <title>Ticket Demo</title>

                      <link rel="stylesheet" type="text/css" media="screen" href="Styles/Common.css" />

                      <link rel="stylesheet" type="text/css" media="screen" href="Styles/Intro.css" />

                      <script type="text/javascript">

                          function GetTicket() {

                                        try {

                                                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

                                      } catch (e) {

                                                try {

                                                          xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

                                                } catch (e) {

                                                          try {

                                                                    xmlhttp = new XMLHttpRequest();

                                                          } catch (e) {

                                                                    xmlhttp = false;

                                                          }

                                                }

                                      }

                                      xmlhttp.open("POST", "http://localhost/QvAjaxZfc/GetTicket.aspx?", false);

                                    xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");

                                      xmlhttp.send("<Global method='GetTicket'><UserId>"+escape(idUserName.value)+"</UserId></Global>");

                                      var TicketResponse = xmlhttp.responseXML.documentElement;

                                      return TicketResponse.getElementsByTagName('_retval_')[0].firstChild.text;

                          }

                          function ShowTicket() {

                              var ticket = GetTicket();

                              alert(ticket);

                          }

                          function GoAjax() {

                              window.open("http://localhost/QvAJAXZfc/opendoc.htm?document=Produção/Qlik - Planejamento Comercial.qvw&ticket=" + escape(GetTicket()), "_blank");

                          }

                      </script>

                      <style type="text/css">

                          button { width:80px; }

                      </style>

                  </head>

                  <body>

                      <div id="Intro">

                          <table border="1" cellspacing="0" style="border-color:#E8E8E8">

                              <tr>

                                  <td valign="top"  >

                                      <table class="subsection" width="200px" style="margin: 0">

                                          <tr class="subsectiontopic">

                                              <td colspan="2">

                                                  Select User</td>

                                          </tr>

                                          <tr>

                                              <td align="right">

                                                  User: </td>

                                              <td id="HostSlot" style="width:70%">

                                                  <input id="idUserName" type="text" style="width:98%" value=""/></td>

                                          </tr>

                                          </table>

                                  </td>

                                  <td valign="top">

                                      <table class="subsection" style="margin: 0">

                                          <tr>

                                              <td colspan="2">

                                                   </td>

                                          </tr>

                                          <tr>

                                              <td colspan="2" style="padding-left:10">

                                                   </td>

                                          </tr>

                                          <tr>

                                              <td>

                                                   </td>

                                              <td>

                                                   </td>

                                          </tr>

                                          <tr>

                                              <td>

                                                   </td>

                                              <td>

                                                   </td>

                                          </tr>

                                      </table>

                                  </td>

                                  <td valign="top">

                                      <table style="margin: 0" class="subsection">

                                          <tr class="subsectiontopic">

                                              <td colspan="2">

                                                  Open

                                              </td>

                                          </tr>

                                          <tr>

                                              <td>

                                                  <button onclick="ShowTicket()">

                                                      Ticket</button>

                                              </td>

                                              <td>

                                                  <button onclick="GoPlugin()">

                                                      Plugin</button>

                                              </td>

                                          </tr>

                                          <tr>

                   

                   

                                              <td >

                                                  <button onclick="GoAjax()">

                                                      Ajax</button>

                                              </td>

                                          </tr>

                                      </table>

                                  </td>

                              </tr>

                          </table>

                      </div>

                  <p>

                      Please Note: This example only illustrates how to request a ticket and how to

                      send the ticket in the URL and is not intended to function as an Authentication

                      solution for deployment.

                  </p>

                  <p>

                      A complete solution requires that the process requesting the ticket belongs to

                      the QlikView Administrators group and runs server-side.</p>

                  </body>

                  </html>