Thanks John,

My problem was that my data had apostrophes.  Like O'Brien, ST Mary's, etc.
The custom tag works great.  Thanks

 -----Original Message-----
From:   John Wilker [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, October 31, 2000 2:13 PM
To:     CF-Server
Subject:        RE: Two related Combo boxes

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0436E.98F65D40
Content-Type: text/plain;
        charset="iso-8859-1"

Here's the code I used in my implementation of that tag. Hope it sheds some
light.

<CFQUERY DATASOURCE="#session.TimeDSN#" NAME="qPullProjectsModules"
CACHEDWITHIN="#SESSION.CacheExpiry#">
        SELECT
                p.ProjectOID AS p_projectOID,
                p.ProjectName AS p_projectName,
                m.ProjectOID AS m_projectOID,
                m.moduleoid AS m_moduleOID,
                m.modulename AS m_moduleName
        FROM PROJECT p, MODULE m
        WHERE p.ProjectOID = m.Projectoid
        order by p_Projectname
</CFQUERY>




<CF_TwoSelectsRelated
        QUERY="qPullProjectsModules"
        NAME1="Projects"
        NAME2="Modules"
        DISPLAY1="p_Projectname"
        DISPLAY2="m_moduleName"
        VALUE1="p_ProjectOID"
        VALUE2="m_ModuleOID"
        SIZE1="1"
        SIZE2="1"
        HTMLBETWEEN="</TD><TD>"
        AUTOSELECTFIRST="Yes"
        EMPTYTEXT1="(Choose a project)"
        EMPTYTEXT2="(Choose a module)"
        FORMNAME="DailyEntry">

 J.

John Wilker
Allaire Certified ColdFusion Developer
Directfit, formerly known as Integrated Partnerships
949.838.8811 Direct
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: Dan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 31, 2000 9:37 AM
To: CF-Server
Subject: RE: Two related Combo boxes


Hi Lorcan,  I'm working with the tag now.  John Wilker suggested it earlier.
I'm doing something wrong thou...I keep getting runtime errors..on loading
the window (Line 215) and after making the 1st selection (Line 460)  My code
is below.

<CFLOCK SCOPE="APPLICATION" TIMEOUT="30"  TYPE ="ReadOnly">
<CFQUERY DATASOURCE='#application.DSNMain#' NAME="GetCounty">
SELECT StateCode, County
FROM StateCounty
        Order by StateCode
</CFQUERY>
 </cflock>

<FORM ACTION="TestTwoSelectsRelatedGo.cfm" METHOD="POST" onSubmit="return
require_Selected();" Name="MyOtherForm">

  <CF_TwoSelectsRelated
        QUERY="GetCounty"
        NAME1="StateCode"
        NAME2="County"
        DISPLAY1="StateCode"
        DISPLAY2="County"
        VALUE1="StateCode"
        VALUE2="County"
        FORCEWIDTH1="70"
        FORCEWIDTH2="70"
        SIZE1="1"
        SIZE2="1"
        HTMLBETWEEN="<BR>"
        AUTOSELECTFIRST="Yes"
        EMPTYTEXT1="(choose a state)"
        EMPTYTEXT2="(now choose a county)"
        ONCHANGE="Submit!"
        FORMNAME="MyOtherForm">
</FORM>

 -----Original Message-----
From:   Lorcan Murphy [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, October 31, 2000 12:00 PM
To:     CF-Server
Subject:        Re: Two related Combo boxes

Hi Dan,

there is a custom tag called TwoSelectsRelated.cfm available from the
gallery which does that to perfection.

Lorcan

Dan wrote:

> Here's a hard one.  I have a form with two combo boxes (State and County).
> The problems is that the 2nd (County) combo box is based on the value of
the
> 1st (State).  I would like to keep the form together.  Is there a way to
> make the 2nd boxes values change based on the input of the 1st?
>
> --------------------------------------------------------------------------
----
> To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com



-------------------------------------------------------------------
CONFIDENTIALITY AND DISCLAIMER NOTICE

This e-mail is intended only for the addressee named above and the
contents should not be disclosed to any other person nor copies
taken. Any views or opinions presented are solely those of the
sender and do not necessarily represent those of Awarenet Ltd
(trading as Unipalm) unless otherwise specifically stated. As
internet communications are not secure we do not accept legal
responsibility for the contents of this message nor responsibility
for any change made to this message after it was sent by the
original sender. We advise you to carry out your own virus check
before opening any attachment as we cannot accept liability for any
damage sustained as a result of any software viruses.
-------------------------------------------------------------------
----------------------------------------------------------------------------
--
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

----------------------------------------------------------------------------
--
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

------_=_NextPart_001_01C0436E.98F65D40
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>RE: Two related Combo boxes</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Here's the code I used in my implementation of that =
tag. Hope it sheds some light.</FONT>
</P>

<P><FONT SIZE=3D2>&lt;CFQUERY =
DATASOURCE=3D&quot;#session.TimeDSN#&quot; =
NAME=3D&quot;qPullProjectsModules&quot; =
CACHEDWITHIN=3D&quot;#SESSION.CacheExpiry#&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>SELECT =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>p.ProjectOID =
AS p_projectOID,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>p.ProjectName =
AS p_projectName,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>m.ProjectOID =
AS m_projectOID, </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>m.moduleoid =
AS m_moduleOID, </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>m.modulename =
AS m_moduleName</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>FROM =
PROJECT p, MODULE m</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>WHERE =
p.ProjectOID =3D m.Projectoid</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>order by =
p_Projectname</FONT>
<BR><FONT SIZE=3D2>&lt;/CFQUERY&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>&lt;CF_TwoSelectsRelated</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>QUERY=3D&quot;qPullProjectsModules&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>NAME1=3D&quot;Projects&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>NAME2=3D&quot;Modules&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>DISPLAY1=3D&quot;p_Projectname&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>DISPLAY2=3D&quot;m_moduleName&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>VALUE1=3D&quot;p_ProjectOID&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>VALUE2=3D&quot;m_ModuleOID&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>SIZE1=3D&quot;1&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>SIZE2=3D&quot;1&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>HTMLBETWEEN=3D&quot;&lt;/TD&gt;&lt;TD&gt;&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>AUTOSELECTFIRST=3D&quot;Yes&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>EMPTYTEXT1=3D&quot;(Choose a project)&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>EMPTYTEXT2=3D&quot;(Choose a module)&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>FORMNAME=3D&quot;DailyEntry&quot;&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;J.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
<BR><FONT SIZE=3D2>John Wilker </FONT>
<BR><FONT SIZE=3D2>Allaire Certified ColdFusion Developer</FONT>
<BR><FONT SIZE=3D2>Directfit, formerly known as Integrated =
Partnerships</FONT>
<BR><FONT SIZE=3D2>949.838.8811 Direct </FONT>
<BR><FONT SIZE=3D2>[EMAIL PROTECTED] &lt;<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]=
om</A>&gt; </FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Dan [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:dsmith@USSBattleshipNJ=
.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, October 31, 2000 9:37 AM</FONT>
<BR><FONT SIZE=3D2>To: CF-Server</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Two related Combo boxes</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi Lorcan,&nbsp; I'm working with the tag now.&nbsp; =
John Wilker suggested it earlier.</FONT>
<BR><FONT SIZE=3D2>I'm doing something wrong thou...I keep getting =
runtime errors..on loading</FONT>
<BR><FONT SIZE=3D2>the window (Line 215) and after making the 1st =
selection (Line 460)&nbsp; My code</FONT>
<BR><FONT SIZE=3D2>is below.</FONT>
</P>

<P><FONT SIZE=3D2>&lt;CFLOCK SCOPE=3D&quot;APPLICATION&quot; =
TIMEOUT=3D&quot;30&quot;&nbsp; TYPE =3D&quot;ReadOnly&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;CFQUERY DATASOURCE=3D'#application.DSNMain#' =
NAME=3D&quot;GetCounty&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>SELECT StateCode, County</FONT>
<BR><FONT SIZE=3D2>FROM StateCounty</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>Order by =
StateCode</FONT>
<BR><FONT SIZE=3D2>&lt;/CFQUERY&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&lt;/cflock&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&lt;FORM =
ACTION=3D&quot;TestTwoSelectsRelatedGo.cfm&quot; =
METHOD=3D&quot;POST&quot; onSubmit=3D&quot;return</FONT>
<BR><FONT SIZE=3D2>require_Selected();&quot; =
Name=3D&quot;MyOtherForm&quot;&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp; &lt;CF_TwoSelectsRelated</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>QUERY=3D&quot;GetCounty&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>NAME1=3D&quot;StateCode&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>NAME2=3D&quot;County&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>DISPLAY1=3D&quot;StateCode&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>DISPLAY2=3D&quot;County&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>VALUE1=3D&quot;StateCode&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>VALUE2=3D&quot;County&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>FORCEWIDTH1=3D&quot;70&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>FORCEWIDTH2=3D&quot;70&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>SIZE1=3D&quot;1&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>SIZE2=3D&quot;1&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>HTMLBETWEEN=3D&quot;&lt;BR&gt;&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>AUTOSELECTFIRST=3D&quot;Yes&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>EMPTYTEXT1=3D&quot;(choose a state)&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>EMPTYTEXT2=3D&quot;(now choose a county)&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>ONCHANGE=3D&quot;Submit!&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>FORMNAME=3D&quot;MyOtherForm&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/FORM&gt;</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: &nbsp; Lorcan Murphy [<A =
HREF=3D"mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]<=
/FONT>
<BR><FONT SIZE=3D2>Sent:&nbsp;&nbsp; Tuesday, October 31, 2000 12:00 =
PM</FONT>
<BR><FONT SIZE=3D2>To:&nbsp;&nbsp;&nbsp;&nbsp; CF-Server</FONT>
<BR><FONT SIZE=3D2>Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Re: Two related Combo boxes</FONT>
</P>

<P><FONT SIZE=3D2>Hi Dan,</FONT>
</P>

<P><FONT SIZE=3D2>there is a custom tag called TwoSelectsRelated.cfm =
available from the</FONT>
<BR><FONT SIZE=3D2>gallery which does that to perfection.</FONT>
</P>

<P><FONT SIZE=3D2>Lorcan</FONT>
</P>

<P><FONT SIZE=3D2>Dan wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Here's a hard one.&nbsp; I have a form with two =
combo boxes (State and County).</FONT>
<BR><FONT SIZE=3D2>&gt; The problems is that the 2nd (County) combo box =
is based on the value of</FONT>
<BR><FONT SIZE=3D2>the</FONT>
<BR><FONT SIZE=3D2>&gt; 1st (State).&nbsp; I would like to keep the =
form together.&nbsp; Is there a way to</FONT>
<BR><FONT SIZE=3D2>&gt; make the 2nd boxes values change based on the =
input of the 1st?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; =
------------------------------------------------------------------------=
--</FONT>
<BR><FONT SIZE=3D2>----</FONT>
<BR><FONT SIZE=3D2>&gt; To unsubscribe, send a message to =
[EMAIL PROTECTED] with</FONT>
<BR><FONT SIZE=3D2>'unsubscribe' in the body or visit the list page at =
www.houseoffusion.com</FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>---------------------------------------------------------------=
----</FONT>
<BR><FONT SIZE=3D2>CONFIDENTIALITY AND DISCLAIMER NOTICE</FONT>
</P>

<P><FONT SIZE=3D2>This e-mail is intended only for the addressee named =
above and the</FONT>
<BR><FONT SIZE=3D2>contents should not be disclosed to any other person =
nor copies</FONT>
<BR><FONT SIZE=3D2>taken. Any views or opinions presented are solely =
those of the</FONT>
<BR><FONT SIZE=3D2>sender and do not necessarily represent those of =
Awarenet Ltd</FONT>
<BR><FONT SIZE=3D2>(trading as Unipalm) unless otherwise specifically =
stated. As</FONT>
<BR><FONT SIZE=3D2>internet communications are not secure we do not =
accept legal</FONT>
<BR><FONT SIZE=3D2>responsibility for the contents of this message nor =
responsibility</FONT>
<BR><FONT SIZE=3D2>for any change made to this message after it was =
sent by the</FONT>
<BR><FONT SIZE=3D2>original sender. We advise you to carry out your own =
virus check</FONT>
<BR><FONT SIZE=3D2>before opening any attachment as we cannot accept =
liability for any</FONT>
<BR><FONT SIZE=3D2>damage sustained as a result of any software =
viruses.</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
----</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-------------</FONT>
<BR><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>To unsubscribe, send a message to =
[EMAIL PROTECTED] with</FONT>
<BR><FONT SIZE=3D2>'unsubscribe' in the body or visit the list page at =
www.houseoffusion.com</FONT>
</P>

<P><FONT =
SIZE=3D2>---------------------------------------------------------------=
---------------</FONT>
<BR><FONT SIZE=3D2>To unsubscribe, send a message to =
[EMAIL PROTECTED] with 'unsubscribe' in the body or =
visit the list page at www.houseoffusion.com</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C0436E.98F65D40--
----------------------------------------------------------------------------
--
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to