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",
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();
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
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
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 '=
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
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
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;
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
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
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
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:
:[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
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
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_
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
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
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
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
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
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
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
>
>
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
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
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,
<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>
<
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
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
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
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
> 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
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
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
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
[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
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
:[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
- 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
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
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
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
, 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
>
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
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
> > 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,
> 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.
___
> 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
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
> 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
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
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
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
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
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]
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
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
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
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
> 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
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
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
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]
> ---
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
> 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
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
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
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
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?
>
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
69 matches
Mail list logo