• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Populate Drop Down with cfquery

Participant ,
Nov 20, 2009 Nov 20, 2009

Copy link to clipboard

Copied

Hi all,

I need to populate my hub select box based on division select box then populate node based on the selection of hub. I know this is combination of js and cf. I dont want f5 the screen though. Thank u all.

Division list:

select  distinct DIVISION

from    OPS$NEW.REF_DIVISION

HUB List:

select  distinct b.HUB

from    OPS$NEW.REF_DIVISION    a,

        OPS$NEW.SUB_COUNT       b

where   a.PRIN          = b.PRIN

and     a.DIVISION      = < DIVISION>

order   by 1

NODE List:

select  distinct b.NODE

from    OPS$NEW.REF_DIVISION    a,

        OPS$NEW.SUB_COUNT       b

where   a.PRIN          = b.PRIN

and     a.DIVISION      = < DIVISION>

and     b.HUB           = <HUB>

order   by 1

TOPICS
Advanced techniques

Views

404

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2009 Nov 21, 2009

Copy link to clipboard

Copied

The term you are looking for is related selects.  There is more than one way to do it.  Here is one.  http://www.pathcom.com/~bracuk/code/RelatedSelects.htm

If you google "coldfusion related selects" you'll find some tutorials.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 22, 2009 Nov 22, 2009

Copy link to clipboard

Copied

LATEST

I tried a different way of doing it....Thank you Dan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation