I added the pipe character at the end of each option value statements. On the processing page I replaced '|,' with '|' and in my <cfqueryparam call I added separator='|'. Works great, thanks!
On Mon, 3 Jan 2005 13:53:09 -0500, Burns, John D <[EMAIL PROTECTED]> wrote: > When you're looping over the values you could just increment the list by > 2 on each so the first and second values go together, etc. > > John Burns > Certified Advanced ColdFusion MX Developer > AI-ES Aeronautics, Web Developer > > -----Original Message----- > From: Greg Morphis [mailto:[EMAIL PROTECTED] > Sent: Monday, January 03, 2005 1:45 PM > To: CF-Talk > Subject: comma separator > > I have a query in which a list (selected from items in a select box) are > searched by. My problem stems from the fact that this list contains > City, St and these are being counted as 2 enteries, not 1. Is there a > way to change the default separator for a select box or does anyone have > any other suggestions? Query follows. > > SELECT > b.CONTRACTMARKET,b.CHANNEL,b.AGENTNAME, > a.CONTRACTCONTACTNAME, > a.CONTRACTADDRESS, a.CONTRACTCITY, > a.CONTRACTSTATE, a.CONTRACTZIP, > b.COMMISSIONTYPE, b.AGREEMENTNAME, > to_char(b.STARTDATE,'mm/dd/yyyy') as STARTDATE, c.TERRITORIES, > b.ACCOUNTMANAGER > > from agentinfo a, contractinfo b, TERRITORIES c > where a.agentid = b.agentid(+) > AND b.contractid = c.contractid(+) > <cfif arguments.mkt neq "all"> > AND lower(contractmarket) in > (<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#lcase(arguments.mkt)#" > list="Yes">) > </cfif> > > -- > Auxilium meum a Domino > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - New Atlanta http://www.newatlanta.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189167 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54