John Wilson
09/15/2022, 1:44 PMgus_dancy
09/15/2022, 6:35 PMgus_dancy
09/15/2022, 6:47 PMAdam Cameron
TEMann
09/16/2022, 7:59 PMJohn Wilson
09/16/2022, 8:00 PMTEMann
09/16/2022, 8:01 PMJohn Wilson
09/16/2022, 8:03 PMTEMann
09/16/2022, 8:03 PMJohn Wilson
09/16/2022, 8:04 PMgamesover
09/19/2022, 3:22 PMwebsolete
09/19/2022, 5:54 PMaaronstoddard
09/19/2022, 6:14 PMDave Merrill
09/19/2022, 6:19 PMI found a difference in CF2018 from CF9.
ListFind will not find a match in a list where the value starts or ends with a space.
CF9 : ListFind("A, B,C", "B") = true
CF2018 : ListFind("A, B,C", "B") = false
(He doesn't really mean it returns true, just that it found the value in the list.)
I thought listFind would only find exact matches, so leading or trailing spaces in either the find string or the list element that don't match would cause it not to be found, in every version.
I don't have a cf9 server to verify that they used to be ignored.
Does anyone?
Or do you know about a change in this area?David Maggard
09/19/2022, 6:46 PMmithlond
09/20/2022, 10:29 PMwritedump(xmlSearch(test, "allEnrollments/enrollment").map((enrollment) => enrollment.toString()).toList(""))
gives me output like
<?xml version="1.0" encoding="UTF-8"?><enrollment>...</enrollment><?xml version="1.0" encoding="UTF-8"?><enrollment>...</enrollment>
How do I get the same output without the <?xml version="1.0" encoding="UTF-8"?>
XML declaration for each one? I just want the node itself, not each node as a full xml object.Pete Williamson
09/21/2022, 4:01 PMScott Steinbeck
09/21/2022, 6:31 PM'select *, 1 as ''top'', testCol as "top2" from mytable'
or
"select *, 1 as ""top"", testCol as 'top2' from mytable"
it also can have line breaks in it
"select *,
1 as ""top"",
testCol as 'top2'
from mytable"
I have tried googling it and creating a few additional solutions but none have proven to be the right solution. The reward for will be a new cfml vscode extension to format SQL syntax within cfc’s and cfm pagesDave Merrill
09/21/2022, 9:23 PMAdam Cameron
Jim Partin
09/22/2022, 2:16 PMTim
09/22/2022, 2:35 PMAdrian Lynch
09/23/2022, 4:55 PMScott Steinbeck
09/26/2022, 8:02 PMAnders Lars
09/27/2022, 2:25 PMSlackbot
09/27/2022, 2:40 PMpaolo79
09/28/2022, 1:37 PMCavan Vannice
09/28/2022, 2:42 PMMarc Funaro
09/28/2022, 3:05 PMEntityNew("name", struct)
it is easy to populate a new object and save it. Is there a way to do the same to an object that's been retrieved, and pass it a struct to update all fields as well, instead of having to write out the set()
commands for each field to be updated?Simone
09/28/2022, 3:07 PM