CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Listbox does not show selected value

Print topic Send  topic

Author Message
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?
View profile  Send private message
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/
>


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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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