Hi guys,
I've been working on getting the TwoSelectsRelated custom tag up and
running, but it's occurred to me that I'm not sure if you can actually do
what I want with the custom tag as it stands.
What I want, is the effect given by this piece of code:
<select name="SubcategoryID">
<option>Select a Subcategory</option>
<cfloop query="qry_GetAllCategories">
<option>-- #UCase(qry_GetAllCategories.CategoryName)# --</option>
<cfloop query="qry_GetAllSubcategories">
<option
value="#qry_GetAllSubcategories.ID#">#qry_GetAllSubcategories.SubcategoryNam
e#</option>
</cfloop>
</cfloop>
</select>
So the category name appears in upper case and the option tag for it has no
value attached (and I've got some error-handling code to check for this and
prevent people from selecting a top-level category) and then the relevant
subcategories will appear underneath with their appropriate IDs in the
value.
In case anyone cares about the reasoning behind what I'm doing, each
subcategory has a number of sections under it. When I first started the
project, I had been given the impression that there would only be a few
subcategories for each category and that each of these would only have a
couple of sections. Now I find that there is an average of 7 subcategories
to each of the 6 categories, and each subcategory has between 5 and 20
sections. So if I don't find some way to filter the second select (which
allows people to select the section an item is being added to) it will be
enormously long and be almost impossible to find anything in. Hence the idea
of TwoSelectsRelated.
So I guess my question is:
1/ Is it possible to get a select list like the one above using the
TwoSelectsRelated custom tag?
2/ If not, is there another custom tag that does what I want?
I'm not advanced enough with all this to be game to try editing the custom
tag or writing my own, so I really need an "out-of-the-box" solution.
Any help or advice (even to tell me that what I want is impossible, is such
is the case) would be greatly appreciated.
Cheers,
Seona.
__________________________________________________________________
<< ella for Spam Control >> has removed Spam messages and set aside Later
for me
You can use it too - and it's FREE! http://www.ellaforspam.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.710 / Virus Database: 466 - Release Date: 23/06/2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/