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

 List Box Value should retain after submitt

Print topic Send  topic

Author Message
itzumar

Posts: 88
Posted: 11/28/2012, 8:41 AM

Dear i used list box in my record form. but when i submit form and if validation fail, than i have to select list box value again and again until from submit successfully. can any body help me for this?
_________________
Umar
View profile  Send private message
cleyan


Posts: 136
Posted: 11/28/2012, 2:18 PM

this is strange, do you use the CCS Builder to make the form of do you insert the form by yourself?

verify Datasource of the form and control source of the control

regards


Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
itzumar

Posts: 88
Posted: 11/28/2012, 8:02 PM

Dear Carlos!

i am using builder for record from. but problem is that I have to select from list box every time for submission. for example if i have following list box :

Select
male
female

and when choose female from list box . and when clit on submit button , the controll again show select
_________________
Umar
View profile  Send private message
cleyan


Posts: 136
Posted: 11/28/2012, 9:31 PM

do you know if the form save to the database when you press submit button?
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message
itzumar

Posts: 88
Posted: 11/28/2012, 10:23 PM

yes it save the value in database including list box.

but when i try to update my form than list box value in update form not already selected
_________________
Umar
View profile  Send private message
MichaelMcDonald

Posts: 640
Posted: 11/29/2012, 2:05 AM

try datasourcing the values for the listbox from the database, make a small table called gender and put male and female in it.
_________________
Central Coast, NSW, Australia.

View profile  Send private message
DataDoIT
Posted: 11/29/2012, 6:24 AM

Because the listbox is bound to a datasource column, it'll revert to the
value of that datasource column. If you're entering a new record, then
there is no datasource column value, thus it pulls a null value.

To get around this, you'll have to use a session variable for storing
the temporary value of the listbox upon submit. If validation fails for
the record form, then pull the default value for the listbox from the
session variable.

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.