<?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: How to pass userid and password to Section Access(Hiden Script) using Batch File in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356931#M132477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answered to the same exact question some time ago &lt;A _jive_internal="true" href="https://community.qlik.com/message/146259#146259"&gt;here&lt;/A&gt;. Please check the code and come back if necessary. You cannot pass the USERID by command line, rather the user must be in the section access with full permissions, as described in the post linked above. Do not use the /NoSecurity flag here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 09:48:13 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-06-18T09:48:13Z</dc:date>
    <item>
      <title>How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356930#M132476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Sir/Madam,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have a question about how to run a qlikview file using batch file (.bat file) with usrid and password pass in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;For example. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have section access like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Section&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Access&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, USERID, PASSWORD, GROUP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADMIN, A, passwordA,AD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER, B,passwordB, G1&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Section&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Application&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;STAR&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *;&lt;BR /&gt;&lt;BR /&gt;GROUP:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;GROUP, GENDER&lt;BR /&gt;AD, *&lt;BR /&gt;G1, F]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can I use Command to pass the for example User A to the QlickView file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Something Like: "C:\Program Files\QlikView\qv.exe" /R /vvUSERID = A /NoSecurity "test.qvw"??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks a lot,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vicky&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 09:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356930#M132476</guid>
      <dc:creator />
      <dc:date>2012-06-18T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356931#M132477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answered to the same exact question some time ago &lt;A _jive_internal="true" href="https://community.qlik.com/message/146259#146259"&gt;here&lt;/A&gt;. Please check the code and come back if necessary. You cannot pass the USERID by command line, rather the user must be in the section access with full permissions, as described in the post linked above. Do not use the /NoSecurity flag here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 09:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356931#M132477</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-18T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356932#M132478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer first, but our problem is, we suppose to use a .net service to copy the whole file and pass the user account in and reducing the data and send the file to the user.&lt;/P&gt;&lt;P&gt;All the process are happening on the server not related to the User Account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it could happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356932#M132478</guid>
      <dc:creator />
      <dc:date>2012-06-18T10:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356933#M132479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you are not using QlikView Server, which will do this (specially if you have a Publisher license) whenever you want to reload from command line a section access protected QlikView file you will have to add the system account that is going to execute the command into the section access, so in first place the document can be reloaded with all it's data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want, once reloaded, the document to be reduced, then again you will need to use an account that is linked to some field in section access. You will need to make some external program to make the command log into the QlikView document with a different USERID and PASSWORD, making the program entering the user name and password each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 10:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356933#M132479</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-18T10:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356934#M132480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You must include field ACCESS in table GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damián. //&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 02:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356934#M132480</guid>
      <dc:creator />
      <dc:date>2012-07-03T02:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass userid and password to Section Access(Hiden Script) using Batch File</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356935#M132481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just got the solution to use batch file for auto reloading of document having "&lt;STRONG&gt;Section Access&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Add &lt;STRONG&gt;NTNAME&lt;/STRONG&gt; in Section_Access Table / Excel file like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="438"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="64"&gt;ACCESS&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="76"&gt;USERID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="66"&gt;PASSWORD&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="95"&gt;TERRITORY&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="137"&gt;NTNAME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ADMIN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;ADMIN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;ADMIN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;USER&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;USER&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;USER&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ADMIN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;QV_IMRAN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;abcc&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;KARACHI&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;ADMIN&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;*&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;IMRANKHAN\IMRAN&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NTNAME is the Windows user who supposed to run BATCH file. TERRITORY is my city to filter data for user.&lt;/P&gt;&lt;P&gt;You can get the full user name by putting " =upper(OSUser()) " in text box at qlikview document. (snapshot is attached)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="OSUser.png" class="jive-image image-1" height="262" src="https://community.qlik.com/legacyfs/online/135040_OSUser.png" style="height: 262px; width: 312.852px;" width="313" /&gt;&lt;/P&gt;&lt;P&gt;Use below script in Load statement to upload above table (excel file) in Qlikview document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section access;&lt;/P&gt;&lt;P&gt;trace &amp;lt;&amp;lt;&amp;lt; Section Access &amp;gt;&amp;gt;&amp;gt; ;&lt;/P&gt;&lt;P&gt;Access:&lt;/P&gt;&lt;P&gt;LOAD Access as ACCESS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserID as&amp;nbsp; USERID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Password as PASSWORD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; upper(Territory) as TERRITORY_SA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NTNAME&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[QVDs\USER_RIGHTS.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is SA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trace &amp;lt;&amp;lt;&amp;lt; Section Application &amp;gt;&amp;gt;&amp;gt; ;&lt;/P&gt;&lt;P&gt;section Application;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to put check on "&lt;STRONG&gt;Initial Data Reduction based on Section Access&lt;/STRONG&gt;" and "&lt;STRONG&gt;Strict Exclusion&lt;/STRONG&gt;" under Document Properties &amp;gt; Opening tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use below script in Batch file for Auto Reloading. You can set this BATCH file into Windows Task Scheduler. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\qv.exe" /R "D:\My Data\QlikView\\POPSalesQVW.qvw"&lt;/P&gt;&lt;P&gt;Exit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 17:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-pass-userid-and-password-to-Section-Access-Hiden-Script/m-p/356935#M132481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-19T17:49:44Z</dc:date>
    </item>
  </channel>
</rss>

