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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
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 |
 |
 |
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.
|
 |
 |
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.
|
|
|
 |