I have not been able to find a good reference chart out there that maps SQL Data Types to ColdFusion ORM Data Types. It’s always really been my best guess. So I’m going to start a reference chart here that as I figure it out I’ll update. If you have any input on this please [...]
Archive for the ‘ColdFusion’ Category
Here’s another “for later reference”… Microsoft’s rules for .NET Framework 1.1 Abbreviations consist of: Do not use abbreviations or contractions as parts of identifier names. For example, use GetWindow instead of GetWin. Do not use acronyms that are not generally accepted in the computing field. Where appropriate, use well-known acronyms to replace lengthy phrase names. [...]
Looping Over Arrays in ColdFusion 9.01 (CFScript)
Posted: February 14, 2012 in ColdFusionTags: array, arrays, coldfusion
This is pretty much a “note to self”… but in ColdFusion 9.01 you can now loop over arrays using the for – in loop while in cfscript. Syntax is:
My New Experience Getting ColdFusion Builder 2 Console Working
Posted: February 3, 2012 in ColdFusionTags: orm
I have ColdFusion 9 Developer Edition installed on my Windows 7 machine running IIS7. Normally my ColdFusion 9 Application Server service starts automatically for me. Recently I have started learning and developing with ORM. Because of this, I need to figure out what ORM is asking the SQL server to make sure it’s not doing [...]
Consider the following code: (if you think the first line is odd – see Chaining ColdFusion Assignment Operators) My thought was r would return “1000/1000/1000″ — however it actually returned “1000″. Where did I go wrong? Now if I change a,b,c to 1000 it would blow up to a “cannot convert the value “1000/NO” to a [...]
I ran into an issue where using CFContent to serve a file with spaces in its name was truncating the file name. For example the file “Foo Bar.xls” was saving as “Foo”, lacking ” Bar.xls”. You can find many examples of this type of code out there for securing files using ColdFusion and its cfcontent, [...]
Thanks to Mike Henke, I found out you can chain assignment operators (“=”) in ColdFusion. An example of this would be: Resulting in: Behind the scenes it’s interpreted such as var1 = (var2 = (var3 = 123)); (It is right-associative, being the last assignment operation is evaluated first and propagated leftward. Also, don’t try that interpreted code [...]
I program scripts to read XML posts just every once-and-awhile, and although very simple, every-time I forget how to do it. Let’s say that we receive a XML HTTP POST via this code: This is what you would use to read that POST: The key here is the GetHTTPRequestData().content. Notice how we do not use form.MyXML. Now [...]
Today I filed a bug with Adobe #2903404 - No file context menu in Team Synchronizing (right-click) - Go vote for this bug if you have the same issue – I was made aware by a co-worker of mine about the fact that you could not get a file context menu in ColdFusion Builder 2.0 while [...]
Returning Multiple Value Elements to ColdFusion Remote Method via jQuery AJAX
Posted: June 7, 2011 in ColdFusion, JavaScriptLets say I have a select element that supports multiple selected values: I wish to return this information to my ColdFusion CFC that contains a remote method via AJAX: My CFC method looks like: This solution will error out due to the fact that the key “value” passed via AJAX is actually passed as “value[]“. [...]
