Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Check box option in Input Box

Hi

I have browsed through a lot of similar queries and am not finding exactly what I need. I currently have an input box with a lot of Yes/No options for showing fields in a chart, I have about 10 or sometimes more fields that are available to be added as dimensions on a chart working with variable example vShowName with two values Y/N.

Is there a way of doing this with check boxes inside the input box, or are there better options. Like I said before we have quite a number of these setup so it is not just one or two of them. I have also thought about using a list box for each with only one check box which can be highlighted for a yes value, but I am not sure how to make this a variable to use for a dimension

1 Solution

Accepted Solutions

Re: Check box option in Input Box

Hi,

Have a look at the whats new in QlikView 11.qvw file.

Go to "Report" Tab and see if you are looking something like that.

Regards,

Kaushik Solanki

12 Replies

Re: Check box option in Input Box

Hi,

Have a look at the whats new in QlikView 11.qvw file.

Go to "Report" Tab and see if you are looking something like that.

Regards,

Kaushik Solanki

Digvijay_Singh
Honored Contributor III

Re: Check box option in Input Box

You can have buttons controlling your variables like attached.

Digvijay_Singh
Honored Contributor III

Re: Check box option in Input Box

This is really great stuff, thanks for sharing!

Not applicable

Re: Check box option in Input Box

Thanks Kaushik. I sort of understand whet is being shown there but it I copy it into my model nothing seems to happen.

I created

AdhocDimensions:

LOAD * INLINE [_dimension

AccountStatus

AccountType

Agent

Attorney

Collectors

DebtorIndex

DebtorType

OwnerType

ServiceGroup

Township

Ward

IndigentStatus

];

//Dimensions

TAG FIELDS AccountStatus , $Dimension;

TAG FIELDS AccountType , $Dimension;

TAG FIELDS Agent , $Dimension;

TAG FIELDS Attorney , $Dimension;

TAG FIELDS DebtorIndex , $Dimension;

TAG FIELDS OwnerType , $Dimension;

TAG FIELDS ServiceGroup , $Dimension;

TAG FIELDS Township , $Dimension;

TAG FIELDS Ward , $Dimension;

TAG FIELDS IndigentStatus, $Dimension;

and then added Conditional Coding to the dimension, example

=SubStringCount(Concat(_dimension, '|'), 'AccountStatus')

Maybe I am just doing something stupid here or I am missing something someshere

Please help

Not applicable

Re: Check box option in Input Box

Nice idea but I have too many of the fields, cannot afford a box for each field. I would prefer somewith with an LED Option

Not applicable

Re: Check box option in Input Box

Kaushik, please help me understand the coding in what's new in Qlikview 11 so I can try toimplement the sam. I copied in what I tried but it's not really working

Re: Check box option in Input Box

Hi,

The application contains the script work as well as some conditional options in charts.

I guess you have done the script part, now look in to the application for that chart and look for its property, under the property look at the dimension tab. You will find that all the dimensions are listed here and when you click on the dimension, you will find the enable condition option. This is the place where the conditions are written. Try to understand the condition statements and try to implement in your application.

Regards,

Kaushik Solanki

Not applicable

Re: Check box option in Input Box

This is really helpful. I used this and it's working great.Now I have the issues of how to add a default value if one is not selected. I do not want Qlikview to stage select a dimension. I for example want the first dimension to be the default value

Re: Check box option in Input Box

Hi,

You can use the conditional statement like If statement to check if any dimension is selected, if not then you can give a default dimension.

Regards,

Kaushik Solanki