Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CF_TwoSelectsRelated Question, Related Drop down menu

Status
Not open for further replies.

mike2277

Programmer
Mar 25, 2002
54
0
0
US
Hi all,
I am working on a two-select related drop down menu.

I have been using a coldfusion custom tag which is called CF_TwoSelectsRelated for a while, that works well for me. But I couldn’t figure out a way to write this query to be used in CF_TwoSelectsRelated.

Here is my table structure:

pageid parented pagelevel
1 0 1
2 1 2
3 2 3
4 2 3
5 2 3

I need write ONE query to get the hierarchy structure of the page tree, and then use the cf_twoselectsrelated to retrieve them.

Thank you in advanced for any help!
 
depending on the size of your table, you may want to re-think the way you store the data


left and right extents are far much more versatile than the 'parentID' relationship

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
Also, TwoSelectsRelated isn't well suited for hierarchical trees. It'd be hard to answer the question "Who's my parent?" with the custom tag alone.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Eschewing obfuscation diurnally.
 
Thank you for the post, i think I figure out the way to write the query.
I used INNER JOIN in the query to realize that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top