<?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: Managing Hidden Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165354#M633498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would putting the script in an external file and including it with &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="script_token" data-mc-conditions="Targets.NotToTranslate" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;$(Must_Include=&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;filename&lt;/SPAN&gt;&lt;SPAN class="script_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;) &lt;/SPAN&gt;do the trick? That should prevent your users from seeing or modifying it. Or do the see execution of the script as well and have access to the log file? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 17:04:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-06-09T17:04:16Z</dc:date>
    <item>
      <title>Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165353#M633497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for suggestions / experience / ideas about how to manage 'hidden scripts' specifically during and when moving from dev to production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've got them in one of our apps so that when deployed customers cannot see or edit them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, during development it's a real pain when you want to edit them because every time you have to enter the password. And of course you get no logging information for debugging purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we're thinking of right now is to have nothing hidden during development so that we have easy access to the scripts for editing and debugging. As part of our 'go live' process we'll move all of the scripts into one/more 'hidden' tabs. (If anyone has an automated way of doing that I'll be very grateful).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;Has anyone else come across the same situation?&lt;/P&gt;&lt;P&gt;How do you handle it?&lt;/P&gt;&lt;P&gt;Do my ideas above make sense or am I going to cause myself lots of problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're currently using QV 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 16:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165353#M633497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T16:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165354#M633498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would putting the script in an external file and including it with &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="script_token" data-mc-conditions="Targets.NotToTranslate" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;$(Must_Include=&lt;/SPAN&gt;&lt;SPAN class="bnf_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #0f0f0f;"&gt;filename&lt;/SPAN&gt;&lt;SPAN class="script_token" style="font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-weight: bold; font-size: 12px; color: #0f0f0f;"&gt;) &lt;/SPAN&gt;do the trick? That should prevent your users from seeing or modifying it. Or do the see execution of the script as well and have access to the log file? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165354#M633498</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-06-09T17:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165355#M633499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think using 'must_include' will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're trying to prevent customers from seeing the logic that is held in the load script, this is part of our IP and just as you would not give customers the source code for a product, we don't intend giving them access to the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 17:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165355#M633499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-09T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165356#M633500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could imagine that this could be done per macro-API. There are the methods GetCovertScript and GetCovertScript available which are unfortunately not further documented but the following code returned the hidden script which is protected with the password "isHidden":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox(ActiveDocument.GetCovertScript("IsHidden"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;therefore I think it could be set, too although within a first try it didn't worked for me because anything with the syntax wasn't right - but I think if you played a while you will find the correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/127493_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 05:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165356#M633500</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-10T05:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165357#M633501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for that, that works a treat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the SetCovertScript api call I can now:&lt;/P&gt;&lt;P&gt;- have all of my load scripts as 'unhidden' during development,&lt;/P&gt;&lt;P&gt;- they will be stored in external files which means that I can put them under source control,&lt;/P&gt;&lt;P&gt;- during my 'go live' process, I can run a program which concatenates all of my scripts, in order, into a single 'script' and then set it as the hidden script in my deployed qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of things for anyone else who wants to try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The api call sequence that I used for this are:&lt;/P&gt;&lt;P&gt;OpenDocEx&amp;nbsp; - on this call it doesn't seem to matter which 'accessmode' I used, they all allowed me to do what I wanted.&lt;/P&gt;&lt;P&gt;SetCovertScript &lt;/P&gt;&lt;P&gt;Save&lt;/P&gt;&lt;P&gt;CloseDoc&lt;/P&gt;&lt;P&gt;Quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to issue multiple calls to SetCovertScript with the intention of placing my scripts into multiple tabs. This didn't work for me. After using the api calls the only script that was loaded was the one from the final call. For me this is not a problem and is why in the steps that I described above I included "concatenates all of my scripts, in order,".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script that is loaded can contain a tab name in it (on the first line) in the form of:&lt;/P&gt;&lt;P&gt;///$tab Secret Load Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is present then the tab will be named as shown ("Secret Load Script").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the script doesn't have a '$tab' then it will be called 'Hidden Script'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this proves useful to someone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 09:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165357#M633501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-10T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Hidden Script</title>
      <link>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165358#M633502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;any idea to manage hidden script in Sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 21:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Managing-Hidden-Script/m-p/1165358#M633502</guid>
      <dc:creator />
      <dc:date>2016-06-10T21:21:35Z</dc:date>
    </item>
  </channel>
</rss>

