Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

yanivvl0
Contributor III

How to select alwys one of two fields ?

hi to all ,

i have in my model 2  boolean fields : f1 , f2 .

in the users working mode one of them must be  all the time 1 ( 1 & 0  or 0 & 1 )  -  selection of 0 & 0   or   1 & 1  -  Should not be possible !

How can i implement That need ?   THANKS .

Tags (3)
1 Solution

Accepted Solutions
Partner
Partner

Re: How to select alwys one of two fields ?

Hi Yaniv,

I would combine the valid combinations in a field and put that in a listbox for the users to select.

Check "Always one selected value" to ensure that they choose either.

Naamloos.png

Please find my attached demo. I hope this helps you.

With kind regards,

Ronald

4 Replies
MVP
MVP

Re: How to select alwys one of two fields ?

Could you post a sample qvw?

MVP
MVP

Re: How to select alwys one of two fields ?

Create a new field that is linked to your other two fields and that does only show the allowed combinations (NULL for any other combination of f1 and f2).

You can enable 'Always one selected' for that field.

Partner
Partner

Re: How to select alwys one of two fields ?

Hi Yaniv,

I would combine the valid combinations in a field and put that in a listbox for the users to select.

Check "Always one selected value" to ensure that they choose either.

Naamloos.png

Please find my attached demo. I hope this helps you.

With kind regards,

Ronald

yanivvl0
Contributor III

Re: How to select alwys one of two fields ?

thank U Ronald - much help !!