Forums
This topic is locked
Listbox question
Posted 27 Sep 2001 23:17:38
1
has voted
27 Sep 2001 23:17:38 Michael Rudge posted:
I want to create a form that has 1 listbox populated from a database and the other listbox gets populated by selected an item form the first list box. This second listbox would then create a new record that would be written to the DB. Can a 'link' be created sot that when the item is selected in the first listbox and the 'add' button is clicked, it appears in the second. In essence it creates a recipe from items in listbox1 and submits this recipe to the database. How can I do this?<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>Michael Rudge
Replies
Replied 30 Sep 2001 20:50:23
30 Sep 2001 20:50:23 Daren Bruncak replied:
Create a second rs within UD. Filter this second rs by the criteria that is going to be passed by the first listbox. Then on the first listbox have the action="that pagename and path" (basicly reload itself passing the parameters down the page) That should give you what you need. Now just create your second listbox and have it load the second rs and field that you want. Then I would grab that form and go into server behaviors and "show if not empty"
Replied 01 Oct 2001 11:22:17
01 Oct 2001 11:22:17 Kevin Abbott replied:
Also,
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
Replied 01 Oct 2001 23:09:46
01 Oct 2001 23:09:46 Michael Rudge replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also,
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Michael Rudge
Also,
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Michael Rudge
Replied 01 Oct 2001 23:11:22
01 Oct 2001 23:11:22 Michael Rudge replied:
Do you have a snippet that I can look at? This is a difficult problem for me I'm new to web programming and teh static nature of webpages is difficult to master.
Thanks
Mike
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also,
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Michael Rudge
Thanks
Mike
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also,
Make sure that you use show region if... I have done this myself and had a few errors at first until I used show region.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote><img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Michael Rudge