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.

463 questions
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
  • 5,080
  • 8
  • 66
  • 86
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
  • 16
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

Can CFC and ladder programs run in single codesys project

Can someone please tell me how to run ladder program (PRG) and cfc(PRG)program in one codesys project. Moreover,what function should I use in codesys CFC programming to take multiple inputs in WORD data type and output will be the one which will…
Mar_60
  • 13
  • 3
-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
votes
1 answer

I Need Help Converting a simple Coldfusion Script to Coldfusion Tag

I need help converting this ColdFusion Script to ColdFusion Tag. public any function default(required rc) { // rc.varName = 'whatever'; }
-1
votes
3 answers

Export to Excel - Hidden Field not generating results

I've a simple CFC file that contains the different functions for different queries & a separate function that displays the reports dynamically based on the queries. All the queries work except one which returns approx. 50k rows. Its just a blank…
Crash OR
  • 327
  • 1
  • 3
  • 14
-1
votes
2 answers

Need to check for data returned in a Coldfusion component

I have a .cfc on my server that I use to run a query and send the result back to a phonegap app. I cannot get the syntax right to check if any data has been returned in a query and send back a string in the result like "no data found" to display.…
-1
votes
1 answer

Railo is caching my cfc's and templates

I'm currently developing a cfc in railo. Every time I make a change to the cfc, I have to go into the admin and clear all four caches in order for me to see any changes. Under Settings > Performance/Caching, Inspect Templates is set to always. Under…
Kevin B
  • 94,570
  • 16
  • 163
  • 180
-2
votes
2 answers

How to execute multiple cfquery one after another in coldfusion 8?

How to execute multiple cfquery one after another. First execute and completion the first cfquery then proceed to next cfquery execution and move to another cfquery. All the below cfquery are in one single page. //--------first…
-3
votes
2 answers

Is there a "clean URL" (mod_rewrite) equivalent for iPlanet?

I'm working with Coldfusion (because I have to) and we use iPlanet 7 (because we have to), and I would like to pass clean URL's instead of the query-param junk (for numerous reasons). My problem is I don't have access to the overall obj.conf file,…
Ryan
  • 11
  • 4
-3
votes
1 answer

How to call a function in coldfusion

I a test.cfc I have created a component in Application.cfc using Now how do I call a method…
cfuser
  • 31
  • 1
  • 4
-4
votes
1 answer

Invoking a CFC from a FORM

Like the title says, I am invoking a CFC from a FORM. This is how I am doing it now, but there has to be a better way. Form:
user1253239
  • 199
  • 2
  • 3
  • 13
1 2 3
30
31