Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] adding records - two select fields, one updates the other?

Quote Reply
Re: [TheStone] adding records - two select fields, one updates the other? In reply to
Thanks a lot. Both controls worked well.

I was not able to cleanly place the add form html part ---

<select id="cat" name="CatID" onchange="loadSub(this.options[this.selectedIndex].value)">
<%loop cats%><option value="<%CatID%>"><%Cat%></option><%endloop%>
</select>
<select id="subcat" name="SubCatID">

I am using the 'default' template set. I have placed the above code in the add_form.html template which duplicates the controls.

One set of Category and SubCat are being displayed because of the sub create_listings being called in Dbsql::Relation::HTML::generate_add_form or Dbsql::HTML::generate_add_form. I could not figure out how to suppress them. How does one suppress them?

Thanks once again.

TIF


Subject Author Views Date
Thread adding records - two select fields, one updates the other? timbo 9219 Nov 18, 2003, 6:41 AM
Thread Re: [timbo] adding records - two select fields, one updates the other?
assombracao 9079 Nov 19, 2003, 3:02 AM
Thread Re: [assombracao] adding records - two select fields, one updates the other?
timbo 9100 Nov 27, 2003, 12:07 PM
Thread Re: [timbo] adding records - two select fields, one updates the other?
604 9030 Nov 27, 2003, 1:30 PM
Thread Re: [TheStone] adding records - two select fields, one updates the other?
timbo 9036 Nov 27, 2003, 10:45 PM
Thread Re: [timbo] adding records - two select fields, one updates the other?
604 9086 Nov 28, 2003, 10:43 AM
Thread Re: [TheStone] adding records - two select fields, one updates the other?
timbo 9058 Nov 29, 2003, 12:47 AM
Thread Re: [timbo] adding records - two select fields, one updates the other?
604 9022 Dec 1, 2003, 10:14 AM
Thread Re: [TheStone] adding records - two select fields, one updates the other?
TIF 8464 Nov 9, 2005, 9:02 PM
Thread Re: [TIF] adding records - two select fields, one updates the other?
604 8471 Nov 10, 2005, 9:45 AM
Thread Re: [TheStone] adding records - two select fields, one updates the other?
TIF 8454 Nov 10, 2005, 9:01 PM
Post Re: [TIF] adding records - two select fields, one updates the other?
TIF 8354 Nov 15, 2005, 5:52 AM
Thread Re: [TIF] adding records - two select fields, one updates the other?
604 8315 Nov 17, 2005, 4:54 PM
Thread Re: [TheStone] adding records - two select fields, one updates the other?
TIF 8276 Nov 21, 2005, 8:49 PM
Thread Re: [TIF] adding records - two select fields, one updates the other?
604 8307 Nov 22, 2005, 12:43 PM
Post Re: [TheStone] adding records - two select fields, one updates the other?
TIF 8370 Nov 25, 2005, 8:58 AM