Page 1 of 1

Add empty item to user variable combobox

Posted: Fri Nov 14, 2014 12:42 pm
by hellenschmidt
Hi,

we are using a variable to allow the user to filter the report output. The content of the variable is provided by a datasource (category with name and id). Everything works fine, but we found no possibility to implement "show all categories". So the question is: is it possible to programmatically add an empty item to the combobox of the variable?

Re: Add empty item to user variable combobox

Posted: Fri Nov 14, 2014 1:21 pm
by Alex K.
Hello,

Unfortunately, it is not possible for variable with values from datasource.
Please try to add the additional boolean variable for show all records - http://web.stimulsoft.com/View/Reports/ ... ingCountry

Thank you.

Re: Add empty item to user variable combobox

Posted: Fri Nov 14, 2014 1:45 pm
by hellenschmidt
Hi,

I know this, but we have 5 variables, if we now have to add 5 addional checkboxes, there is no room left for the report.

Re: Add empty item to user variable combobox

Posted: Mon Nov 17, 2014 6:34 am
by HighAley
Hello.

As a way you could set the type of the variable to List. Then it will be possible to make multiple selection.
You could get more information in the Using variables to output lists section of the Dynamic SQL queries article in our Blog.

You could also try to use next option:

Code: Select all

StiOptions.Viewer.RequestFromUserElementsPerColumn = 5;
Thank you.

Re: Add empty item to user variable combobox

Posted: Mon Nov 17, 2014 7:39 am
by hellenschmidt
Thanks for the information, that helps a lot to show all variables in a acceptable way

Re: Add empty item to user variable combobox

Posted: Mon Nov 17, 2014 1:14 pm
by HighAley
Hello.

We are glad to help you.
Let us know if you need any additional help.

Thank you.