Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

ivandrago
Contributor II

Make a button appear based on section access

Hi,

I have a button on my Document, I only want this to show when the user has access to all data? The field that determines what access a user has is called "Permission" there are two values in this field which are called 'Secure' or 'NonSecure'. So if a user has access to see all the data he would see both sets. I tried to do something with the button on the Layout tab and do a conditional formula on the "Show" option but not sure what to do? I've tried the following =Permisson =('*') but to no avail

Thanks

1 Solution

Accepted Solutions
MVP
MVP

Make a button appear based on section access

I would suggest going with the functions maxstring and minstring and section access to ignore all selections.  The show condition could then be:

maxstring({1}Permission) = 'Secure' and minstring({1}Permission) = 'NonSecure'

Hope that helps,

Steve

QlikView Consultant

5 Replies
MVP
MVP

Re: Make a button appear based on section access

Hello Ivan,

If the field is Permission and there's only one possible value per user, the conditional should look like

Permission = 'Secure'

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

ivandrago
Contributor II

Make a button appear based on section access

Hi,  Some Users will see data where the Permission is "NonSecure", basically when there is a user who I have said on the Section Access that they can see ALL, I want a button to show on there document.

ivandrago
Contributor II

Make a button appear based on section access

Any experts have an idea?

MVP
MVP

Make a button appear based on section access

I would suggest going with the functions maxstring and minstring and section access to ignore all selections.  The show condition could then be:

maxstring({1}Permission) = 'Secure' and minstring({1}Permission) = 'NonSecure'

Hope that helps,

Steve

QlikView Consultant

MVP
MVP

Re: Make a button appear based on section access

Hi Ivan,

Try the following as conditional:

=Match('Secure', $(=chr(39) & Concat(DISTINCT Permission, chr(39) & chr(44) & chr(39)) & chr(39)))

That will return greater than zero (so true) in the case that the value "Secure" is in the list of all possible Permission values the user has.

Hope that helps.

Miguel Angel Baeyens

BI Consultant

Comex Grupo Ibérica

Community Browser