Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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
Anurag  is currently offline Anurag
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 01: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 16:22 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1546
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

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
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
Anurag  is currently offline Anurag
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 09:41 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1546
Registered: July 2009
Senior Member

Alright, let me know if you have issues.

Michael


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Crosstab rows nubbering
Next Topic:Align chart to center of report.
Goto Forum:
  


Current Time: Fri Jul 25 16:04:37 EDT 2014

Powered by FUDForum. Page generated in 0.01841 seconds