<?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: Current User at Section Access in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488243#M182448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't make a restriction that way. Instead, you could add the field USUARIO to both the USUARIO_ACTUAL table &lt;EM style="text-decoration: underline;"&gt;and&lt;/EM&gt; to the authorization table in Section Access. Then the reduction will be made automatically when the user opens the app. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Make sure you use upper case in both tables. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check the "Initial data reduction ..." under Document Properties -&amp;gt; Opening also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 12:07:30 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-01-09T12:07:30Z</dc:date>
    <item>
      <title>Current User at Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488242#M182447</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 am trying to implement some restrictions to a "data island" at my QV application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application is restricted by Section access as seen bellow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13892686154549044" jivemacro_uid="_13892686154549044"&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;set HidePreffix = '_';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS, NTNAME, PASSWORD, _GRUPO, _GRUPO1, _GRUPO2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADMIN, ARQUIVOS\SUPORTE_TI, *, ADM, ADM, ADM&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'ADMIN' as ACCESS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'DOMAIN\' &amp;amp; upper(trim(USU_LOGIN)) as NTNAME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '*'&amp;nbsp; as PASSWORD,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(upper(trim(USU_TIPREP)) = 'RTV', upper(trim(USU_LOGIN)), 'ADM') as _GRUPO,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(upper(trim(USU_TIPREP)) = 'SR', upper(trim(USU_LOGIN)), 'ADM') as _GRUPO1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If(upper(trim(USU_TIPREP)) = 'GCR', upper(trim(USU_LOGIN)), 'ADM') as _GRUPO2&lt;/P&gt;
&lt;P&gt;FROM [..\TRA\REF\Usuario.QVD] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am applying those restrictions at Load time as you can see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13892686154381213" jivemacro_uid="_13892686154381213"&gt;
&lt;P&gt;USUARIO_ATUAL:&lt;/P&gt;
&lt;P&gt;noConcatenate&lt;/P&gt;
&lt;P&gt;LOAD DISTINCT&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Usuário] AS aUsuario,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Login AS aLogin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Nome AS aNome,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Tipo AS aTipo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Codigo AS aCodigo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Supervisor AS aSupervisor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Gerente AS aGerente,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ADM AS aADM&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [..\TRA\REF\LogAcesso.qvd](qvd)&lt;/P&gt;
&lt;P&gt;WHERE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Usuário]=Upper(OSUser());&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOG_ACESSOS_RTV:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [..\TRA\REF\LogAcesso.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;INNER JOIN&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; aCodigo AS Codigo&lt;/P&gt;
&lt;P&gt;RESIDENT USUARIO_ATUAL&lt;/P&gt;
&lt;P&gt;WHERE aTipo='RTV';&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the current user I am using OSUser() function. It works at development time, but obviously do not works at server time. Doing a call to QVUser() function, it does not works too, cause my section access do not contains USERID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can I get the current user logged in at QV access point to my QV application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 11:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488242#M182447</guid>
      <dc:creator />
      <dc:date>2014-01-09T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Current User at Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488243#M182448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't make a restriction that way. Instead, you could add the field USUARIO to both the USUARIO_ACTUAL table &lt;EM style="text-decoration: underline;"&gt;and&lt;/EM&gt; to the authorization table in Section Access. Then the reduction will be made automatically when the user opens the app. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Make sure you use upper case in both tables. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to check the "Initial data reduction ..." under Document Properties -&amp;gt; Opening also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 12:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488243#M182448</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-09T12:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Current User at Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488244#M182449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By some reasons and a complex user section access I cannot reduce my data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using initial section selection by document properties option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, thanks in advance. I solve the problem using Set Analysis at my "data island" to charts with aggregation and straight table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 16:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-User-at-Section-Access/m-p/488244#M182449</guid>
      <dc:creator />
      <dc:date>2014-01-14T16:28:38Z</dc:date>
    </item>
  </channel>
</rss>

