Re: array help how do I do this?

2010-06-30 Thread Glyn Jackson
not an array issues must be to do with the upper-case conversion again, how do i get around that with... response['hotspots'] = [ { distance ="100",

array help how do I do this?

2010-06-30 Thread Glyn Jackson
can anyone tell me what I am doing wrong here as as the hotspots does not seem to like this array i.e. the web service responses back "Required field 'title'" etc for all fields var response = StructNew();

Re: Coldfusion Array help

2008-04-17 Thread James Holmes
At that point you could loop through the URL structure in a collection loop, which is even nicer. On Fri, Apr 18, 2008 at 12:46 PM, AJ Mercer <[EMAIL PROTECTED]> wrote: > That is a horrible URL to work with > Do you have any control over that? > > If so, try something like > ?group1=20&group2=1

Re: Coldfusion Array help

2008-04-17 Thread Azadi Saryev
first advice: scope your variables. your should be . will save you debugging headache when you decide to name another var in some other scope 'group'... cf has a lot of list manipulation functions, and they all are very good. check out livedocs or cfml reference for more details. a few things t

Re: Coldfusion Array help

2008-04-17 Thread AJ Mercer
That is a horrible URL to work with Do you have any control over that? If so, try something like ?group1=20&group2=16,3,17&group3=2,11,18 The you can use CGI.query_string as a list of lists loop through with a delimiter of '&' to get you groups then do listFirst & listLast with a delimiter of '=

Re: Coldfusion Array help

2008-04-17 Thread Mike Chabot
You can have two list loops. For the outer loop use "g" in "group" as the list delimeter. The use ListFirst and ListLast with a : delimeter to break apart the group label from the group values. Then loop over the ListLast comma list of values. Also you might need a two dimensional array or a struct

Coldfusion Array help

2008-04-17 Thread Brian Sheridan
Im not that familiar with Coldfusion and I'm learning. I have spent alot of time with no luck. Can someone please take a peek at my code and help me arrange this data correctly. Any help much appreciated. - The data is set from a JS v

Re: Array Help

2008-01-08 Thread Ian Skinner
Robert Harrison wrote: > 1. Look in the array to see if a value exists and, if so, return the key. > Not the most elegant solution, but dirt simple. searchValue = "13" key = ''; for (i=1;i lte arrayLen(myAry); i = i + 1) { if (myAry[i] = searchValue) { key = i; break;

Array Help

2008-01-08 Thread Robert Harrison
I'm creating an array. It's a list of record numbers to be looked up later. This is the code. After the array is built it will be a list of key and id numbers, like below (only much longer): Key Value 1 17 2 24 3 37 4 8 5 32 I need to be a

Re: CF array help

2006-11-17 Thread Adrian
Not sure if I've read your question right, but heres a tip: The group attribute can often be used to avoid the need for arrays. Try this: #PRJ_PointID#, #PRJ_MainID#, ,#fund_name# The output is not exactly the same as your desired output, but Im hoping thats be

Re: CF array help

2006-11-16 Thread J Robinson
I should have explained where I am at. I have run the qury to get the data and then created and populated the 2darray in a loop. Code shown below. SELECT PRJ_PointID, PRJ_MainID, Fund_Name FROM PRJ_FundAmount GROUP BY PRJ_PointID, PRJ_MainID, Fund_Name N

RE: CF array help

2006-11-15 Thread Robert Harrison
Oh yeah, and that's a query and output, not an array. But that's looks like what you are asking for. Robert -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 7:17 PM To: CF-Talk Subject: RE: CF array help Do:

RE: CF array help

2006-11-15 Thread Robert Harrison
:[EMAIL PROTECTED] Sent: Wednesday, November 15, 2006 7:10 PM To: CF-Talk Subject: Re: CF array help http://tutorial150.easycfm.com/ On 11/15/06, J Robinson <[EMAIL PROTECTED]> wrote: > We are using cf with access as a database for an application here at work. I've only been using cf for

Re: CF array help

2006-11-15 Thread Charlie Griefer
http://tutorial150.easycfm.com/ On 11/15/06, J Robinson <[EMAIL PROTECTED]> wrote: > We are using cf with access as a database for an application here at work. > I've only been using cf for about 2 weeks now so I'm a little green. I have > an access table that stores project funding information

CF array help

2006-11-15 Thread J Robinson
We are using cf with access as a database for an application here at work. I've only been using cf for about 2 weeks now so I'm a little green. I have an access table that stores project funding information in it that I need to manipulate. here is a snippet from the table: PRJ_PointID PRJ_

RE: Multivalued Array help

2005-01-31 Thread Adrian Lynch
nt: 14 January 2005 19:17 To: CF-Talk Subject: Re: Multivalued Array help I was recently testing something and made an interesting discovery... thisVar.testStruct.myVal = "some value"; Actually works... without a structNew() call to create it. So... new question... do we go ahead

Re: Multivalued Array help

2005-01-17 Thread Al Everett
This is new in CFMX. If you use dot notation CFMX assumes you are referencing a structure and creates it if it doesn't exist. CF5 and prior would create a simple variable in the local scope with a dot in it. http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFM

Re: Multivalued Array help

2005-01-17 Thread Adam Haskell
nal Message- > From: Charles Heizer [mailto:[EMAIL PROTECTED] > Sent: 14 January 2005 20:40 > To: CF-Talk > Subject: Re: Multivalued Array help > > Ok, great. > > I have noticed in the two responses to my question both of you > mentioned using cfscript. Is there an adva

RE: Multivalued Array help

2005-01-17 Thread Adrian Lynch
I only did it cos it looked closer to your php code. Ben did it cos cfscript bribed him! :OD Ade -Original Message- From: Charles Heizer [mailto:[EMAIL PROTECTED] Sent: 14 January 2005 20:40 To: CF-Talk Subject: Re: Multivalued Array help Ok, great. I have noticed in the two responses

Re: Multivalued Array help

2005-01-17 Thread Jared Rypka-Hauer - CMG, LLC
I was recently testing something and made an interesting discovery... thisVar.testStruct.myVal = "some value"; Actually works... without a structNew() call to create it. So... new question... do we go ahead and imply a struct simply by syntax, or do we, for the sake of protocol and readabili

Re: Multivalued Array help

2005-01-14 Thread Ben Doom
Charles Heizer wrote: > I have noticed in the two responses to my question both of you > mentioned using cfscript. Is there an advantage to using cfscript vs. > using cfset and declaring structure? It's easier to type. :-) --Ben

Re: Multivalued Array help

2005-01-14 Thread Charles Heizer
f you want to preserve the case of the struct keys, user item["level"] > syntax instead. > > Ade > > -Original Message- > From: Charles Heizer [mailto:[EMAIL PROTECTED] > Sent: 14 January 2005 18:50 > To: CF-Talk > Subject: Multivalued Array help > >

RE: Multivalued Array help

2005-01-14 Thread Adrian Lynch
se of the struct keys, user item["level"] syntax instead. Ade -Original Message- From: Charles Heizer [mailto:[EMAIL PROTECTED] Sent: 14 January 2005 18:50 To: CF-Talk Subject: Multivalued Array help Hello, If I wanted to do a multi-valued array in php I would initialize the

Re: Multivalued Array help

2005-01-14 Thread Ben Doom
Associative arrays in PHP are basically the equivalent of structures in CF. So, in CFSCRIPT... item = structnew(); item.level = "level 12"; item.ecs = "something else"; // alternate syntax item["dn"] = "third data"; and so forth. --Ben Charles Heizer wrote: > Hello, > If I wanted to do a mult

Multivalued Array help

2005-01-14 Thread Charles Heizer
Hello, If I wanted to do a multi-valued array in php I would initialize the array like this, how would I do this in ColdFusion? Thanks, - Charles PHP Example -- $item = array( 'level'=> $level, 'ecs' => $expanded, 'dn'=> $dn,

Re: Array Help

2004-09-07 Thread KeAnne Hoeg
<br>     {<br> <br>     return true;<br> <br>     }<br> <br> //--><br> <br> <br> <br> <!--<br> <br> function  _CF_checkCFForm_2(_CF_this)<br> <br>     {<br> <br>     return true;<br> <

Re: Array Help

2004-09-07 Thread Charlie Griefer
Be easier to troubleshoot this if you could post the actual HTML from the browser. Not sure if this might be the problem...your tag isn't closed (no ">") ? ...also, parameterExists() has been deprecated since roughly CF 3 (somebody will likely correct me if i'm wrong there...but it's been a whil

Array Help

2004-09-07 Thread KeAnne Hoeg
I have a form on which I am trying to populate a few text boxes with SSN and address based on the name selected in a drop-down box.  I can see that the array was created successfully, but I am having problems getting the selected value to work with the array to find the SSN and address. The error m

RE: array help on a query insert loop

2003-09-19 Thread Michael Traher
PROTECTED] Sent: 18 September 2003 18:22 To: CF-Talk Subject: array help on a query insert loop I need help writing an array to dump the values of this cart (session.crtcalid)so they can loop one at a time and insert in to my query. Can anyone help me with this? All help will be appreciated

array help on a query insert loop

2003-09-18 Thread laritru
I need help writing an array to dump the values of this cart (session.crtcalid)so they can loop one at a time and insert in to my query. Can anyone help me with this? All help will be appreciated. As of now it tries to insert all the values at once for xlocator which is the firld that i am

RE: Array Help - SOLVED

2002-09-25 Thread S . Isaac Dealey
> Yea, it was a stupid mistake. Not enough caffeine today. > -Original Message- > From: Adrian Lynch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 4:10 PM > To: CF-Talk > Subject: RE: Array Help - SOLVED > I lost this thread half way through, but why

RE: Array Help - SOLVED

2002-09-25 Thread Tony Carcieri
Yea, it was a stupid mistake. Not enough caffeine today. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 4:10 PM To: CF-Talk Subject: RE: Array Help - SOLVED I lost this thread half way through, but why do you need hot as a list and

RE: Array Help - SOLVED

2002-09-25 Thread Adrian Lynch
I lost this thread half way through, but why do you need hot as a list and an array? Ade -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 20:53 To: CF-Talk Subject: RE: Array Help - SOLVED You'll probably get better performance ( if

RE: Array Help - SOLVED

2002-09-25 Thread S . Isaac Dealey
gt; > #Counter#: #ListGetAt(y, Counter)# > > -Original Message- > From: Tony Carcieri [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 2:28 PM > To: CF-Talk > Subject: Array Help > Hi everyone, > I am developing a sales thing for our reps

RE: Array Help

2002-09-25 Thread Mosh Teitelbaum
[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 2:49 PM > To: CF-Talk > Subject: RE: Array Help > > > by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list > > Ade > > -Original Message- > From: Tony Carcieri [mailto:[EMAIL PROTECTE

Re: Array Help

2002-09-25 Thread S . Isaac Dealey
I'd recommend not using a loop on the action page ... change the structure of the form like this: checked> Then on the action page UPDATE mytable SET hot = CASE WHEN mykey IN (#form.hotitems#) THEN 1 ELSE 0 END WHERE mykey IN (#form.availableitems#) Shoul

RE: Array Help - SOLVED

2002-09-25 Thread Bryan Love
:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 12:01 PM To: CF-Talk Subject: RE: Array Help - SOLVED I figured it out. Just FYI: #Counter#: #ListGetAt(y, Counter)# -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:28 PM T

RE: Array Help

2002-09-25 Thread Bryan Love
- Todd Beamer, Flight 93 -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 11:28 AM To: CF-Talk Subject: Array Help Hi everyone, I am developing a sales thing for our reps and I got yanked off a project to do it and my brain

RE: Array Help - SOLVED

2002-09-25 Thread Tony Carcieri
I figured it out. Just FYI: #Counter#: #ListGetAt(y, Counter)# -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 25, 2002 2:28 PM To: CF-Talk Subject: Array Help Hi everyone, I am developing a sales thing for our reps and I got yanked

RE: Array Help

2002-09-25 Thread Adrian Lynch
by the time you get to here #ListGetAt(x, Counter)#, x is no longer a list Ade -Original Message- From: Tony Carcieri [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 19:28 To: CF-Talk Subject: Array Help Hi everyone, I am developing a sales thing for our reps and I got yanked off

Array Help

2002-09-25 Thread Tony Carcieri
Hi everyone, I am developing a sales thing for our reps and I got yanked off a project to do it and my brain is fuzzy. I have a column that gets returned that is titled Hot (a bit field in a SQL 2K DB). This column has checkboxes that can be checked so that the DB will flag them for future conta

RE: Array Help?

2002-08-09 Thread Raymond Camden
, ColdFusion Jedi Master for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Joe Eugene [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 12:21 PM > To: CF-Talk >

Re: Array Help?

2002-08-09 Thread Joe Eugene
CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, August 09, 2002 10:26 AM Subject: RE: Array Help? > > Whats the advantage of using a structure of arrays?? > > It may or may not be an advantage. When deciding what type of data > structure to use, you should always consider what your

RE: Array Help?

2002-08-09 Thread Kris Pilles
Thanks for all your help... -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:49 AM To: CF-Talk Subject: RE: Array Help? > > If you are completely new to structures, your best bet is > to read the > > docs. For a qu

RE: Array Help?

2002-08-09 Thread Raymond Camden
> > If you are completely new to structures, your best bet is > to read the > > docs. For a quickie... > > I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the > "structure" of structures. Until I had that tool I never > really grokked > structures at all. Sorry for the noise,

RE: Array Help?

2002-08-09 Thread Everett, Al
> If you are completely new to structures, your best bet is to read the > docs. For a quickie... I found CFDUMP (or CF_DUMP or CFA_DUMP) invaluable in visualizing the "structure" of structures. Until I had that tool I never really grokked structures at all. ___

RE: Array Help?

2002-08-09 Thread Raymond Camden
> Also Since im asking 1000 questions... Should I just be dropping > this data into a table instead of storing it in memory??? I > don't want > to eat up all the ram on the server ya know??? > I would say it depends on your site usage. Storing some user info in the application scope is n

RE: Array Help?

2002-08-09 Thread Raymond Camden
Hmm, lot's of things here, I'll comment in code. > How would I get the data out if I did that??? If you are completely new to structures, your best bet is to read the docs. For a quickie... #x.name# or #x["name"]# > > > > > Application.UsersInfo = StructNew(); > > > First, if you

RE: Array Help?

2002-08-09 Thread Raymond Camden
> Whats the advantage of using a structure of arrays?? It may or may not be an advantage. When deciding what type of data structure to use, you should always consider what your needs are. Ie, how do you plan on storing and using the data. In general, I don't often use 2d arrays because normally i

RE: Array Help?

2002-08-09 Thread Kris Pilles
bject: RE: Array Help? ere is my code. What your saying is that I put an array inside of the structure??? How would I get the data out if I did that??? Application.UsersInfo = StructNew(); user_cfid = Evaluate(CFID); user_info = Now(); user_Host = CGI.Remote_host; user

RE: Array Help?

2002-08-09 Thread Kris Pilles
Subject: RE: Array Help? You don't have to do anything to increase x. If you want to find the current length of Array, just use arraylen(). This code will add a new array to the end of the existing array: CF let's you populate arrays without popula

RE: Array Help?

2002-08-09 Thread Kris Pilles
and duplicate the cunctionality of Groopz.com by using CF & Java.. But I need to refine the session management piece first -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:02 AM To: CF-Talk Subject: RE: Array Help? You don't h

RE: Array Help?

2002-08-09 Thread Raymond Camden
usion Jedi Master for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Kris Pilles [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 09, 2002 9:53 AM > To: CF-Talk

Array Help?

2002-08-09 Thread Kris Pilles
I need some help with 2-dimensional arrays. Basically I want to have an array that dynamically adds and removes information about my active sites sessions. I understans how to get all the data, what I do not understand is how to Increacse the X in my array: array[x][1] Array[x][2] Array[x][3]

RE: Dynamic Array Help

2002-06-27 Thread Bruce, Rodney S HQISEC/SIGNAL
Array Help Rodney: I have created and array and I'm sending it back to my client page via activeserver Now, I have this array 2 dimensional and I don't know how to take all the data (which is just my query results) and read it so that I can break it down into records and popula

RE: Dynamic Array Help

2002-06-27 Thread Bruce, Rodney S HQISEC/SIGNAL
document.all.mydiv.innerHTML = newtable; } Does this help? ROdney -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:06 AM To: CF-Talk Subject: RE: Dynamic Array Help Rodney: I have created and array and I

RE: Dynamic Array Help

2002-06-27 Thread Kris Pilles
e, Rodney S HQISEC/SIGNAL [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 11:23 AM To: CF-Talk Subject: RE: Dynamic Array Help Kris If you are using Fusionscript, which I think you mentioned. There is a Fusionscript list as well. You can go to www.fusionscript.com to join

RE: Dynamic Array Help

2002-06-27 Thread Bruce, Rodney S HQISEC/SIGNAL
kicked in yet ;o) Rodney -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 7:53 AM To: CF-Talk Subject: RE: Dynamic Array Help Ok I've got my array However Now, I sent it back to where it needs to go... How do I take the

RE: Dynamic Array Help

2002-06-27 Thread Philip Arnold - ASP
> Ok I've got my array However Now, I sent it back > to where it needs to go... How do I take the data within the > array and basically query it so I can sort it so I can parse > the records out to populate my form??? WDDX? You can convert large data blocks into WDDX and pass them ar

RE: Dynamic Array Help

2002-06-27 Thread Kris Pilles
ECTED]] Sent: Thursday, June 27, 2002 10:23 AM To: CF-Talk Subject: RE: Dynamic Array Help As in -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Friday, 28 June 2002 12:16 AM To: CF-Talk Subject: Dynamic Array Help Haven't written a dynamic array in a whil

RE: Dynamic Array Help

2002-06-27 Thread Neil Clark - =TMM=
Macromedia http://www.macromedia.com/go/team Announcing Macromedia MX!! http://www.macromedia.com/software/trial/ -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: 27 June 2002 15:16 To: CF-Talk Subject: Dynamic Array Help Haven't written a dynamic array in a whil

RE: Dynamic Array Help

2002-06-27 Thread Kris Pilles
bject: RE: Dynamic Array Help Actually Query results are arrays already... You can refer to them like this: QueryName['Columname'][row#] -Cameron - Cameron Childress Sumo Consulting Inc. --- cell: 678-637-5072 aim: cameroncf email: [EMAIL PROTECTED] > ---

RE: Dynamic Array Help

2002-06-27 Thread Andrew Scott
As in -Original Message- From: Kris Pilles [mailto:[EMAIL PROTECTED]] Sent: Friday, 28 June 2002 12:16 AM To: CF-Talk Subject: Dynamic Array Help Haven't written a dynamic array in a while and need some help. I think ive forgotten how to... Heres the column names

RE: Dynamic Array Help

2002-06-27 Thread cameronc
> From: Kris Pilles [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 10:16 AM > To: CF-Talk > Subject: Dynamic Array Help > > > Haven't written a dynamic array in a while and need some help. I > think ive forgotten how to... > > Heres the column name

Dynamic Array Help

2002-06-27 Thread Kris Pilles
Haven't written a dynamic array in a while and need some help. I think ive forgotten how to... Heres the column names ID AID Title Description DID Grade Science Can someone tell me how to create a dynamic array... I need to store my query results in an array so I can ship it through m

simple array help - newbie

2001-09-07 Thread Amanda Stern
Hello, I am trying to build an array and cannot get around this error message: The element at position 2 in dimension 1 of object "aggdata.AggHours" cannot be found. The object has elements in positions 1 through 1. Please, modify the index expression. This is my code for populat

AW: Array help?

2001-02-14 Thread Christoph Schmitz
no "holes" in the sequence. HTH, Chris > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 15. Februar 2001 00:10 > An: CF-Talk > Betreff: Array help? > > > New to the list, new to the language, quite

Re: Array help?

2001-02-14 Thread Scott Weikert
Try using a structure, using the line number as the key, instead of an array. A bit more flexible IMHO. --Scott - Original Message - From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 4:09 PM Subject: Array help? >

Array help?

2001-02-14 Thread Allan . Davis
New to the list, new to the language, quite possibly in WAY over my head...and posting this to the list at the advice of our webmaster. I'm using Cold Fusion to compare two files by loading them into arrays, and I'd like to know if anyone can help me out with some array problems. (The short expl