Add empty item to user variable combobox

Stimulsoft Ultimate discussion
Post Reply
hellenschmidt
Posts: 32
Joined: Fri Dec 07, 2012 1:40 pm

Add empty item to user variable combobox

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Add empty item to user variable combobox

Post 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.
hellenschmidt
Posts: 32
Joined: Fri Dec 07, 2012 1:40 pm

Re: Add empty item to user variable combobox

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Add empty item to user variable combobox

Post 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.
hellenschmidt
Posts: 32
Joined: Fri Dec 07, 2012 1:40 pm

Re: Add empty item to user variable combobox

Post by hellenschmidt »

Thanks for the information, that helps a lot to show all variables in a acceptable way
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Add empty item to user variable combobox

Post by HighAley »

Hello.

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

Thank you.
Post Reply