CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Retaining / Saving the previous selected value of List Box as a new default value

Print topic Send  topic

Author Message
amirkharkongor

Posts: 6
Posted: 12/27/2004, 8:51 PM

How to retain or save the previous selected value of a list box as a new default value
View profile  Send private message
Ozum

Posts: 57
Posted: 12/30/2004, 2:24 PM

The straight way is you should record it in a database.

Or if it is only between 1 or 2 pages: Include a hidden field with the same name of listbox in those pages. When you submit the form from one of these pages, your listbox value is retained.

Or you can save its value in a cookie or session variable and check while drawing listbox if cookie/session variable has a value. (Which I think an overkill/misuse of cookies and session variables.)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.