<?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 on From and To Fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2457992#M98609</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/238788"&gt;@cwhite&lt;/a&gt;,&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Qlik Sense currently does not support direct OR logic within Section Access, the solution involves creating a combined field that captures both "From Country" and "To Country" access.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;// Create combined Access Country field&lt;BR /&gt;TransactionsWithAccess:&lt;BR /&gt;LOAD&lt;BR /&gt;TransactionID,&lt;BR /&gt;FromCountry,&lt;BR /&gt;ToCountry,&lt;BR /&gt;FromCountry &amp;amp; '-' &amp;amp; ToCountry AS AccessCountry,&lt;BR /&gt;Resident Transactions;&lt;/P&gt;
&lt;P&gt;// Section Access configuration&lt;BR /&gt;Section Access;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ACCESS, USERID, ACCESSCOUNTRY&lt;BR /&gt;ADMIN, ADMIN, *&lt;BR /&gt;USER, User1, US&lt;BR /&gt;USER, User1, CANADA&lt;BR /&gt;USER, User1, MEXICO&lt;BR /&gt;USER, User2, US&lt;BR /&gt;USER, User2, UK&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;// Load the data with access rules applied&lt;BR /&gt;Transactions:&lt;BR /&gt;LOAD&lt;BR /&gt;TransactionID,&lt;BR /&gt;FromCountry,&lt;BR /&gt;ToCountry,&lt;BR /&gt;AccessCountry,&lt;BR /&gt;&lt;BR /&gt;Resident TransactionsWithAccess;&lt;/P&gt;
&lt;P&gt;DROP Table TransactionsWithAccess;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;**********Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 00:33:52 GMT</pubDate>
    <dc:creator>TauseefKhan</dc:creator>
    <dc:date>2024-05-31T00:33:52Z</dc:date>
    <item>
      <title>Section Access on From and To Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2457962#M98605</link>
      <description>&lt;P&gt;I have a transaction data set that has a from and to country and I have a scenario where my business rules say that a user can see any transactions from a certain number of countries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have it set up where a user can see transactions from US, CANADA, MEXICO and it works great when I go against the From Country Field.&amp;nbsp; &amp;nbsp;How do I also perform the data reduction against the To Country field using the same access country list?&amp;nbsp; &amp;nbsp;It would great if it performed an OR when I do both columns but it is performing an AND.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 19:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2457962#M98605</guid>
      <dc:creator>cwhite</dc:creator>
      <dc:date>2024-05-30T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access on From and To Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2457992#M98609</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/238788"&gt;@cwhite&lt;/a&gt;,&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;Qlik Sense currently does not support direct OR logic within Section Access, the solution involves creating a combined field that captures both "From Country" and "To Country" access.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;// Create combined Access Country field&lt;BR /&gt;TransactionsWithAccess:&lt;BR /&gt;LOAD&lt;BR /&gt;TransactionID,&lt;BR /&gt;FromCountry,&lt;BR /&gt;ToCountry,&lt;BR /&gt;FromCountry &amp;amp; '-' &amp;amp; ToCountry AS AccessCountry,&lt;BR /&gt;Resident Transactions;&lt;/P&gt;
&lt;P&gt;// Section Access configuration&lt;BR /&gt;Section Access;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ACCESS, USERID, ACCESSCOUNTRY&lt;BR /&gt;ADMIN, ADMIN, *&lt;BR /&gt;USER, User1, US&lt;BR /&gt;USER, User1, CANADA&lt;BR /&gt;USER, User1, MEXICO&lt;BR /&gt;USER, User2, US&lt;BR /&gt;USER, User2, UK&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;// Load the data with access rules applied&lt;BR /&gt;Transactions:&lt;BR /&gt;LOAD&lt;BR /&gt;TransactionID,&lt;BR /&gt;FromCountry,&lt;BR /&gt;ToCountry,&lt;BR /&gt;AccessCountry,&lt;BR /&gt;&lt;BR /&gt;Resident TransactionsWithAccess;&lt;/P&gt;
&lt;P&gt;DROP Table TransactionsWithAccess;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;**********Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.********&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 00:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2457992#M98609</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-05-31T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Section Access on From and To Fields</title>
      <link>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2458022#M98617</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/238788"&gt;@cwhite&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There is a great article of one of the founders of Qlik that talks exactly about your problem and how to solve it:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Data-Reduction-Using-Multiple-Fields/ba-p/1474917" target="_blank" rel="noopener"&gt;Data Reduction Using Multiple Fields - Qlik Community - 1474917&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Next, read this article:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/Basics-for-complex-authorization/ba-p/1465872" target="_blank"&gt;Basics for complex authorization - Qlik Community - 1465872&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Be patient, the solution for your problem are there.&lt;/P&gt;
&lt;P&gt;Learn more from this master here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/A-Primer-on-Section-Access/ba-p/1465766" target="_blank" rel="noopener"&gt;A Primer on Section Access - Qlik Community - 1465766&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 04:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-Access-on-From-and-To-Fields/m-p/2458022#M98617</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-05-31T04:00:48Z</dc:date>
    </item>
  </channel>
</rss>

