Page 1 of 1

Setting default options as selected in variables select list

Posted: Thu Jul 02, 2015 8:05 am
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

Re: Setting default options as selected in variables select

Posted: Thu Jul 02, 2015 9:36 am
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.

Re: Setting default options as selected in variables select

Posted: Thu Jul 02, 2015 2:30 pm
by allancliff
Here is a simple example of what i mean.

Regards,

Re: Setting default options as selected in variables select

Posted: Thu Jul 02, 2015 2:45 pm
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.

Re: Setting default options as selected in variables select

Posted: Thu Jul 02, 2015 3:50 pm
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

Re: Setting default options as selected in variables select

Posted: Fri Jul 03, 2015 1:07 pm
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.

Re: Setting default options as selected in variables select

Posted: Fri Jul 24, 2015 10:36 am
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.