Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DMS + TICKET + Falha ao abrir arquivo

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 ??


5 Replies
Not applicable
Author

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

fosuzuki
Partner - Specialist III
Partner - Specialist III

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

Not applicable
Author

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?

Not applicable
Author

<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>

Not applicable
Author

Entendiii....Vou tentar fazer aqui e te aviso dos resultados que eu tiver