Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

Show/Hide Container Extension User Access

Dear all,

I want to use the Show/Hide Extension of the November Release 2018 to define which user can see which visualization.

My first approach was to upload an Excel sheet that contains the USERID and build the if-condition like that:

if(USERID=T045,1)

 

But it does not work. Do you have any idea?

 

Thank you.

 

Labels (2)
1 Solution

Accepted Solutions
Highlighted
Specialist
Specialist

So, just drag your Show/Hide extension over the one I used in the app, add the visualization from the drop-down list and then set the Show Condition to USERS='T045'.  No need to use if or assign a 1.  This should work.  Assuming it does, please mark the answer as correct so that other users looking for a solution know that it worked.

View solution in original post

9 Replies
Highlighted
Specialist
Specialist

Hi,

 

T045 is a string, so you need to enclose it in single quotes, i.e. 'T045'.  Also, you don't need the if(), just 

=USERID='T045'

Highlighted
Specialist
Specialist

Take a look at the attached app (zipped)

Highlighted
Contributor
Contributor

Thanks for your quick response!

 

Oh, yeah. I just forgot to put the single quotes when giving this example here, but I do have them in my app.

Unfortunately your app doesn't show me any visualizations.

 

Highlighted
Specialist
Specialist

Just use the filter bar to select user T045 (see below).  

 

ShowHide.JPG

Highlighted
Contributor
Contributor

Sorry, it doesn't work. 

I selected T045, but it still doesn't show me anything. 

Highlighted
Specialist
Specialist

From my A level German, I can read that the extension was not found on the server.  As such, it's not going to work.  Do you have Qlik Sense November 2018 installed on the server with the Dashboard Bundle components?  If not, are you using an extension you downloaded from Qlik Branch? 

ShowHide3.JPG  

 

 

Highlighted
Contributor
Contributor

Ah, the upgrade was implemented recently. Maybe it still has some internal bugs.

I do have a ShowHide Container Extension (see screenshot attached), but maybe it isn't the same like yours?

I will try it again next week.

So the condition for chart is just 

=USERS='T045'?

Don't I need to put a 0 or 1 in anywhere?

 

Thank you so much for your help!

 

 

Highlighted
Specialist
Specialist

So, just drag your Show/Hide extension over the one I used in the app, add the visualization from the drop-down list and then set the Show Condition to USERS='T045'.  No need to use if or assign a 1.  This should work.  Assuming it does, please mark the answer as correct so that other users looking for a solution know that it worked.

View solution in original post

Highlighted
Contributor
Contributor

It works now. Thank you so much!

The last time I used another extension, but now I do have the right one.