RE: [KCFusion] Parsing two lists

2002-05-02 Thread Justin Hansen

cfif listLen(form.Item) gt 0 and (listLen(form.Item) eq
listLen(form.ItemQty))
cfloop from=1 to=#listLen(form.Item)# index=i
cfoutput
#listGetAt(form.ItemQty,i)# #listGetAt(form.Item,i)#
/cfoutput
/cfloop
/cfif


Justin Hansen
--
Uhlig Communications
Web Developer / Programmer
--
[EMAIL PROTECTED]
913-754-4273
--

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Keith Purtell
Sent: Thursday, May 02, 2002 11:45 AM
To: KCFusion (E-mail)
Subject: [KCFusion] Parsing two lists


This should be simple but my code keeps failing. I have a form that sends
multiple values for the same form field. They arrive at my processing
template as two lists; one for the item being ordered and another for
quantity.

Field name Value
-- --
Item   Servers,Modems,Printers
ItemQty8,6,5


The output I seek is:
8 Servers
6 Modems
5 Printers

I can't change the sending form; it's a mixture of CF, HTML and JavaScript
that has been declared final. However I'd like assistance with the
processing end. Any tips on the easiest way to approach this?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.



__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]


 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



Re: [KCFusion] Parsing two lists

2002-05-02 Thread Adaryl Wakefield

Would you be willing to send us a code snippit? I am not quite sure i have a
handle on the problem.
A.
- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 11:44 AM
Subject: [KCFusion] Parsing two lists


 This should be simple but my code keeps failing. I have a form that sends
 multiple values for the same form field. They arrive at my processing
 template as two lists; one for the item being ordered and another for
 quantity.

 Field name Value
 -- --
 Item   Servers,Modems,Printers
 ItemQty8,6,5


 The output I seek is:
 8 Servers
 6 Modems
 5 Printers

 I can't change the sending form; it's a mixture of CF, HTML and JavaScript
 that has been declared final. However I'd like assistance with the
 processing end. Any tips on the easiest way to approach this?

 Keith Purtell, Web/Network Administrator
 VantageMed Operations (Kansas City)
 Email:  [EMAIL PROTECTED]

 CONFIDENTIALITY NOTICE: This email message, including any attachments, is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact the sender by reply email and destroy all copies of the original
 message.



 __
 The KCFusion.org list and website is hosted by Humankind Systems, Inc.
 List Archives http://www.mail-archive.com/cf-list@kcfusion.org
 Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
 To Subscribe mailto:[EMAIL PROTECTED]
 To Unsubscribe mailto:[EMAIL PROTECTED]


 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



RE: [KCFusion] Parsing two lists

2002-05-02 Thread Ellis, Randy

CFIF IsDefined(form.Item) AND IsDefined(form.ItemQty)
cfset ItemArray = ListToArray(Item)
cfset ItemQtyArray = ListToArray(ItemQty)
CFIF ArrayLen(ItemArray) EQ ArrayLen(ItemQtyArray)
CFLOOP FROM=1 TO=#ArrayLen(ItemArray)# INDEX=Idx
CFOUTPUT
#ItemQtyArray[variables.Idx]#
#ItemArray[variables.Idx]#BR
/CFOUTPUT
/CFLOOP
CFELSE
The Items list and Quantities list do not have the same
number of values.
/CFIF
/CFIF

-Original Message-
From: Keith Purtell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:45 AM
To: KCFusion (E-mail)
Subject: [KCFusion] Parsing two lists


This should be simple but my code keeps failing. I have a form that sends
multiple values for the same form field. They arrive at my processing
template as two lists; one for the item being ordered and another for
quantity.

Field name Value
-- --
Item   Servers,Modems,Printers
ItemQty8,6,5


The output I seek is:
8 Servers
6 Modems
5 Printers

I can't change the sending form; it's a mixture of CF, HTML and JavaScript
that has been declared final. However I'd like assistance with the
processing end. Any tips on the easiest way to approach this?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.

 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 
 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



RE: [KCFusion] Parsing two lists

2002-05-02 Thread Keith Purtell

Yipes; more solutions than I can shake a stick at! I already tried one of
those suggested an it worked. I'll try the others with efficiency and code
re-use in mind. Thanks a million!

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]


CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Ellis, Randy
Sent: Thursday, May 02, 2002 12:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [KCFusion] Parsing two lists


CFIF IsDefined(form.Item) AND IsDefined(form.ItemQty)
cfset ItemArray = ListToArray(Item)
cfset ItemQtyArray = ListToArray(ItemQty)
CFIF ArrayLen(ItemArray) EQ ArrayLen(ItemQtyArray)
CFLOOP FROM=1 TO=#ArrayLen(ItemArray)# INDEX=Idx
CFOUTPUT
#ItemQtyArray[variables.Idx]#
#ItemArray[variables.Idx]#BR
/CFOUTPUT
/CFLOOP
CFELSE
The Items list and Quantities list do not have the same
number of values.
/CFIF
/CFIF

-Original Message-
From: Keith Purtell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:45 AM
To: KCFusion (E-mail)
Subject: [KCFusion] Parsing two lists


This should be simple but my code keeps failing. I have a form that sends
multiple values for the same form field. They arrive at my processing
template as two lists; one for the item being ordered and another for
quantity.

Field name Value
-- --
Item   Servers,Modems,Printers
ItemQty8,6,5


The output I seek is:
8 Servers
6 Modems
5 Printers

I can't change the sending form; it's a mixture of CF, HTML and JavaScript
that has been declared final. However I'd like assistance with the
processing end. Any tips on the easiest way to approach this?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]