Questions tagged [coldfusion-2016]

ColdFusion is a server-side rapid application development platform, from Adobe. ColdFusion 2016 was released on February 15, 2016. ColdFusion was later updated to ColdFusion 2018.

New features in ColdFusion 2016:

  • PDF Enhancements
  • Updated functions including Query and Array processing functions
  • Language enhancements including safe navigation (?.)
  • Command Line Interface
  • Swagger document generation

See: https://helpx.adobe.com/coldfusion/2016/topics.html#dynamicpod_reference

353 questions
4
votes
1 answer

ColdFusion check when cookie expires

Is it possible to check when a cookie is due to expire? I have tried the following: First I set three cookies:
Nebu
  • 1,753
  • 1
  • 17
  • 33
4
votes
0 answers

Escaping colon symbol ":" in ColdFusion CFScript string?

I am writing a query in CFScript for Informix database that looks something like this: myQuery = new Query(); myQuery.setSQL("select something from someDatabase:someTable"); In Informix someDatabase:someTable syntax means accessing table from…
4
votes
2 answers

Can we have cfparam with positional attributes in script based style?

@Devs, Here I'm writing the script based code for my application. While in a development I'm facing issue like Invalid CFML construct found Sample Code : cfparam(name="userID", default=0); // Named attributes are accept in script…
Kannan.P
  • 1,263
  • 7
  • 14
4
votes
1 answer

Application scoped variables are getting refreshed for each requests

We've migrated a ColdFusion application from ColdFusion 10 to ColdFusion 2016. After Migration, Application variables are not staying in its scope, it is refreshing on each and every request. Consider the following…
Rajesh Manilal
  • 1,104
  • 9
  • 20
4
votes
1 answer

ColdFusion doing OWASP esapi via Java

I am have some old ColdFusion code. It was originally written for CF9, but is now running on CF 2016. application.cfc local.esapi = createObject("java", "org.owasp.esapi.ESAPI"); application.esapiEncoder = local.esapi.encoder() Much…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
4
votes
5 answers

Can we Use "Case" in a ColdFusion Query-of-Query

I am applying case in ColdFusion query of query but it's throwing an error. Query: select ( case when ISNUMERIC(u.userdefined)=1 then right('00000000'+u.userdefined,8) …
Techleadz Team
  • 198
  • 2
  • 15
4
votes
2 answers

CFMail attachment filename broken in ColdFusion 2016 on Windows server

I'm moving a site from CF10 on Linux to CF2016 on Windows, and have run into an issue with file attachments with cfmail. I'm attaching the file in cfmail with; and have also tried variations with and without…
luke
  • 415
  • 1
  • 4
  • 14
4
votes
3 answers

How to set a dynamic key name in a struct with cfquery column?

I have structure where I want to replace currentRow key with cfquery column recID. This column is integer that is auto incremented in sql table. For some reason my code is failing to create structure with unique key. Here is my code:
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193
4
votes
2 answers

Comparing empty strings if it is not equal to MySQL column with string values

I'm not sure if this scenario is related only to Coldfusion or Mysql. If a column that is of type TEXT is compared to an empty string value if it is not equal, this code works: column > "" but not this one: column != "" In my SQL code, let's say…
Kay Singian
  • 1,301
  • 8
  • 20
  • 33
4
votes
1 answer

Using QuerySort

I am trying to use ColdFusion 2016 Query sort I am basing the sort on Array sort by Raymond Camden http://www.raymondcamden.com/2012/08/14/Another-ColdFusion-10-Closures-Post/ qryTest = QueryNew("ID,Name"); qryTest.AddRow([ …
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
3
votes
2 answers

ColdFusion 2018 does not interpret undefined as empty string

A ColdFusion server has been updated to ColdFusion 2018 (from ColdFusion 9 or 11). One of the oldest applications on that server contains code like: < cfif arguments[key] NEQ ""> Before, this seems to have been equivalent to…
3
votes
0 answers

ColdFusion Solr CFSearch Criteria Complexity

I'll try to make this as short as possible. We have a ColdFusion site that uses Solr to index several thousand PDFs. Part of the index information is also stored in a database, which is used to help filter the results. The search page is broken up…
Steve D.
  • 39
  • 2
3
votes
2 answers

Missing GENERATEDKEY from Query Result

I have some code which was using GENERATEDKEY from result attribute of cfquery tag from last few years. I recently noticed that it is no more the part of structure returned by Result.
CFML_Developer
  • 1,565
  • 7
  • 18
3
votes
1 answer

Dynamically creating database and data source in ColdFusion

I'm trying to create a database and data source dynamically from the user input. I'm not sure is that possible or not to create a database using cfquery tag without using data source. For Data source creation adminObj =…
Saravana Kumar
  • 168
  • 1
  • 9
3
votes
1 answer

Does CF not support Java constructors with variable number of arguments and any known workarounds?

We have a project that deals with files of various encodings. I am using BOMInputStream to skip UTF-8 byte order markers. The existing code works but needs to also support UTF-16 variations. The most straight forward approach is to pass the…
Dan Roberts
  • 4,664
  • 3
  • 34
  • 43
1
2
3
23 24