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

 If value is not in listbox then allow then to type response...Any thoughts

Print topic Send  topic

Author Message
ted
Posted: 03/08/2004, 11:08 AM

this is what I am trying to do for example. I have a record form that has a few fields. One is a drop down this. What I want to do is allow to user to select a value from the list box or enter a value. Is there any way to do this. For example

If the list box has a list of operating systems like

Windows 95
Windows 98
Windows ME

Lets say the user is using windows 2003. Well its not in the list. Is there any way of letting a user put windows 2003. Any ideas would be helpful
Ted
Posted: 03/09/2004, 9:45 AM

Wow...no one has ever run into this before? I mean something like a combo box would work but I am not sure if you can do that with ASP and CCS
Oper


Posts: 1195
Posted: 03/09/2004, 9:44 PM

1)few way to doit!
you normal List Box with your Option
and an aditional camp if the option is not there
*
then on the event before update if the 2nd field have info just
assign a new value to the field.

2)this one is the faster
you coudl incoprotaed a button for option not here click button
and popup a window or load a new widnwo to let user create the new
option (this way the new option wil be incorprate on your lsit box)
of coure if your list box are a table

3) FIrst mixed with the 2nd
Create the 2 filed 1 Texbox and 1 Listbox, 1 button to add option not
and make 1 visibe or the other depend on the event!

you coudl use java to but i try to avoid as much as i can casue some peopel dont jaave java enable!


_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
DonB
Posted: 03/10/2004, 3:04 PM

Here's a general concept to start with
http://www.gotodon.com/examples/inputorpick.asp The code for this page in
in my download section.

Where you might want to expand the concept is to actually add the item to
the "lookup table" . I just created a pair (listbox/textbox) that more or
less work together to produce the effect of letting you input a text value
or pick one from the listbox. The textbox is intended to be the "bound"
field (the one that gets written to the database while the listbox only
serves to load values into the textbox. In reality the full solution might
be slightly more comples - adding the new value, and generating a new
numeric ID (primary key), in the lookup table.

--
DonB

http://www.gotodon.com/ccbth


"ted" <ted@forum.codecharge> wrote in message
news:6404cc4c26f606@news.codecharge.com...
> this is what I am trying to do for example. I have a record form that has
a few fields. One is a drop down this. What I want to do is allow to user to
select a value from the list box or enter a value. Is there any way to do
this. For example
>
> If the list box has a list of operating systems like
>
> Windows 95
> Windows 98
> Windows ME
>
> Lets say the user is using windows 2003. Well its not in the list. Is
there any way of letting a user put windows 2003. Any ideas would be helpful
> ---------------------------------------
> 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.

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.