Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
LOAD * INLINE [
USER, ITEMTYPE, ITEMNAME, ITEMFLAG
PCA, SHEET, SH06, 1
PCA, SHEET, SH07, 1
PCA, SHEET, SH08, 1
PCA, SHEET, SH09, 1
];
In the default set-up, access permissions work flawlessly. Only sheets 6, 7, 8 & 9 are visible, the others remain hidden.
However, as soon as I change one of the permissions by replacing the value of a single ITEMNAME, funny things start to happen.
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.
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 sum(SHEETACCESS.SH02) = 1.
Is this normal behavior, or a bug?
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.
What about dropping the use of the generic load completely and using something like this in your conditional show sheet expressions:
=sum({<ITEMNAME = {SH02}>} ITEMFLAG) = 1
Regards,
Stefan
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"?
I found out that putting conditional expressions in variables works well too, but neither one of these "solutions" lowers maintenance complexity.
In any case, thanks for your reply.
Peter