Questions tagged [coldfusion-2018]

ColdFusion is a server-side rapid application development platform, from Adobe. ColdFusion 2016 is the current release of CF released on July 12, 2018.

Language New features in ColdFusion 2018

  • Asynchronous programming, using Futures
  • Abstract components and methods
  • Final components, methods, and variables
  • Optional semicolons
  • NULL support
  • Numeric member functions

Administrative New features in ColdFusion 2018:

  • Performance Monitoring Toolset
  • REST playground capability
  • Modernized Admin UI
  • Distributed cache support (Redis, memcached, JCS)

See: https://helpx.adobe.com/coldfusion/using/whats-new.html#WhatsnewandchangedinColdFusion2018release

124 questions
2
votes
0 answers

param un-optional semicolon on struct

I am currently updating a lot CF 11 code to CF 2018. One of the things I like is that semicolons are options most of the time. Having said that, I am stuggling with the thinking behind this: Error rc = {} param rc.data2 =…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
2
votes
1 answer

How to create a ColdFusion REST end-point which accepts query parameters

Here is the code snippet I have tried to create a REST end point with query parameters,
Justin
  • 378
  • 1
  • 3
  • 12
2
votes
0 answers

Is it possible to access the sqlserver systable using coldfusion?

It throw "The user does not have permission to perform this action" once fixed the issue means we can access the sql systables using cfquery.
AishuSuhan P
  • 123
  • 5
2
votes
2 answers

Oracle 19c connecting to ColdFusion 2018

ColdFusion 2018 on Windows 2016 Server, currently using Oracle 12c. My institution is planning an Oracle upgrade to 19c, I have found nothing in the CF documentation about connections to a 19c database. Has anyone done this? Any issues I should know…
2
votes
3 answers

Getting element from an array where data may not exist

I am trying loop over elements in an array data = []; data[3] = true; data[4] = false; for (i = 1; i <= data.len(); i++) { if(data[i]) { writeoutput("Kittens!") } } And I get an error Not an option My code is a simplification…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
2
votes
1 answer

ColdFusion - what is the mechanism behind this component resolution?

I have a collection of pages, physically rooted at, say, root, with plenty of sub-directories representing applications. Looks like this: root |----a | |-AppA1 | |-AppA2 | |----b |-AppB2 |... I have an IIS server setup to…
DWR
  • 888
  • 1
  • 8
  • 15
2
votes
1 answer

404 error as JSON format, POSTMAN gives default error template instead of JSON content

I have tried one undefined rest path through ColdFusion Rest Playground and it gives response like below; { "MESSAGE": "Not Found", "STATUS": 404 } When I am trying the same from POSTMAN, its gives 404 server error! server error 404 - File…
Justin
  • 378
  • 1
  • 3
  • 12
2
votes
2 answers

CF_WKHTMLTOPDF setting page size to Envelope

I am using WKHTMLTOPDF in ColdFusion 18 and am trying to have the page size be "Envelope DL". I found the global setting size.PageSize so in the code below I added pagesize = "Envelope DL" but this did not change it. Does anyone have any other ideas…
David Brierton
  • 6,977
  • 12
  • 47
  • 104
2
votes
1 answer

parseDateTime output difference

My Coldfusion Development Server: Server Product ColdFusion Version 11,0,13,303668 Tomcat Version 7.0.75.0 Edition Developer Operating System Windows 10 Coldfusion Production Server: Server Product ColdFusion 2018 Version…
Vlad
  • 1,077
  • 2
  • 13
  • 27
2
votes
1 answer

Removing Transactions from cfquery s

I had some original code which looked like UPDATE ... UPDATE ... DELETE ... I am looking to change the code…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
2
votes
1 answer

Nulls enabled in cf2018 though Enable Null Support is turned off

We're upgrading some of our applications from CF10 to CF2018. On CF2018, we've unchecked 'Enable Null Support' in the ColdFusion Administrator, and we can see when we output the value of enableNullSupport that it is set to NO. However, but we're…
GavinPen
  • 83
  • 7
2
votes
1 answer

Canonicalize() function converts chars to white space

I am using EncodeForHTML() to prevent Cross Site Scripting (XSS) attacks. In doing so, some text field as : step 1: cost too much to keep. #3 bad business decision is stored in the database as : step 2: cost too much to keep.…
CFNinja
  • 3,571
  • 4
  • 38
  • 59
2
votes
1 answer

Dates not equal to numbers

I don't want this to be true Wow Most of the time somedata has numbers. But it can have time. If it has 12:00 AM, I don't want this if statement to return as true.
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
2
votes
2 answers

ColdFusion: how to check if array element exists?

I have to loop over the array of street addresses and insert the data into database. User always provide one line of address and some times two. I am trying to loop the array and dynamically set address_1 and address_2(if exists or NULL if not), but…
epipko
  • 473
  • 5
  • 18
2
votes
0 answers

Retrieving CGI Auth_User variable whith IIS Windows Authentication Enabled, ColdFusion 2018, and Microsoft Windows Server 2008 R2 Standard

I'm attempting to retrieve CGI variable Auth_User when a user has supplied their credentials after logging into their local computers using Active Directory. I have ensured that Microsoft Authentication and Anonymous Authentication is Enabled at…
1 2
3
8 9