Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. READ MORE

Show/Hide Sheets in Qlik Sense Cloud and Profile User Login

cancel
Showing results for 
Search instead for 
Did you mean: 
valeriofatatis
Contributor II
Contributor II

Show/Hide Sheets in Qlik Sense Cloud and Profile User Login

Last Update:

Jan 16, 2024 3:51:00 AM

Updated By:

valeriofatatis

Created date:

Jan 16, 2024 3:51:00 AM

Attachments

QUESTION:

How to display or hide one or more internal sheets of a one o more Qlik Sense App.

ANSWER:
For convenience, I use a simple INLINE table that reproduces 2 fields necessary for dynamic matching when opening the sheet: USER ID and SHEET ID

SA_SHEET:
LOAD * INLINE [
UTENTE,SHEET
55ad8d29ed671d80ecac0d1b4594546e8f88d730d23a63b4da55f51ed77f4ffb,8f3e7e83-00ef-4c34-9458-54ba3840c123
55ad8d29ed671d80ecac0d1b4594546e8f88d730d23a63b4da55f51ed77f4ffa,0af346e4-b0b3-4a20-b2ee-bf9e869412e2
];

valeriofatatis_0-1705079006245.png

// the green color is the correct record to match (ID USER and ID SHEET)

Add 3 variables:

the first in the load script;

LET USER = SUBFIELD(OSUSER(),'|',-1);  // Extract the User ID session login ( one value only)

the second in variable editor:

ObjectId('sheet') // One value for each sheet in app

valeriofatatis_1-1705079071477.png

 

the third variable in the visualization condition of sheet properties:

=index(concat( {< UTENTE = {"$(USER)"} >} distinct SHEET,' '),$(vSHEET_ID))

valeriofatatis_2-1705079114375.png

 

the result will be that when the user ID and the sheet ID are equal to the user of the current session who opens the sheet within the App, the formula returns a value greater than zero, enabling the sheet.

valeriofatatis_3-1705079149537.png

These variables can be inserted more conveniently in an TXT file and loaded with an INCLUDE instruction so as to be able to quickly insert the code into all the published APPs (maximum efficiency) as for the INLINE table which can be included in the loading loads by hooking it if present , to that of ECTION acces for data profiling. Seeing is believing.

Good work

Valerio Fatatis wrote

 

 

Labels (3)
Version history
Last update:
‎2024-01-16 03:51 AM
Updated by: