Questions tagged [cfc]

ColdFusion Components (CFCs) are objects in the ColdFusion environment. They are a collection of functions and properties.

ColdFusion Components (CFCs) are objects in the environment.

A component method is invoked in the following ways:

  • In the <cfinvoke> tag (Transient objects)

  • In the <cfobject> tag

  • In a URL that calls a CFC file and passes a method name as a URL parameter

  • By using createobject() in <cfscript> or in <cfset>

  • via web services

  • From code

Unlike normal ColdFusion files, CFCs have a .cfc extension.

458 questions
0
votes
2 answers

How To Share Query Data Between Two ColdFusion CFCs?

I am creating a CFC called "core_appdata". This CFC will hold the core stored procedures for an application. Example....
0
votes
3 answers

Problems sending arguments to CFC

I am having trouble passing an argument: I am getting an error with that last argument, saying "Element title2 is undefined in a Java object of type class…
aceslowman
  • 611
  • 11
  • 26
0
votes
4 answers

How to pass a struct to Coldfusion CFC using CFINVOKE?

I have a CFC file which handles all of the emails I'm sending form an application (using Coldfusion8). I was using CFINVOKE to call the respective function inside this CFC and passed a struct with all user data along like so: var…
frequent
  • 24,965
  • 53
  • 166
  • 316
0
votes
2 answers

How can I param form fields with a 15-digit dynamic ID inside a Coldfusion CFC?

I have a shopping basket which labels hidden inputs with an id based on a database record. So the input might look like this: where "12345678" is the id of a record in the basket. I'm submitting…
frequent
  • 24,965
  • 53
  • 166
  • 316
0
votes
2 answers

Selecting specific joined record from findAll() with a hasMany() include

(I tried posting this to the CFWheels Google Group (twice), but for some reason my message never appears. Is that list moderated?) Here's my problem: I'm working on a social networking app in CF on Wheels, not too dissimilar from the one we're all…
Brian D
  • 643
  • 5
  • 11
0
votes
2 answers

sum the fields of the bind inside a form, from cfc

I need to calculate the total of an invoice. This invoice is created with a form, amount, quantity and tax fields, the sum of the fields is made with a bind in cfinput. I can not make the sum of all rows, the total. I tried some operations, but not…
0
votes
1 answer

Is it possible to call a Coldfusion cfc method from within .htaccess?

I'm calling a cfm file form htaccess to perform some manipulation on images like so: Options +FollowSymlinks RewriteEngine On ... RewriteRule \.(jpg|jpeg|gif|png)…
frequent
  • 24,965
  • 53
  • 166
  • 316
0
votes
2 answers

Cfimage inside a CFC

I seem to be having an issue manipulating photos from within my CFC. I get an error that says that it encountered an exception while trying to read the image. So the question is pretty straightforward, are there any issues with manipulating files…
aceslowman
  • 611
  • 11
  • 26
0
votes
1 answer

Key in JSON not defined when passed to a CFC

I am passing a CFC a JSON, and there is a key that may or may not exist. So, I am checking it with isDefined, but for whatever reason, coldfusion doesn't think it exists, when, from what I'm seeing it clearly does. I have tried everything I can…
Rob M
  • 927
  • 2
  • 14
  • 33
0
votes
1 answer

Displaying "no records found" alert from inside a CFC

In CF9 with IE8 I have a cfgrid that is bound to a text (search) field as well as a cfc function. The text field value is used as a query filter within the cfc function. If any results are found, the grid gets populated. Otherwise, I would like to…
ion
  • 51
  • 1
  • 7
0
votes
2 answers

Railo error when trying to use CFC via AJAX

I have been unable to get Railo to work with a new CFC on a test page and keep getting a "Railo is not defined" in the Error Console The Error Console highlights this section: var _Railo_proxytest =…
user1009749
  • 63
  • 2
  • 8
0
votes
3 answers

How to put records from a query into DAOs?

I have written a gateway to get a result set from my database. How do i store every row in a separate dao so that i can manipulate every record further? Or can i access the result set directly to get the records? This is my Gateway (btw, should i…
mrt181
  • 4,448
  • 8
  • 58
  • 82
0
votes
2 answers

Coldfusion CFC Mapping to external directories with CFCs that reference other folders

I've done some poking around and trial and error but I'm not coming up for a solution to this problem I have. I have a folder structure like this…
Danomite
  • 369
  • 3
  • 14
0
votes
1 answer

many to many relationship cfwheels inner join

i have a couple of problems with cfwheels (n:m relationsship) here my database schema rights righthaspath path -id -------| -id --> -id -role -->-rightid (FK) | -url -pathid …
hans maeier
  • 45
  • 1
  • 7
-1
votes
1 answer

Show alert from cfc after Ajax Post Coldfusion

I want to show an alert from my CFC function after ajax post send success, anyone can help me? this is my code: function post(){ $.ajax({ type: "POST", URL: "myCFCName.cfc?method=save", data: { data1: data1, data2:…
1 2 3
30
31