<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reload from accesspoint by EDX Trigger throwing Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-from-accesspoint-by-EDX-Trigger-throwing-Error/m-p/990463#M337521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam trying to reload application in IE accesspoint by Button and Macro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting attached error .&lt;/P&gt;&lt;P&gt;here is the Macro Code iam using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Sub CargoEDX()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://SERVIDOR" rel="nofollow"&gt;http://SERVIDOR&lt;/A&gt;&lt;SPAN&gt; _QLIKVIEW:4720/&lt;/SPAN&gt;&lt;SPAN class="skimlinks-unlinked"&gt;qtxs.asmx&lt;/SPAN&gt;" 'QV Server Address and URL EDX's service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;userID = "LOGIN" 'User login in target system. It must belongs to "QlikView Administrators"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;pass = "PASSWORD" 'User Password&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;doc = "Aplicaciones/Monitoreo Servidor/&lt;SPAN class="skimlinks-unlinked"&gt;WebServerPerformance.qvw&lt;/SPAN&gt;" 'Task name that it wants execute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;MsgBox "The reload starts. Please press "Accept" and wait for a minute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;MsgBox ReloadEDX(url, doc, userID, pass) 'Call to the EDX execution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Function ReloadEDX(dsURL, document, userID, pass)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Here get a ticket to call the EDX. It's because a security scheme based in double request&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Dim requestKey, xmlhttp, requestData, httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set xmlhttp = CreateObject("msxml2.xmlhttp.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked"&gt;xmlhttp.Open&lt;/SPAN&gt; "post", dsURL, False, userID, pass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestData = "&amp;lt;Global method=""GetTimeLimitedRequestKey"" /&amp;gt;" '&amp;amp; vbCrLf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked"&gt;xmlhttp.send&lt;/SPAN&gt; requestData&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set oDOM = CreateObject("MSXML2.DOMDocument.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; oDOM.LoadXML xmlhttp.responseText&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Takes ticket hash from the response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestKey = oDOM.SelectSingleNode("//GetTimeLimitedRequestKeyResult").Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Call task (EDX) for execute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; rtaExec = CallTask(requestKey, document, dsURL, userID, pass)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; If rtaExec = Null Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; If rtaExec = "Success" Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = "The reload has finished."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;'EDX call thru a HTTP POST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Function CallTask(key,task,url, usr, pasw)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set xmlhttp2 = CreateObject("msxml2.xmlhttp.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestData = "&amp;lt;Global method=""RequestEDX"" key=""" &amp;amp; key&amp;amp; """&amp;gt;&amp;lt;i_TaskIDOrTaskName&amp;gt;" &amp;amp; task&amp;amp; "&amp;lt;/i_TaskIDOrTaskName&amp;gt;&amp;lt;i_Password /&amp;gt;&amp;lt;i_VariableName /&amp;gt;&amp;lt;i_VariableValueList /&amp;gt;&amp;lt;/Global&amp;gt;" &amp;amp; vbCrLf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; xmlhttp2.Open "post", url, False, usr, pasw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; xmlhttp2.send requestData ' Send XML with service &lt;SPAN class="skimlinks-unlinked"&gt;qtxs.asmx&lt;/SPAN&gt; required data &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set oDOM2 = CreateObject("MSXML2.DOMDocument.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; oDOM2.LoadXML xmlhttp2.responseText&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; set CallTask2 = oDOM2.SelectSingleNode("//TaskStartResult")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; CallTask = "Success"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2015 08:03:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-13T08:03:37Z</dc:date>
    <item>
      <title>Reload from accesspoint by EDX Trigger throwing Error</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-from-accesspoint-by-EDX-Trigger-throwing-Error/m-p/990463#M337521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam trying to reload application in IE accesspoint by Button and Macro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam getting attached error .&lt;/P&gt;&lt;P&gt;here is the Macro Code iam using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Sub CargoEDX()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://SERVIDOR" rel="nofollow"&gt;http://SERVIDOR&lt;/A&gt;&lt;SPAN&gt; _QLIKVIEW:4720/&lt;/SPAN&gt;&lt;SPAN class="skimlinks-unlinked"&gt;qtxs.asmx&lt;/SPAN&gt;" 'QV Server Address and URL EDX's service&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;userID = "LOGIN" 'User login in target system. It must belongs to "QlikView Administrators"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;pass = "PASSWORD" 'User Password&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;doc = "Aplicaciones/Monitoreo Servidor/&lt;SPAN class="skimlinks-unlinked"&gt;WebServerPerformance.qvw&lt;/SPAN&gt;" 'Task name that it wants execute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;MsgBox "The reload starts. Please press "Accept" and wait for a minute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;MsgBox ReloadEDX(url, doc, userID, pass) 'Call to the EDX execution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Function ReloadEDX(dsURL, document, userID, pass)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Here get a ticket to call the EDX. It's because a security scheme based in double request&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Dim requestKey, xmlhttp, requestData, httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set xmlhttp = CreateObject("msxml2.xmlhttp.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked"&gt;xmlhttp.Open&lt;/SPAN&gt; "post", dsURL, False, userID, pass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestData = "&amp;lt;Global method=""GetTimeLimitedRequestKey"" /&amp;gt;" '&amp;amp; vbCrLf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked"&gt;xmlhttp.send&lt;/SPAN&gt; requestData&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set oDOM = CreateObject("MSXML2.DOMDocument.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; oDOM.LoadXML xmlhttp.responseText&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Takes ticket hash from the response&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestKey = oDOM.SelectSingleNode("//GetTimeLimitedRequestKeyResult").Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ' Call task (EDX) for execute&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; rtaExec = CallTask(requestKey, document, dsURL, userID, pass)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; If rtaExec = Null Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; If rtaExec = "Success" Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = "The reload has finished."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; ReloadEDX = httpResult&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;'EDX call thru a HTTP POST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;Function CallTask(key,task,url, usr, pasw)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set xmlhttp2 = CreateObject("msxml2.xmlhttp.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; requestData = "&amp;lt;Global method=""RequestEDX"" key=""" &amp;amp; key&amp;amp; """&amp;gt;&amp;lt;i_TaskIDOrTaskName&amp;gt;" &amp;amp; task&amp;amp; "&amp;lt;/i_TaskIDOrTaskName&amp;gt;&amp;lt;i_Password /&amp;gt;&amp;lt;i_VariableName /&amp;gt;&amp;lt;i_VariableValueList /&amp;gt;&amp;lt;/Global&amp;gt;" &amp;amp; vbCrLf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; xmlhttp2.Open "post", url, False, usr, pasw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; xmlhttp2.send requestData ' Send XML with service &lt;SPAN class="skimlinks-unlinked"&gt;qtxs.asmx&lt;/SPAN&gt; required data &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; Set oDOM2 = CreateObject("MSXML2.DOMDocument.3.0")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; oDOM2.LoadXML xmlhttp2.responseText&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; set CallTask2 = oDOM2.SelectSingleNode("//TaskStartResult")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&amp;nbsp; CallTask = "Success"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;End Function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 08:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-from-accesspoint-by-EDX-Trigger-throwing-Error/m-p/990463#M337521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T08:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reload from accesspoint by EDX Trigger throwing Error</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-from-accesspoint-by-EDX-Trigger-throwing-Error/m-p/990464#M337522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please dont't repost the same issue &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/191353"&gt;Error while reloading from accesspoint using Macro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2015 09:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-from-accesspoint-by-EDX-Trigger-throwing-Error/m-p/990464#M337522</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-11-13T09:24:05Z</dc:date>
    </item>
  </channel>
</rss>

