<?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: Section access challenges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528765#M197673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter and Gysbert for your insightful responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 15:54:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-30T15:54:33Z</dc:date>
    <item>
      <title>Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528762#M197670</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;First, let me say that I don't have a lot of QlikView experiences. So the challenges and my questions below may be because of my lack of understanding, or something that can be (or have been) solved with some simple solutions. I tried to do my homework upfront, and searched in this community as well as on the net, but didn't find anything that solved my issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to accomplish:&lt;/P&gt;&lt;P&gt;I have a .net app that loads QlikView OCX, and allows user to create QVW files which they can open later.&lt;/P&gt;&lt;P&gt;I need to find a solution where if a QVW is created from my app, it can not be opened/used by other apps that may also contain QlikView OCX, or even the stand-alone QlikView installation itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first thought was to create a section access that only my app knows, so if user tries to open that QVW file in other app, QlikView will challenge the user with username/password, and stop the access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issues:&lt;/P&gt;&lt;P&gt;1. We want to create a unique username/password for each of our users, and stick them in the section access in the hidden script. However, there's no automation API that allows us to create a hidden script section, so we can't dynamically generate a unique section access code at run-time.&lt;/P&gt;&lt;P&gt;2. The next best thing then is to have section access be based on some external data source (like a text file, which we can generate at run-time). However, the load statement does not seem to be executed every time the QVW is opened. Attached is a simple QVW that illustrate this. The credential in the section access from the previous script reload was "dba/sql" (no quotes), but since the last reload, I have changed the section access code to have the new credential to be "dba1/sql1" (no quotes). However, when QlikView opens this QVW, dba/sql is still valid, and not dba1/sql1.&lt;/P&gt;&lt;P&gt;3. It also seems that once a QVW is opened in an instance of QlikView, the subsequent opening of the same QVW does not trigger section access check, even if there have been other QVWs opened in between. Only when QlikView shuts down in between two openings of the same QVW will cause QlikView to prompt for user credential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thought or suggestion would be very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy holidays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 19:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528762#M197670</guid>
      <dc:creator />
      <dc:date>2013-12-26T19:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528763#M197671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You could put code in the hidden script to generate user names and passwords. But it's easier to use an external data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The Section Access table is loaded when the document is reloaded. If you use an external data source for section access and you edit that external data source then you need to reload your qlikview document to apply the changes to your section access table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. That's a user preference. On the General tab uncheck the option &lt;EM&gt;Remember Login Credentials Until Qlikview Exits&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 07:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528763#M197671</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-27T07:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528764#M197672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon creating a new user-specific QVW, your .net application can set the value of variables before performing a reload and storing the QVW file. Use those variables in your Section Access table to define a single user, like in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Section Access;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SA_Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ACCESS, USERID, PASSWORD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;USER, $(vUserName), $(vPassword)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Section Application;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this case, set variables vUserName and vPassword to specific values before storing the document. The code can be builtin upfront in the hidden script in your source document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Gysbert says, you'll always need to perform a reload before any change to SA security becomes active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 10:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528764#M197672</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2013-12-27T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528765#M197673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter and Gysbert for your insightful responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528765#M197673</guid>
      <dc:creator />
      <dc:date>2013-12-30T15:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528766#M197674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, I kept thinking it would be literally passing $(vPassword) because it wasn't in gray - doh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 21:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528766#M197674</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2015-09-14T21:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Section access challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528767#M197675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the magic of Dollar Sign Expansion: DSE happens anyway, whatever you write between the (alledged) start of a statement and the terminating semicolon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To show you what I mean, the statement above could be written (allow me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;SET STATEMENT_LOAD = LOAD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;SET LOAD_SOURCE_INLINE = INLINE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;SET LEFT_BRACKET = [;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;SET RIGHT_BRACKET = ];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;SA_Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;$(STATEMENT_LOAD) * $(LOAD_SOURCE_INLINE) $(LEFT_BRACKET)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;ACCESS, USERID, PASSWORD&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;USER, $(vUserName), $(vPassword)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;$(RIGHT_BRACKET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;At first sight, the script engine wouldn't know what to make of this piece of junk. But after DSE...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 06:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Section-access-challenges/m-p/528767#M197675</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-15T06:37:12Z</dc:date>
    </item>
  </channel>
</rss>

