bdw429s
07/26/2023, 5:12 PMβ’ You use the cffunction tag to define CFC methods. The CFScript function statement can create simple methods, but it does not provide options to control access to the method, provide metadata, specify a return type, or control generated output.But that doesn't seem correct. I do
public String function( arg ) metadata="oh, yeah" outpout=false {
}
all the time in script.bdw429s
08/11/2023, 10:46 PM\
in the left column. I'm guessing your CMS treated it as an escape?
https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-lang[β¦]xpressions-and-number-signs/expressions-developing-guide.htmlraymondcamden
08/16/2023, 6:07 PMraymondcamden
08/16/2023, 6:07 PMraymondcamden
08/16/2023, 6:13 PMMark Takata (Adobe)
08/16/2023, 8:16 PMsaghosh
08/17/2023, 5:11 AMAdam Cameron
Returns
A number in the range 2-36, as a string.Erm... I think it just returns an integer, doesn't it?
Jim Priest
10/03/2023, 4:00 PMsaghosh
10/03/2023, 4:42 PMraymondcamden
10/03/2023, 5:20 PMJim Priest
10/09/2023, 1:27 PMcf_sql_
prefix."
https://cfdocs.org/cfqueryparammtbrown
02/16/2024, 12:26 PMquerySort
returns "True if the sort is successful." But it was changed to return the sorted query since ColdFusion 2018.bockensm
02/29/2024, 4:33 PMisLeapYear
docs say to pass a number, but the example passes a date: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-in-k/isleapyear.html. Can the example be updated to show a proper use of the method?saghosh
03/05/2024, 2:10 PMsaghosh
03/05/2024, 3:26 PMrodel30
03/05/2024, 5:34 PMApplication
this.sessionTimeout
, the documentation says "Specify application properties by setting This scope variables in the Application.cfc initialization code.", but I was wanting to know if it's allowed (I could try it out and see if it works, but if it's not specifically "allowed" then it could potentially stop working with any future update) for us to set the this.sessionTimeout
within the onApplicationStart
instead (or override it there)? We have the same Application.cfc
for multiple applications, and want to be able to dynamically set the session timeout per application. Either way, it would be nice if the documentation clarified this. Either by saying "Application properties may only be specified by setting This scope variables in the Application.cfc initialization code" (eliminating any ambiguity about whether it can be set later) or adding a note about what other points in execution are acceptable for altering/setting the value.mtbrown
03/06/2024, 12:01 AMtype
to every element in an array.Adam Cameron
cfthread
handles variables could be improved? See here: https://stackoverflow.com/a/78145761/894061
I do kinda agree that the docs are such that one already needs to know what they mean to be able to understand them.raymondcamden
04/01/2024, 8:19 PMMark Takata (Adobe)
04/09/2024, 10:03 PMgavinbaumanis
04/10/2024, 7:21 AMJim Priest
04/16/2024, 7:07 PMJim Priest
04/26/2024, 1:38 PMsaghosh
04/28/2024, 12:11 PMAdam Cameron
OR or ||
Return True if any of the arguments is True; return False otherwise. For example, True OR False is True, but False OR False is False.This does not match the actual behaviour of CF's CFML, eg:
20 OR 30 // the resultant value is 20
It doesn't return specifically true
or false
. it returns the value of the first operand that determines the result of the overall expression (ie: it short-circuits if it can).
The docs for AND
have a similar shortcoming.
Can you pls get the docs updated to:
a) explain the short-circuiting
b) correct the detail that the expression returns the operand value; not simply true
or false
.Pawel Czarnota
05/29/2024, 5:57 PMLisa Rees
06/07/2024, 7:51 PMAdam Cameron
java
function is documented. It was added in CF2018.
Example:
https://trycf.com/gist/e55e3925238de2b6529443194d06ca72/acf2018?theme=monokai
myDate = new java("java.sql.Date").valueOf("2011-03-24");
writeDump(myDate.toString());
Also FAO @lmajano / @bdw429sbdw429s
07/18/2024, 6:20 PMlistReduce()
don't show the "delimiter" as an arg passed to the callback,
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-l/listreduce.html
but when you run the code, it's there
https://trycf.com/gist/41fd645cac687192769e165e4743deb0/lucee5?theme=monokai
Can we get the docs updated to reflect all the callback args please? π