utrost
Posts: 9
|
| Posted: 08/17/2005, 4:23 AM |
|
Hi,
I have a listbox containing id's and language names within a record form:
<select name="language_name" class="CobaltSelect">
<option value="">Select Value</option>
<OPTION VALUE="2">Abkhazian</OPTION>
<OPTION VALUE="3">Achinese</OPTION>
...
When the page is loaded, the option "Select Value" is displayed
If i coose an entry (e.g. Abkhazian) the according value "2" is inserted correctly into the database using a custum update.
However, I anticipated that the next time i loaded the record, "Abkhazian" would be shown as a preselection in the listbox.
Instead "Select Value" is still displayed.
Is there a solution to get the anticipated behavior?
|
 |
 |
DonB
|
| Posted: 08/17/2005, 7:07 AM |
|
I'd guess that the datatype is set to 'Text' intead of 'Integer'. The
listbox datatype should match whatever is in the Value attribute.
Of course, it will always be 'Select Value' when the form is in Insert mode,
because there will be no value assigned to the field in that case.
--
DonB
http://www.gotodon.com/ccbth
"utrost" <utrost@forum.codecharge> wrote in message
news:243031e242da14@news.codecharge.com...
> Hi,
>
> I have a listbox containing id's and language names within a record form:
>
> <select name="language_name" class="CobaltSelect">
> <option value="">Select Value</option>
> <OPTION VALUE="2">Abkhazian</OPTION>
> <OPTION VALUE="3">Achinese</OPTION>
> ..
>
> When the page is loaded, the option "Select Value" is displayed
>
> If i coose an entry (e.g. Abkhazian) the according value "2" is inserted
> correctly into the database using a custum update.
>
> However, I anticipated that the next time i loaded the record, "Abkhazian"
> would be shown as a preselection in the listbox.
>
> Instead "Select Value" is still displayed.
>
> Is there a solution to get the anticipated behavior?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|