Dean Lawrence
02/09/2022, 1:51 PMryan
02/09/2022, 2:43 PMcfloop
: Reading the documentation in Adobe about index
and item
attributes for a list is quite vague as to how these attributes work together. When only using index
attribute (ie index="idx"
), the list element is assigned to the idx
variable within the loop. However, when using both index
and item
attributes (ie index="idx" item="itm"
), the behavior of the index
attribute changes by assigning the true index number of the item in the list and the item
attribute is assigned the element, instead.
Why does the behavior for the index
attribute have to change? Is it because of backward compatibility? If a developer wants to only grab the true index number in a list, then they are forced to extraneously include the item
attribute. Am I missing something?aliaspooryorik
Lukas
02/10/2022, 10:12 AMencrypt(arguments.clearText, local.AES_Key, 'AES', 'HEX')
does anyone have any clue on how to achieve this?nickg
02/10/2022, 4:27 PMkyle
02/10/2022, 9:07 PMJason Ryan
02/10/2022, 9:21 PMApplication.cfc
onError
function? I have an isProduction()
function and was hoping I could only enable the error-trapping and re-routing functionality conditionally based on that. It doesn't quite seem to work that way when NOT in prod. It just swallows up errors and doesn't display anything on the page, unless the function is commented out.gus_dancy
02/10/2022, 11:09 PMSlackbot
02/11/2022, 9:37 PMSimone
02/11/2022, 10:13 PMSimone
02/14/2022, 4:51 PMSimone
02/15/2022, 1:51 AMManta
02/15/2022, 1:09 PMAdam Cameron
<cfloop>
worked. HAJames Vince
02/15/2022, 5:26 PMCavan Vannice
02/15/2022, 8:24 PMstructAppend(key,{"field": null});
and it gives me Variable NULL is undefined.
I am trying to get "field": null
I tried enabling NULL at the application level, it didn't work. Any help would be appreciated, thanks.Adam Cameron
throw
). And to get the object I need to then catch it.
In other languages I'd do some variation of myException = new MyException()
Am I being dense, or is there no such functionality in CFML?
I realise I can go myJavaException = createObject("java", "MyJavaException").init()
, but the testing I need to do is specific to CFML exceptions.glook
02/16/2022, 4:11 PMSimone
02/16/2022, 4:53 PMhow can i use cf_mycustom name="whatever" in cfscript, don't see any example
gus_dancy
02/16/2022, 11:33 PMBen Reid
02/17/2022, 6:48 AMmauzer
02/17/2022, 1:21 PMGareth
02/18/2022, 4:52 AMwebsolete
02/18/2022, 9:29 PMSimone
02/18/2022, 9:42 PMDaniel Mejia
02/19/2022, 12:05 AMtransaction { query1... query2... }
without a transaction action='commit';
? I just learned that the commit action is not needed, but curious as to what impact there is without it.zackster
02/19/2022, 10:42 AMsimiane
02/21/2022, 1:23 PMwhere
clause, and I need to parse this to pull data out of my DB. I was hoping this was a fairly common usecase and there'd be a library out there that can at least parse the JSON into a reasonably usable SQL string, but the only thing I can find that even references odata is Abram Adams' dao/norm project, and that seems more concerned with consuming an odata source than presenting one.Simone
02/21/2022, 3:02 PM<cffunction name="OnRequest">
<cfinclude template="custom.cfm">
</cffunction>
custom.cfm
<cffunction name="convert" returntype="numeric">
<cfargument name="argText">
<cf_calculate data="#argText#" key="500">
<cfreturn Val(calculate.value)>
</cffunction>
all i am getting is an empty Page, if i exclude the function onrequest, i get a page but it starts throwing errorsAasif
02/21/2022, 10:09 PM