[Zope] newbie question about input box for sql method
Dimitris Andrakakis
dandraka_info@yahoo.com
Tue, 9 May 2000 02:30:05 +0300
Charlie wrote:
> Hi all,
> I've followed the Z SQL Method instructions and built a simple interface
to
> a database. I have an input form with four text-input boxes. The values
> entered into the four input boxes get INSERTed as a database record when
the
> submit button is clicked. I want to change one of those text-input boxes
> into a selection box -- limiting the user to a dozen or so predefined
values
> (which would be selectable from a menu that appears on the box when you
> click on it). From the way the Z SQL Method is used in zope, it almost
> looks like i might have to go into it (SQL.py) and set things up the way I
> want. Is this right? Is there a better solution?
NO ! DONT JUMP ! FOR GOD'S SAKE !!! If I get you right, you want what
windoze call a "list box" right ? So, instead of:
<input name="my_db_object" width=30 value="">
you will use:
<select name="my_db_object" size="1">
<option selected value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
...etc.
</select>
...life is sooo simple :-)
Dimitris Andrakakis
http://atlas.central.ntua.gr:8000/~mc94068
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com