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
1 answer

Is it safe to store an CFC user content handler in the Application scope?

I have read a lot of posts about storing CFCs in the Application scope, and I understand that if a CFC stores data then it should not be in the Application scope. All CFCs that do non-util stuff would store data - when you pass in parameters like a…
volume one
  • 6,800
  • 13
  • 67
  • 146
2
votes
1 answer

Scope not working outside of the CFC folder for Session scope

I recently installed ColdFusion 2018 at work and have been frustrated by the inability to get scope working correctly. As usual I put all my .cfcs into the /CFC folder, and none of them will execute without a blank application.cfm file in that…
BigBear
  • 59
  • 4
2
votes
1 answer

How to fix 'POST request Exceeded' error while we passed the number of parameters to the server using API call (POST request) in ColdFusion?

In my Application, I have the 300 user permissions for user role 'admin'. As a super admin, added a new admin users means, need to enable the user permissions for this admin user. If I choose below 100 and sent it to the backend via API call POST…
jawahar N
  • 462
  • 2
  • 13
2
votes
0 answers

Formatting of the "from" attribute in cfmail behaves strangely

I don't know if this is a bug or just my failed understanding, but there seems to be a difference in the formatting of the from attribute in cfmail in the following two code examples: Example 1
volume one
  • 6,800
  • 13
  • 67
  • 146
2
votes
1 answer

How to calculate GPA (Grade Point Average) ceiling

I'm working on a piece ColdFusion code to calculate the grade point average. How do I format (Round up) the GPA to one decimal place? I tried using numberFormat but I did not get the result as expected. The GPA was being rounded to the nearest…
dkgcb
  • 81
  • 1
  • 2
  • 9
2
votes
1 answer

Where to store automated transactional email templates in ColdFusion

I am in the process of developing an e-commerce application which naturally communiates with users through e-mail regarding transactions such as: User registration Email verification Password resets Order confirmations Despatch…
volume one
  • 6,800
  • 13
  • 67
  • 146
2
votes
1 answer

ORM issue after upgrading to ColdFusion 2018 from version 11

We migrated from ColdFusion 11 to ColdFusion 2018 and now ORM is breaking the EntitySave method and we are getting below error message. Error Message - The root cause of this exception was: coldfusion.orm.hibernate.HibernateSessionException: Batch…
2
votes
3 answers

Using || OR in coldfusion if statement with isDefined

I am using session variables in Coldfusion 2018 and I am trying to figure out how to add a variable with the way my if statements are set up.
David Brierton
  • 6,977
  • 12
  • 47
  • 104
2
votes
2 answers

Is it possible to share a CFC between applications?

I am running multiple applications (websites) that use common CFCs between them such as for string formatting and text parsing. I am finding it difficult having to update the same functions across multiple sites and would like to just have one…
volume one
  • 6,800
  • 13
  • 67
  • 146
1
vote
0 answers

Same user, Different cookies in Coldfusion Log

In my application the value for cookie for one user is getting overridden by another user's cookie value. For example, User A logs in, when I print the cookie value in log it gives me User A cookie value. But, once User B logs in I am getting same…
Sashikanta
  • 51
  • 7
1
vote
0 answers

Update JDBC driver for SQL Server on CF2018

In ColdFusion 2018, we have a that performs an INSERT INTO a table. We return the result attribute and check for the GENERATEDKEY. From one environment, the GENERATEDKEY is returned in the result struct. From another environment (on a…
Nick Petrie
  • 5,364
  • 11
  • 41
  • 50
1
vote
1 answer

Coldfusion protect admin section questions

What is a good full proof way to protect an admin section of a site? So that if someone is logged in with a standard user role they would be redirected back to the root. Would it better to do that in application.cfc or handle it on the individual…
spacerobot
  • 265
  • 1
  • 5
  • 23
1
vote
1 answer

Is it a good practice to use variables scope for defining constants in Coldfusion?

In our Adobe Coldfusion project we have some components used as singletons such as this one: component name="Util" { public function init() { variables.settings = loadFromConig(); variables.prefix = "my_"; return this; …
1
vote
2 answers

Coldfusion array from form checkbox

I am trying to figure out the best way to handle this. I have a series of form fields with checkboxes for people to select options. When that gets submitted it turns form.optiongroups into an array. I then check to see if the id of the optiongroup…
spacerobot
  • 265
  • 1
  • 5
  • 23
1
vote
2 answers

ColdFusion 2018 processing an array of structs

I am having issues processing the inner array (variants). Getting Object of type class java.lang.String cannot be used as an array
epipko
  • 473
  • 5
  • 18
1 2 3
8 9