Setting default options as selected in variables select list

Stimulsoft Reports.Silverlight discussion
Locked
allancliff
Posts: 13
Joined: Thu Apr 09, 2015 11:14 am

Setting default options as selected in variables select list

Post by allancliff »

Morning,

We have several filters on reports which are of the type select box.
i.e. A list of the months (text)
All, January, February, March etc

If I set "July" in the default value, when I run the report, it uses this value correctly and the results list accordingly.

However, when the variables load at the top, the first option ("All" in my case), is selected rather than "July" which is the default, which confuses the user.

Is there a way for the select box to set that option to selected?

Regards,
Allan
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting default options as selected in variables select

Post by HighAley »

Hello, Allan.

Sorry, but we couldn't reproduce the issue.
Could you send us a sample report template with data that will help us to do this?

Thank you.
allancliff
Posts: 13
Joined: Thu Apr 09, 2015 11:14 am

Re: Setting default options as selected in variables select

Post by allancliff »

Here is a simple example of what i mean.

Regards,
Attachments
default-not-set.zip
(22.2 KiB) Downloaded 283 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting default options as selected in variables select

Post by HighAley »

Hello, Allan.

Maybe we don't understand your question.
Could you describe it more detailed?
What do you need to get?
What you can not do?

Thank you.
allancliff
Posts: 13
Joined: Thu Apr 09, 2015 11:14 am

Re: Setting default options as selected in variables select

Post by allancliff »

That when the page loads, the variable month should be preset to July, as the default says.

In html this would be:
<select name="monthoption">
<option value="All">All</option>
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July" selected="selected">July</option>
</select>

Hope that explains it better.

Allan
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Setting default options as selected in variables select

Post by Ivan »

Hello,

Unfortunately, it is impossible to do now.
If it's critical issue for you, please send us a request to support@stimulsoft.com reffering to this forum thread.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Setting default options as selected in variables select

Post by HighAley »

Hello, Allan.

We have made an improvement.
You could set default value now.
The patch will be available in our next prerelease build on July 31.

Thank you.
Locked