Skip to main content



      Home
Home » Archived » BIRT » Combo box to retain the values after page refresh
Combo box to retain the values after page refresh [message #754457] Wed, 02 November 2011 11:19 Go to next message
Eclipse UserFriend
Hello,

In my report when user clicks on button 'Go' the combo box values get set to default values on page reload. I want to combo box to retain the values which user has selected before page is reloaded. How to do that?

Thanks,

Anurag

[Updated on: Fri, 04 November 2011 01:59] by Moderator

Re: Combo box to retain the values after page refresh [message #754676 is a reply to message #754457] Thu, 03 November 2011 16:22 Go to previous messageGo to next message
Eclipse UserFriend
There may be a much better way of doing this, but I got it to work by doing something like this for each option:

<option value="50"<VALUE-OF>if (params["RP_NoOfBedsMaximum"].value == 50){
"selected = 'selected'";
}
else{
"";
}</VALUE-OF>>50</option>

This uses the text box's dynamic text feature to check the parameter value and assign the "selected" property if it's the currently selected parameter value.

Hope this helps.

Regards,

Michael
http://www.birt-exchange.org
Re: Combo box to retain the values after page refresh [message #754733 is a reply to message #754676] Fri, 04 November 2011 01:56 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, Michael. I will try that.

Regards,

Anurag
Re: Combo box to retain the values after page refresh [message #754825 is a reply to message #754733] Fri, 04 November 2011 09:41 Go to previous message
Eclipse UserFriend
Alright, let me know if you have issues.

Michael
Previous Topic:Crosstab rows nubbering
Next Topic:Align chart to center of report.
Goto Forum:
  


Current Time: Wed Jul 23 12:15:02 EDT 2025

Powered by FUDForum. Page generated in 0.26779 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top