As Andrew says, it's best done in the DB before your data becomes a list.
If you can't do that for some reason, convert your list to an array and loop
over that. Arrays are much faster than long lists. The longer the list/array,
the bigger the performance difference.
- Cameron
On May 3,
Hi all,
I'm trying to work out how to point to the file location of a component
using cfinvoke.
I am storing all of the component files for my application in one directory
which is one step off the web root.
Many thanks in advance,
Jenny
--
I am using the free version of SPAMfighter.
We are
I have a corrupt collection and am trying to use the mkvdk utility to repair
it.
However I am getting an error message that the verity locale is english and
my cmd prompt locale is englishx.
So I intend to use the chcp command to change the locale of my cmd prompt
window.
I have tried the
Can you use a cfmapping?
On Thu, May 3, 2012 at 10:43 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
Hi all,
I'm trying to work out how to point to the file location of a component
using cfinvoke.
I am storing all of the component files for my application in one directory
When getting the information out of the database, us distinct on the
field.
Only one list is coming from the database, the other is from a
completely different source.
convert your list to an array and loop over that
The small list is the one that will have the operations done to it. The
Hi Ray,
Thanks for your reply.
Yes I could use a cfmapping, however
I'm a bit confused as I thought the cfmappings were for accessing files
outside the web root or its sub-directories.
I read By default, ColdFusion MX defines a mapping for the web root (/).
You can define additional
You'll want to use dot notation. So, using your example of
/gallerycomponents/functions.cfc, you'd do the following:
cfinvoke component=gallerycomponents.functions method=foo /
HTH
On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
Hi Ray,
Thanks for
In reading through this thread, it appears as though one of your lists (not
clear whether it's the short or long list) is sourced from database, and the
other not. But if you've got one list of key column values in a CF List var,
then you should be able to query the database to pull out
Try component=gallerycomponents.functions
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Thanks Bobby, sorted.
-Original Message-
From: Bobby [mailto:bo...@acoderslife.com]
Sent: 03 May 2012 17:41
To: cf-talk
Subject: Re: CFINVOKE - Component Location
Try component=gallerycomponents.functions
~~
~~~|
Order
Thanks Matt.
-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com]
Sent: 03 May 2012 17:36
To: cf-talk
Subject: Re: CFINVOKE - Component Location
You'll want to use dot notation. So, using your example of
/gallerycomponents/functions.cfc, you'd do the following:
On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:
Then I tried running the cfinvoke as follows, but it appears I have some
syntax wrong.
cfinvoke component=/gallerycomponents/functions.cfc method=getTags
No, you use dot notation for CFCs.
Try
cfinvoke
Hi guys, I have some code going to print (public scrutiny) and wanted
to see if anyone was available for hourly code review.
This isn't a formal job but something you would be paid for.
Should have experience in CFCs, constructors, cfscript, MVC, REST,
mime types, ORM and CSRF
Thanks
Just for clarification...
Why would CF begin to use dot notation for cfc's instead of sticking
with the familiar ../, etc, syntax?
The dot notation has been a pain in my rear on more than one occasion.
Rick
-Original Message-
From: Raymond Camden [mailto:raymondcam...@gmail.com]
CFCs have used dot notation since Day 1 of their existence. The reason is
because CFCs (loosely) represent classes, which are grouped in packages. In
other languages, like Java - which CF runs on top of, those packages are
always denoted in dot notation. For example:
java.util.List
Continuing on that thought (hit [send] too soon)...
On the other hand, *.cfm templates match up with a standard file, and
therefore use the traditional web separator, the slash (/).
On Thu, May 3, 2012 at 12:52 PM, Matt Quackenbush quackfu...@gmail.comwrote:
CFCs have used dot notation since
In all my work with CF, I have always housed my CFCs in a dedicated root
directory (typically named CFC), and I just set up the path alias in CF Admin,
so that all I ever have to use in the component attribute of the cfinvoke tag
is the actual name of the component:
cfinvoke
On Thu, May 3, 2012 at 7:38 PM, Rick Faircloth wrote:
Why would CF begin to use dot notation for cfc's instead of sticking
with the familiar ../, etc, syntax?
Because it represents the package and the component instead of the
directory and the file, i.e. it represents a logical hierarchy
On Thu, May 3, 2012 at 12:10 PM, Les Mizzell lesm...@bellsouth.net wrote:
convert your list to an array and loop over that
The small list is the one that will have the operations done to it. The
large list is the one that I need to search for duplicate values. If the
server was running
You could also use a query-of-queries with where biglistitem not in
(smalllistitems).
On 5/3/12 1:29 PM, Cameron Childress wrote:
On Thu, May 3, 2012 at 12:10 PM, Les Mizzelllesm...@bellsouth.net wrote:
convert your list to an array and loop over that
The small list is the one that
Ever since ColdFusion 6, ColdFusion has always had the feature to do an
ArrayFind()
http://www.andyscott.id.au/2012/5/3/ColdFusion-and-using-ArrayFind-prior-to-ColdFusion-9
--
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543
Ever since ColdFusion 6, ColdFusion has always had the feature to do
anArrayFind()
True. Though indexOf() has a few additional nuances over arrayFind. It is both
case and data type sensitive.
-Leig
~|
Order the Adobe
22 matches
Mail list logo