<?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 Publisher Authorization + Loop Field in Document in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Publisher-Authorization-Loop-Field-in-Document/m-p/741213#M264746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will start be stating my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expense management dashboard&amp;nbsp; file that I want to split by users (NTNAMES) and cost center (department).&amp;nbsp; each user can see his cost center.&amp;nbsp; some users can see more than one cost center and other users can see all the cost centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my first Idea was to use file level section access but I decided against it because cost center assignment can change from month to month although rarely happen,I don't want to tinker with QVW or excel sheets. I prefer a centralized solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-in the QVW file I included the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Section Access;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ACCESS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; UPPER(NTNAME) as NTNAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [COST CENTER]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://XXXX:4780/QMS/AuthTable" rel="nofollow"&gt;http://XXXX:4780/QMS/AuthTable&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, utf8, embedded labels, table is CostCenterAssignment);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Section Application;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-in Source Documents I created a new task then Reduce--&amp;gt;Reduce By Field Value&lt;/P&gt;&lt;P&gt;document name:&amp;nbsp; &lt;STRONG&gt;%SourceDocumentName%_%DocumentField,NTNAME%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- loop and Reduce: By Field Name and had selected NTNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4- Distribute: Loop Field in Document: I selected NTNAME and SAM Account Name and set my target to my qlikview server and user document folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I went to User -&amp;gt; Section Access Management and I created a new section access table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NTNAME&amp;nbsp;&amp;nbsp;&amp;nbsp; ACESS&amp;nbsp;&amp;nbsp;&amp;nbsp; COST CENTER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER1&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER2&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER3&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ALL&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ran the task and it generated 3 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file for users 1 and 2 are fine. but user 3 can't be open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my questions:&lt;/P&gt;&lt;P&gt;1- is this the best was to achieve my goal?&lt;/P&gt;&lt;P&gt;2- &lt;STRONG&gt;Section Access; &lt;/STRONG&gt; line is comment it out, if I enable it then the task fails, why?&lt;/P&gt;&lt;P&gt;3- the &lt;STRONG&gt;&amp;lt;ALL&amp;gt; &lt;/STRONG&gt; does not seem to be working, how can I associate a user to all cost centers? is there a way I can use masking or wild character like * or %?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 13:31:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-06T13:31:43Z</dc:date>
    <item>
      <title>Publisher Authorization + Loop Field in Document</title>
      <link>https://community.qlik.com/t5/QlikView/Publisher-Authorization-Loop-Field-in-Document/m-p/741213#M264746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will start be stating my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expense management dashboard&amp;nbsp; file that I want to split by users (NTNAMES) and cost center (department).&amp;nbsp; each user can see his cost center.&amp;nbsp; some users can see more than one cost center and other users can see all the cost centers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my first Idea was to use file level section access but I decided against it because cost center assignment can change from month to month although rarely happen,I don't want to tinker with QVW or excel sheets. I prefer a centralized solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-in the QVW file I included the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Section Access;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ACCESS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; UPPER(NTNAME) as NTNAME, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [COST CENTER]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://XXXX:4780/QMS/AuthTable" rel="nofollow"&gt;http://XXXX:4780/QMS/AuthTable&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, utf8, embedded labels, table is CostCenterAssignment);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Section Application;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2-in Source Documents I created a new task then Reduce--&amp;gt;Reduce By Field Value&lt;/P&gt;&lt;P&gt;document name:&amp;nbsp; &lt;STRONG&gt;%SourceDocumentName%_%DocumentField,NTNAME%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3- loop and Reduce: By Field Name and had selected NTNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4- Distribute: Loop Field in Document: I selected NTNAME and SAM Account Name and set my target to my qlikview server and user document folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I went to User -&amp;gt; Section Access Management and I created a new section access table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NTNAME&amp;nbsp;&amp;nbsp;&amp;nbsp; ACESS&amp;nbsp;&amp;nbsp;&amp;nbsp; COST CENTER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER1&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER2&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USER3&amp;nbsp;&amp;nbsp;&amp;nbsp; USER&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ALL&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ran the task and it generated 3 files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file for users 1 and 2 are fine. but user 3 can't be open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my questions:&lt;/P&gt;&lt;P&gt;1- is this the best was to achieve my goal?&lt;/P&gt;&lt;P&gt;2- &lt;STRONG&gt;Section Access; &lt;/STRONG&gt; line is comment it out, if I enable it then the task fails, why?&lt;/P&gt;&lt;P&gt;3- the &lt;STRONG&gt;&amp;lt;ALL&amp;gt; &lt;/STRONG&gt; does not seem to be working, how can I associate a user to all cost centers? is there a way I can use masking or wild character like * or %?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 13:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Publisher-Authorization-Loop-Field-in-Document/m-p/741213#M264746</guid>
      <dc:creator />
      <dc:date>2015-01-06T13:31:43Z</dc:date>
    </item>
  </channel>
</rss>

