Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

agigliotti
Honored Contributor II

Qlik Sense how to hide chart/custom object

Hello,

Our customer asking us if is possible to hide some chart objects within a sheet based on user profile.

I know i'm able to hide a whole sheet object through security rules.

Please let me know asap.

Many thanks in advance.

BR

Andrea

7 Replies
MVP
MVP

Re: Qlik Sense how to hide chart object

As far as I am aware there are no options to show or hide objects.


It's probably on the roadmap.

The best you can do is probably to have the expression change so that it returns null, and the chart will then simply show a message saying that there is no data.

Steve

mohan_1105
Contributor III

Re: Qlik Sense how to hide chart/custom object

Steve,

Can we achieve that in Nov'2017 version?

mohan_1105
Contributor III

Re: Qlik Sense how to hide chart/custom object

Dear Andrea,

Any idea of hiding the chart, in the Nov'2017 release?

MVP
MVP

Re: Qlik Sense how to hide chart/custom object

You now have calculation conditions, which is a step forward.  This way you can hide the contents of a chart based on a users access.  Unfortunately the way the chart looks when it is disabled is a bit ugly - but at least the data is hidden.

You will find this option in the properties on the right when you select a chart in edit mode.

mohan_1105
Contributor III

Re: Qlik Sense how to hide chart/custom object

Hi Steve,

Yeah, I'm aware of calculation condition, but the problem is No. of users accessing the application is high. It is painful for writing the condition for all the users.

is there is any better solution for this?

Thanks in advance..!!

MVP
MVP

Re: Qlik Sense how to hide chart/custom object

You wouldn't have to reference each user by name.  Perhaps you could upload a list of users who can see the chart and then check whether it should show with some set analyis:

count({<AllowedUsers={'$(=OsUser())'}>}AllowedUsers) > 0


You will need to check the content of OsUser() and ensure your list of AllowedUsers exactly matches.  You may want to add some Upper statements to both to ensure case doesn't catch you out.

agigliotti
Honored Contributor II

Re: Qlik Sense how to hide chart/custom object

As far I know you have to use calculation condition within chart object.

Community Browser