Can you call a custom tag from cfscript in MX if you use cfimport?
I need an example
Justin Hansen
--
Uhlig Communications
Systems Engineer
--
[EMAIL PROTECTED]
913-754-4273
CFIMPORT adds tag support w/ a name space which doesn't work in
cfscript. Ie, you can't do:
tagprefix:tagname()
However, you can call custom tags in cfscript if you use a work around.
You can easily design a CFFUNCTIOn based wrapper for your custom tag, or
write a generic Module UDF (I'm
does anyone know of any resources online that define what a developer can do within a
cfscript tag?.. a white paper perhaps...?
Thanks!
Michael Tangorre
__
Signup for the Fusion Authority news alert and keep up with the latest
of any resources online that define what a developer can do
within a cfscript tag?.. a white paper perhaps...?
TM Thanks!
TM Michael Tangorre
TM
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http
http://www.houseoffusion.com/script.ppt
http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Applications_with_CFML/CFScript.jsp
I could have sworn Michael was working on an HTML CFScript document, but
I don't see it linked off of the HOF home page.
At 10:40 AM 7/31/2002 -0400
thanks!
-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 10:46 AM
To: CF-Talk
Subject: Re: CFSCRIPT
http://www.houseoffusion.com/script.ppt
http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Applications_with_CFML
thanks!
-Original Message-
From: Critter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 10:40 AM
To: CF-Talk
Subject: Re: CFSCRIPT
oi Michael!!
here's some info:
http://www.houseoffusion.com/script.ppt
--
Critz
Macromedia Certified Advanced ColdFusion Developer
www.houseoffusion.com/docs/cfscript.htm
does anyone know of any resources online that define what a developer can do within
a cfscript tag?.. a white paper perhaps...?
Thanks!
Michael Tangorre
__
Get the mailserver
has anyone found a good way to loop over lists and queries in cfscript?
any ideas would be well appreciated!
--Josh
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk
www.houseoffusion.com/docs/cfscript.htm
8.7 loops over a query and 8.8 loops over a list.
has anyone found a good way to loop over lists and queries in cfscript?
any ideas would be well appreciated!
--Josh
That's exactly what I needed! Thanks!
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 11:19 AM
To: CF-Talk
Subject: Re: looping over lists and queries in cfscript
www.houseoffusion.com/docs/cfscript.htm
8.7 loops over a query and 8.8
To: CF-Talk
Subject: Re: looping over lists and queries in cfscript
www.houseoffusion.com/docs/cfscript.htm
8.7 loops over a query and 8.8 loops over a list.
has anyone found a good way to loop over lists and queries in cfscript?
any ideas would be well appreciated!
--Josh
Perhaps someone else can see what I am doing wrong here (cf5). I've had this
problem in the past, and just included the code inline with a cfloop around
my cfscript, but now I want to convert the code to a UDF...
Here is the code.
This works fine:
cfloop collection=#transDOM.selectNodes
PROTECTED]]
Sent: Monday, July 15, 2002 2:56 PM
To: CF-Talk
Subject: cfscript for in vs cfloop collection...
Perhaps someone else can see what I am doing wrong here (cf5). I've had this
problem in the past, and just included the code inline with a cfloop around
my cfscript, but now I want
Incorrect. for(x in foo) normally works just fine.
cfscript
x = structNew();
x.alpha = ray;
x.gamma = camden;
for(i in x) {
writeOutput(key=#i#, val is #x[i]#br);
}
/cfscript
===
Raymond Camden, ColdFusion Jedi Master
PROTECTED]
Sent: Monday, July 15, 2002 4:00 PM
Subject: RE: cfscript for in vs cfloop collection...
Yep... the for loop expects a counter (for (i = 1; i le Len(somevar); i =
i
+ 1) ) There is no in key word for it. sorry. You will have to
determine
the number of childnodes in /trackresponse
No kidding? Where is that documented?
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 2:08 PM
To: CF-Talk
Subject: RE: cfscript for in vs cfloop collection...
Incorrect. for(x in foo) normally works just fine.
cfscript
x = structNew
: Monday, July 15, 2002 2:08 PM
To: CF-Talk
Subject: RE: cfscript for in vs cfloop collection...
Incorrect. for(x in foo) normally works just fine.
cfscript
x = structNew();
x.alpha = ray;
x.gamma = camden;
for(i in x) {
writeOutput(key=#i#, val is #x[i]#br);
}
/cfscript
Message-
From: Jon Hall [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 3:56 PM
To: CF-Talk
Subject: cfscript for in vs cfloop collection...
Perhaps someone else can see what I am doing wrong here (cf5). I've had this
problem in the past, and just included the code inline with a cfloop
: RE: cfscript for in vs cfloop collection...
Incorrect. for(x in foo) normally works just fine.
cfscript
x = structNew();
x.alpha = ray;
x.gamma = camden;
for(i in x) {
writeOutput(key=#i#, val is #x[i]#br);
}
/cfscript
in assuming that cfloop-collection and cfscript
for-in loops are the same?
You might try setting the pointer to the object above the loop...
myxmlobject = objMXLCOM.selectNodes('/TrackResponse/Activity');
for (i in myxmlobject) {
... whatever...
}
it may just be that CF doesn't like
No kidding? Where is that documented?
Yea, I don't remember the for-in syntax being documented in the Developing
Web Applications with ColdFusion pdf either... but it does work... it's
standard C/C++/Java/JavaScript syntax which is what they were trying to
emulate with cfscript -- which
- Original Message -
From: S. Isaac Dealey [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 15, 2002 4:30 PM
Subject: Re: cfscript for in vs cfloop collection...
This works fine:
cfloop collection=#transDOM.selectNodes(/TrackResponse/Activity)#
item=i
This throws
is the Force, and a powerful ally it is. - Yoda
-Original Message-
From: Jon Hall [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 4:48 PM
To: CF-Talk
Subject: Re: cfscript for in vs cfloop collection...
Tried it...wont work. It says it's not a valid CF structure,
which it isn't
What is transDOM then? I'm gathering that's an XML object? Have you
looked into the proper xml functions? What does Allaire have to do with
your code below btw?
~Todd
On Mon, 15 Jul 2002, Jon Hall wrote:
Tried it...wont work. It says it's not a valid CF structure, which it
isn't...but
Subject: RE: cfscript for in vs cfloop collection...
Yep... the for loop expects a counter (for (i = 1; i le Len(somevar); i = i
+ 1) ) There is no in key word for it. sorry. You will have to determine
the number of childnodes in /trackresponse/activity and use that as your
counter.
mark
No...it's a COM object. Which I am sure is the problem.
- Original Message -
From: Raymond Camden [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 15, 2002 3:53 PM
Subject: RE: cfscript for in vs cfloop collection...
Is transDOM.selectNodes(/TrackResponse/Activity
on Neo, which would be entirely acceptable to
me. I just was wondering if I for-in worked like cfloop :)
jon
- Original Message -
From: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 15, 2002 4:51 PM
Subject: Re: cfscript for in vs cfloop collection...
What is transDOM
IMHO it is a lot cleaner and easier to read.
Shawn McKee
-Original Message-
From: Weaver, Anthony [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 2:00 PM
To: CF-Talk
Subject: RE: OT: Naming Convention choice
I have been writing CF code since 3.x and have NEVER used CFScript
I have been writing CF code since 3.x and have NEVER used CFScript. I
have
never actually found a need.
cfscript does have some speed benefits when it comes to recursively
calling something, such as building a tree. You can do the same with a
custom tag, but it's slower. Although
I have been using cfscript when i need to set multiple variables on a
page, i thought there was a benefit to using cfscript versus a large
amoung of cfsetsis this not true
__
Signup for the Fusion Authority news alert
I have been using cfscript when i need to set multiple
variables on a page, i thought there was a benefit to
using cfscript versus a large amoung of cfsetsis
this not true
It doesn't hurt anything, and may make a marginal, not to say infinitesimal,
difference in performance.
Dave
It was true in earlier versions of CF (5 on down) and may still be true in CFMX. The
savings is a small one, but every bit helps. I covered it way back in:
http://www.fusionauthority.com/alert/index.cfm?alertid=4#Laws1
I have been using cfscript when i need to set multiple variables
I have been writing CF code since 3.x and have NEVER used
CFScript. I have never actually found a need.
cfscript does have some speed benefits when it comes to
recursively calling something, such as building a tree. You
can do the same with a custom tag, but it's slower. Although
Can someone suggest a good book or site on CFSCRIPT? I'm trying to write a
script that will test a variable and if the variable is good, do some
calculations on it and return the finished value, but if it's bad, it'll
break out with an error message. Other than nesting a lot of ifs, I can't
www.houseoffusion.com/docs/cfscript.htm
At 12:11 PM 6/27/02, you wrote:
Can someone suggest a good book or site on CFSCRIPT? I'm trying to write a
script that will test a variable and if the variable is good, do some
calculations on it and return the finished value, but if it's bad, it'll
or site on CFSCRIPT? I'm trying to write a
script that will test a variable and if the variable is good, do some
calculations on it and return the finished value, but if it's bad, it'll
break out with an error message. Other than nesting a lot of ifs, I can't
figure out how to do it.
T
of the cfscript block without
converting to ODBC date.
I used to do this in straight CF code and used a javascript pop up to
display the error.
T
__
Structure your ColdFusion code with Fusebox. Get the official book at
http
At 01:57 PM 6/27/2002 -0300, you wrote:
At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote:
I'm not sure what makes a variable good in this case, but if you offer
more information, perhaps I can offer more information.
I'm checking the value of a date to make sure it's legal. (I've had no end
.) So I wrote a basic CF program to handle this, but if I
can do it as a UDF it would be much slicker (and give me some practice
creating UDFs.) Perhaps it is impossible to break out of CFSCRIPT block.
How many variables can I return with a CFSCRIPT block?
T
:
Grab the digits up to the first / and put in day, month or year, depending
on mask. Repeat for up to send /, and finally for last piece of data.
Now if there aren't enough slashes or if the day or month isn't legal, I'd
like to display and error and drop out of the cfscript block without
How many variables can I return with a CFSCRIPT block?
You mean with a UDF ? ... As many as you want ... as long as they're all part of the
same complex object like a query, structure or array ...
function foo() {
var myreturn = new Structure();
myreturn.hello = hello
I want to make sure I clarify that CFScript blocks and UDF functions are
two completely different things.
In a UDF, you can only return a single value. That value can be a
complex value (Array or Structure), though.
CFScript blocks don't explicitly return any values, although you can
At 01:46 PM 6/27/02 -0400, S. Isaac Dealey wrote:
function validDate(mydate) {
if (not
ReFind(mydate,[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9][0-9][0-9])) { return
Inavlid Date Mask; }
var day = listfirst(mydate,/);
var month = listgetat(mydate,2,/);
var year =
At 01:50 PM 6/27/02 -0400, Jeffry Houser wrote:
Are you saying that you are being given April 5th (I.e. 4/5/2002) and the
system is seeing it as May 4th (5/4/2002)? What are the problems with
EuroDate validation?
This is exactly the problem. Eurodate sometimes takes the date correctly
and
At 01:49 PM 6/27/02 -0400, S. Isaac Dealey wrote:
How many variables can I return with a CFSCRIPT block?
You mean with a UDF ? ... As many as you want ... as long as they're all
part of the same complex object like a query, structure or array ...
Sorry, I meant a UDF. Thanks
At 01:57 PM 6/27/2002 -0300, you wrote:
At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote:
I'm not sure what makes a variable good in this case, but if you
offer more information, perhaps I can offer more information.
I'm checking the value of a date to make sure it's legal. (I've had no
At 01:46 PM 6/27/02 -0400, S. Isaac Dealey wrote:
function validDate(mydate) {
if (not
ReFind(mydate,[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9][0-9][0-9])) { return
Inavlid Date Mask; }
var day = listfirst(mydate,/);
var month = listgetat(mydate,2,/);
var year =
At 02:16 PM 6/27/2002 -0400, you wrote:
At 01:57 PM 6/27/2002 -0300, you wrote:
At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote:
I'm not sure what makes a variable good in this case, but if you
offer more information, perhaps I can offer more information.
I'm checking the value of
to know.
I am really just killing time trying not to get back to real work.
Please help me achieve my goal.
cfscript
function checkDate(date) {
if (not
ReFind(^([0-9]{1,2})([[:punct:]]|[[:space:]]){1,}[0-9]{1,2}?(([[:punct:
]]|[[:space:]]){1,}([0-9]{2}|[0-9]{4}))$,date
Not sure aobut the months other than using
(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Nov) ... though it looks like your
regex has a few extra characters...
ReFind(^([0-9]{1,2})([[:punct:]]|[[:space:]]){1,}[0-9]{1,2}?(([[:punct:
]]|[[:space:]]){1,}([0-9]{2}|[0-9]{4}))$,date))
Looking at it... this
Thank You, I have been successful in avoiding real work!
I added a check for month abbreviations, full month names, as well as a
check for th,nd,rd,st. I think I am finished.
cfscript
function checkDate(date) {
date = ReReplace(date,([[:punct:]]|[[:space:]])+,/,ALL);
date
I'm not sure what makes a variable good in this case, but if you
offer more information, perhaps I can offer more information.
I'm checking the value of a date to make sure it's legal. (I've had no
end of problems with the date parsing side of CFINPUT so I'm figured I'd
do it
Hi all,
I posted a similar question on the CF forums today and was pointed in the
right direction; now I need some additional help.
I'm trying to loop over a DOM tree created with msxml. This is a snap using
cfloop. However, I want to convert my cfloop code to cfscript code so that I
can write
In CF 5 and earlier there's a limitation in the CFSCRIPT loop where it can only loop
over CF structures, not object structures. This may have been changed in CF MX (I'll
check it out).
At 01:09 PM 5/30/02, you wrote:
Hi all,
I posted a similar question on the CF forums today and was pointed
is the Force, and a powerful ally it is. - Yoda
-Original Message-
From: lmarcus [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 12:50 AM
To: CF-Talk
Subject: Re: How do you call a cfscript udf function and pass
a query to it?
Thanks guys, my worst fears are confirmed! I guess
I have a question...
Lets say that I have about 10 variables being set locally on 20 or so cfm
pages..
How much faster is using cfscript over using cfset to set the values of
these local variables?
Clint Tredway
__
This list
oi Clint!!
well you could always do some tests, but i've heard rule o thumb is more than 3
cfscript is more efficient..
--
Critz
Certified Adv. ColdFusion Developer
Crit[s2k] - CF_ChannelOP Network=Efnet Channel=ColdFusion
Monday, April 15, 2002
General rule of thumb is to set variables using cfscript if there are three
or more in a row. I do not have exact statistics to back this up, but I
have found cfscript code to execute significantly faster than regular CFML.
It is also easier to read and follow, IMHO.
-Justin Scott, Lead
a fraction of a second. How big a fraction is debatable.
At 11:41 AM 4/15/02, you wrote:
I have a question...
Lets say that I have about 10 variables being set locally on 20 or so cfm
pages..
How much faster is using cfscript over using cfset to set the values of
these local variables?
Clint
While on this topic, how about efficiency with cfoutput?
It makes sense to me that this:
select name=fred
cfloop query=fredQ
option
value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput
/cfloop
/select
is faster than this:
cfoutput
select name=fred
Shawn McKee wrote:
While on this topic, how about efficiency with cfoutput?
It makes sense to me that this:
select name=fred
cfloop query=fredQ
option
value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput
/cfloop
/select
is faster than this:
cfoutput
I just optimized some templates which were written in
cf tag syntax by rewriting as cfscript. In my
experience, cfscript can be up to 2-3x as fast. But in
my opinion, the performance isn't worth rewriting
unless you're inside a loop. In my case, I rewrote all
the cfset statements inside a cfquery
I have read that cfscript is faster when you have a large block.
I assume you do not have access to CF right now otherwise you would have
tested this yourself. Anyway, when I tested it I got the same execution
time back.
On Mon, 15 Apr 2002, Clint Tredway wrote:
I have a question...
Lets
it will be faster...how much? well, that would depend on your system. You
could always set up some tests...
-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 11:42 AM
To: CF-Talk
Subject: cfset vs using cfscript
I have a question...
Lets
[EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 11:51 AM
Subject: Re: cfset vs using cfscript
a fraction of a second. How big a fraction is debatable.
At 11:41 AM 4/15/02, you wrote:
I have a question...
Lets say that I have about 10 variables being set locally on 20
At 10:55 AM 4/15/2002 -0500, you wrote:
While on this topic, how about efficiency with cfoutput?
It makes sense to me that this:
select name=fred
cfloop query=fredQ
option
value=cfoutput#val#/cfouputcfoutput#valDesc#/cfouput
/cfloop
/select
is faster than
: Monday, April 15, 2002 11:01 AM
To: CF-Talk
Subject: Re: cfoutput - was RE: cfset vs using cfscript
Shawn McKee wrote:
While on this topic, how about efficiency with cfoutput?
It makes sense to me that this:
select name=fred
cfloop query=fredQ
option
value=cfoutput#val
: Venn, Matthew [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 11:20 AM
To: CF-Talk
Subject: RE: cfoutput - was RE: cfset vs using cfscript
RecordSet contained 1000 results...
Using Cfoutput to loop through query: 50 ms
Using Cfloop contained with cfoutput tags: 50 ms
Using Cfloop
At 11:46 AM 4/15/2002 -0500, you wrote:
My testing agrees with this. This flies in the face of what Chris Cortes
says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it
wrong? Does anyone else have any beefs with this book?
That was the only thing I read in the book that
My testing agrees with this. This flies in the face of what Chris Cortes
says in his book Optimizing ColdFusion 5. Page 404. Or am I reading it
wrong? Does anyone else have any beefs with this book?
The book is referring to it being more efficient to wrap cfoutput tags
around individual
A fraction of a second on a major application that gets
millions of hits a day can make or break a system. Remember
that when you do the big jobs g.
While it's a good idea to code for efficiency wherever possible, the above
statement just isn't that accurate. Almost every system I've seen
My testing agrees with this. This flies in the face of what Chris
Cortes
says in his book Optimizing ColdFusion 5. Page 404. Or am I reading
it
wrong? Does anyone else have any beefs with this book?
The book is referring to it being more efficient to wrap cfoutput tags
around
I have to take issue with your last paragraph. I don't know what's going
on
in the examples in the book because I don't own it. However, as has been
discussed here way too many times (check the archives), CFLOOP QUERY=
has
been tuned starting with CF 4.01 to be faster than CFOUTPUT QUERY=.
of those items, then the difference in performance that you'll
get by tweaking CFOUTPUT vs CFLOOP, or CFSET vs CFSCRIPT, or any of these
other types of things will be truly insignificant.
It's important to remember that there are no perfect applications, and any
time you spend on one thing is time
personally, I never use comments and all my code is one long line for
execution speed.
On Mon, 15 Apr 2002, Dave Watts wrote:
A fraction of a second on a major application that gets
millions of hits a day can make or break a system. Remember
that when you do the big jobs g.
While
with back-end API's and procedures as opposed to heavy user traffic, so
coding using the most efficient means possible is an absolute must. Some of
the loops I deal with iterate tens of thousands of times and are run over a
thousand times a day. Using cfscript as opposed to CFML for setting
variables
And you are bragging about that?
At 05:05 PM 4/15/2002 -0400, you wrote:
personally, I never use comments and all my code is one long line for
execution speed.
On Mon, 15 Apr 2002, Dave Watts wrote:
A fraction of a second on a major application that gets
millions of hits a day can make
At 05:29 PM 4/15/2002 -0400, you wrote:
tweaks of this nature don't make a significant difference, and you can't
rely on their behavior in future versions (or previous versions for that
matter).
Eh? I wasn't aware there was a chance Macromedia was going to rip cfscript
out of ColdFusion
I believe he meant that the minor performance tweaks being discussed
here
may not hold true in new (or previous) versions.
Ah, ok. Then it makes perfect sense. It's late. It's Monday. I'm closing
the thread in my mind and going home.
-Justin Scott, Lead Developer
Sceiron Internet
cfscript as opposed to CFML for setting
variables (even a few) can make several seconds of processing
go away. Granted, on normal applications that do not experience
much traffic (and even some that do) the differences of this
type are probably not paramount. For NEW code, there is no
reason
OK, tell us everything you know about CF 7 and CF 2010 ;)
So, we've got two different ways of doing something; one of these
ways used
to be faster than the other, but now their positions have been
reversed,according to this. Who's to say which will be faster
under CF MX, or CF 7,
or CF
Ah, but the real question that will end the debate.
Will it make a difference in NEO?
I don't think it will if after your code is compiled.
This leaves us with, will it compile faster?
Most likely, but everything is compiled on the first hit, who cares, right?
To me, this boils it down
CF7 is great, finally incorporating the full range of object oriented
methodologies within ColdFusion.
CF 2010 is not my cup of tea, though. They decided to bypass the
Internet all together since it is now owned and controlled entirely by
Microsoft, which means, thankfully we still have
At 05:15 PM 4/15/2002 -0500, you wrote:
Ah, but the real question that will end the debate.
Will it make a difference in NEO?
I don't think it will if after your code is compiled.
Someone mentioned that to me in the past. I believe we were talking
about custom tags vs includes.
It
]]
Sent: Monday, April 15, 2002 4:31 PM
To: CF-Talk
Subject: Re: RE: cfoutput - was RE: cfset vs using cfscript
CF7 is great, finally incorporating the full range of object oriented
methodologies within ColdFusion.
CF 2010 is not my cup of tea, though. They decided to bypass the
Internet all
The error is that it doesnt know that CallQuery Exists. This is done in CF
4.5.
Thanks
L Marcus
cfquery name=LarryRec datasource=db2 maxrows=100 dbtype=ODBC debug
SELECT lastname, address FROM larry4
/cfquery
cfset temp= CallQuery(LarryRec, cyan, magenta)
cfscript
function CallQuery
CF 4.5 does not support UDF
Success is a journey, not a destination!!
Doug Brown
- Original Message -
From: lmarcus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, April 14, 2002 9:35 PM
Subject: How do you call a cfscript udf function and pass a query
UDF's are not a feature of CF 4.5. 5+ only.
lmarcus wrote:
The error is that it doesnt know that CallQuery Exists. This is done in CF
4.5.
Thanks
L Marcus
cfquery name=LarryRec datasource=db2 maxrows=100 dbtype=ODBC debug
SELECT lastname, address FROM larry4
/cfquery
cfset temp=
Thanks guys, my worst fears are confirmed! I guess I will have to get an
update.
L Marcus
- Original Message -
From: Jon Hall [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 12:39 AM
Subject: Re: How do you call a cfscript udf function and pass a query
What is it that you are trying to accomplish?
Success is a journey, not a destination!!
Doug Brown
- Original Message -
From: lmarcus [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, April 14, 2002 9:49 PM
Subject: Re: How do you call a cfscript udf function and pass
More like:
cfscript
for (i=1; i LTE selProd.recordcount; i=i+1) {
writeOutput(selProd.PR_NAME[i] br);
}
/cfscript
Sharon
- Original Message -
From: VAN VLIET, SCOTT E (SBCSI) [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, March 25, 2002 6:47 PM
Subject
Is this possible? If so, sample code would be appreciated.
I tried the following, and got an access error (i understand that you can't
modify currentrow, etc, but one can wish, right ^_^):
cfscript
while (selProd.CurrentRow LTE selProd.RecordCount)
{
writeOutput(selProd.PR_NAME
http://www.houseoffusion.com/docs/cfscript.htm
note 8.7
At 06:47 PM 3/25/02, you wrote:
Is this possible? If so, sample code would be appreciated.
I tried the following, and got an access error (i understand that you can't
modify currentrow, etc, but one can wish, right ^_^):
cfscript
while
a query with CFSCRIPT
http://www.houseoffusion.com/docs/cfscript.htm
note 8.7
At 06:47 PM 3/25/02, you wrote:
Is this possible? If so, sample code would be appreciated.
I tried the following, and got an access error (i understand that you can't
modify currentrow, etc, but one can wish, right
I have written a seemingly simple UDF for cleaning up data before an insert
or update statement (it trims the string, inserts null when necessary, wraps
string in single quotes if it's a char field):
cfscript
function checknull(ii,isint) {
if (isint) {
return iif(len
wierd thing, it's one thing to
escape values being spit out to the database, it's another to escape values
when feeding them to a UDF.
- Original Message -
From: Sean Daniels [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 5:06 AM
Subject: CFSCRIPT
Hey Michael, what do you mean by dataset?
In experimenting with the cfscript code it seems that the count break
statement like I use in regular cf markup is getting ignored.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:07 AM
mean by dataset?
In experimenting with the cfscript code it seems that the count break
statement like I use in regular cf markup is getting ignored.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 11:07 AM
To: CF-Talk
Subject: Re
Hello list,
I have two pieces of code and I can't figure out why one works and the other
does not. The regular markup works perfect, so I thought I would move it to
CFSCRIPT, which is normally not a problem, but on barely 3 hours of sleep
it's one today... anyway here they both are followed
1001 - 1100 of 1308 matches
Mail list logo