<?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 Reload changes field names in expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457009#M490207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While trying to build a solution for conditionally showing sheets based on Section Access, I ran into some weird QlikView behavior. See model in attachment. It contains the following simple techniques:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The script loads a few rows of sheet permissions. Each row contains a userID, a sheet symbol and an access flag. Only sheets with access permission are listed. For example:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;USER, ITEMTYPE, ITEMNAME, ITEMFLAG&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH06, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH07, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH08, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH09, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Using a GENERIC LOAD, the script creates an access flag per sheet.&lt;/LI&gt;&lt;LI&gt;About 11 sheets in this model have a Condition Show-expression like this: &lt;SPAN style="font-family: courier new,courier;"&gt;sum([SHEETACCESS.SH06]) = 1&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In the default set-up, access permissions work flawlessly. Only sheets 6, 7, 8 &amp;amp; 9 are visible, the others remain hidden.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;However, as soon as I change one of the permissions by replacing the value of a single ITEMNAME, funny things start to happen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;For example, if I replace ItemName SH08 in the table at the top with SH02 and perform a reload, sheet SH02 will pop up as expected. But sheet SH08 will remain visible as well, showing a total of 5 sheets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Closer inspection reveals that the Conditional Show-expression for sheet SH08 has been rewritten: the square brackets are gone, and the expression now looks like &lt;SPAN style="font-family: courier new,courier;"&gt;sum(SHEETACCESS.SH02) = 1&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Is this normal behavior, or a bug?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 13:46:23 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2012-10-01T13:46:23Z</dc:date>
    <item>
      <title>Reload changes field names in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457009#M490207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While trying to build a solution for conditionally showing sheets based on Section Access, I ran into some weird QlikView behavior. See model in attachment. It contains the following simple techniques:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The script loads a few rows of sheet permissions. Each row contains a userID, a sheet symbol and an access flag. Only sheets with access permission are listed. For example:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD * INLINE [&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;USER, ITEMTYPE, ITEMNAME, ITEMFLAG&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH06, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH07, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH08, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;PCA, SHEET, SH09, 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;];&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Using a GENERIC LOAD, the script creates an access flag per sheet.&lt;/LI&gt;&lt;LI&gt;About 11 sheets in this model have a Condition Show-expression like this: &lt;SPAN style="font-family: courier new,courier;"&gt;sum([SHEETACCESS.SH06]) = 1&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;In the default set-up, access permissions work flawlessly. Only sheets 6, 7, 8 &amp;amp; 9 are visible, the others remain hidden.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;However, as soon as I change one of the permissions by replacing the value of a single ITEMNAME, funny things start to happen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;For example, if I replace ItemName SH08 in the table at the top with SH02 and perform a reload, sheet SH02 will pop up as expected. But sheet SH08 will remain visible as well, showing a total of 5 sheets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Closer inspection reveals that the Conditional Show-expression for sheet SH08 has been rewritten: the square brackets are gone, and the expression now looks like &lt;SPAN style="font-family: courier new,courier;"&gt;sum(SHEETACCESS.SH02) = 1&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Is this normal behavior, or a bug?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 13:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457009#M490207</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2012-10-01T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Reload changes field names in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457010#M490208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You, respective your generic load, are changing the field name and QV has some built in intelligence to alter expression to adapt changes to field names. I am currently unsure if you can disable this behaviour somewhere in the properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about dropping the use of the generic load completely and using something like this in your conditional show sheet expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;ITEMNAME = {SH02}&amp;gt;} ITEMFLAG) = 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457010#M490208</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-01T14:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reload changes field names in expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457011#M490209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read a few of those stories about people getting in touch with "QlikView Intelligence" and some of these are quite old. Has anyone ever gotten an end-all-discussions-explanation from QlikTech about this "intelligence"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out that putting conditional expressions in variables works well too, but neither one of these "solutions" lowers maintenance complexity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 14:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reload-changes-field-names-in-expressions/m-p/457011#M490209</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2012-10-01T14:12:55Z</dc:date>
    </item>
  </channel>
</rss>

