Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:19 Go to next message
Anurag  is currently offline Anurag Friend
Messages: 47
Registered: September 2011
Member
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 05:59]

Report message to a moderator

Re: Combo box to retain the values after page refresh [message #754676 is a reply to message #754457] Thu, 03 November 2011 20:22 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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


Michael

Developer Evangelist, Silanis
Re: Combo box to retain the values after page refresh [message #754733 is a reply to message #754676] Fri, 04 November 2011 05:56 Go to previous messageGo to next message
Anurag  is currently offline Anurag Friend
Messages: 47
Registered: September 2011
Member
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 13:41 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Alright, let me know if you have issues.

Michael


Michael

Developer Evangelist, Silanis
Previous Topic:Crosstab rows nubbering
Next Topic:Align chart to center of report.
Goto Forum:
  


Current Time: Fri Apr 26 17:37:34 GMT 2024

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

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

Back to the top