<?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 Re: GetClearPassword function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095961#M640771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;my collegue, sitting in front of me has no trouble reloading the exact same document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 19:41:20 GMT</pubDate>
    <dc:creator>sibrulotte</dc:creator>
    <dc:date>2016-03-04T19:41:20Z</dc:date>
    <item>
      <title>GetClearPassword function</title>
      <link>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095960#M640770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have my connection string that goes as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET STR_Connect = '[Provider=sqloledb;Data Source=$(SQLServerHostSecurite);Initial Catalog=$(SQLServerCatalogSecurite);User Id=$(SQLServerSecuriteUserId);Password=' &amp;amp; GetClearPassword('$(SQLServerSecuritePassword)', '$(CommonPath)') &amp;amp; ']';&lt;/P&gt;&lt;P&gt;CONNECT To $(STR_Connect);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly, the command line to retrieve the clear password does not execute, and Qlikview asks me for the clear password to connect to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my VB script to determine the function is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Function GetClearPassword(passw, currpath)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; strJava = """" &amp;amp; "java"" "&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; strClassPath = " -cp " &amp;amp; """" &amp;amp; currpath &amp;amp; "\;"" "&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp;&amp;nbsp; commandLineToExe=strJava &amp;amp; strClassPath &amp;amp; " HubizCryptoHelper -d " &amp;amp; passw&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; Set objFileToWrite = CreateObject("Scripting.FileSystemObject").OpenTextFile("G:\Controle financier\SysFin\DEV_Qlikview\Finances GL\documents-tableaux-bord\logclear.txt",2,true)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;objFileToWrite.WriteLine(commandLineToExe)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;objFileToWrite.Close&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;Set objFileToWrite = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; GetClearPassword= ExecuteShellProgram(commandLineToExe)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;End Function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I write to a log to make sure I have the proper CommandLineToEXE, and I do. Whatever outputs from there, I paste to cmd, and I get my clear password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the function just does not execute itself like it used to, and I don't know what changed!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 17:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095960#M640770</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2016-03-04T17:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: GetClearPassword function</title>
      <link>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095961#M640771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;my collegue, sitting in front of me has no trouble reloading the exact same document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 19:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095961#M640771</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2016-03-04T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: GetClearPassword function</title>
      <link>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095962#M640772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try executing the function from within the macro editor using the Test button. Create a testit sub and run that sub from the Test button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub TestIt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;GetClearPassword('xxx','yyy')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be easier to debug this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 23:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095962#M640772</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-03-04T23:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: GetClearPassword function</title>
      <link>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095963#M640773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good cue, &lt;/P&gt;&lt;P&gt;the function doesn't parse out correctly though. I'll try to figure out how to script it.&lt;/P&gt;&lt;P&gt;Thnaks Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 14:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetClearPassword-function/m-p/1095963#M640773</guid>
      <dc:creator>sibrulotte</dc:creator>
      <dc:date>2016-03-07T14:33:06Z</dc:date>
    </item>
  </channel>
</rss>

