cfc Questions
3
Solved
I have a “best-practices” question in regards to the correct way to instance CFCs that all need to talk to each other in a given project.
Let’s say for example you have a web application that has ...
Stringent asked 7/11, 2014 at 16:38
2
I'm running into an issue that only seems to affect our production server and without any apparent rhyme or reason. Essentially, we're getting the following error (I'm going to use dummy names to i...
Verein asked 31/1 at 17:38
5
I am creating an API, and within each method I make a call to a logging method for auditing and troubleshooting. Something like:
<cffunction name="isUsernameAvailable">
<cfset logAccess(...
Falter asked 19/2, 2009 at 21:30
4
Solved
I have the following two files and would like the second to extend the first:
wwwroot\site\application.cfc
wwwroot\site\dir\application.cfc
However, when I go to declare the component for the s...
Mess asked 21/11, 2008 at 0:41
4
Solved
In my application I have all my CFC's in a cfc folder. From the site root I can access them without any trouble by simply referring to them in my <cfinvoke> tag as component=cfc.mycomponent m...
Punchball asked 18/10, 2011 at 22:10
6
Solved
If I have a folder structure that looks like this:
/
/bin/myComponent.cfc
/reports/index.cfm
How do I initiate myComponent.cfc from index.cfm?
myService = createObject("component", "bin.myCompo...
Adaadabel asked 26/3, 2010 at 18:35
2
Solved
I am currently using the <cfinvoke> tag to invoke CFCs and pass them arguments. This is really convenient because I can use tags to pass in only the parameters that I want like such:
<cfi...
Assess asked 30/10, 2018 at 16:55
3
Solved
I'm trying to pick up AngularJS with a ColdFusion back end and am running into a few roadblocks. I am modifying their "To Do" app http://angularjs.org/ with the CF Art Gallery database. I'm trying ...
Mushroom asked 25/2, 2013 at 18:19
2
I want to be able to dynamically write a set of getters and setters in CFML/LUCEE components ( No hardcoded cfproperty tags).
<!--- MyComp.cfc --->
<cfcomponent displayname="MyComp" hint=...
Prejudice asked 12/2, 2018 at 23:28
1
In our ColdFusion 11 app with SQL Server 2008 R2. A .cfm file is using a CF component that is called with a syntax such as:
<cfscript>
objMyTable = createobject('component','components.myTa...
Gisarme asked 6/11, 2015 at 16:34
4
Solved
I'd like to somehow find out which CFC is calling my method.
I have a logging CFC which is called by many different CFC's. On this logging CFC there's a need to store which CFC called for the log....
Artamas asked 20/4, 2010 at 11:27
3
Let's say I have the following component called Base:
<cfcomponent output="false">
<cffunction name="init" access="public" returntype="Any" output="false">
<cfset variables.metad...
Southeaster asked 12/12, 2008 at 18:49
3
I'm having some problems understanding the createObject() function, which the documentation says is used like CreateObject("component", component-name).
In the documentation, it is mentioned that ...
Tisiphone asked 14/12, 2013 at 13:49
3
I have a fairly long cfc file, about 1800 lines long, that worked fine in ColdFusion 8, but after upgrading my development system to ColdFusion 9 and doing some testing I get a compile error for a ...
Palpate asked 8/1, 2010 at 17:18
6
Solved
I have a CFC method that I would like to run at an interval of 30 seconds. However, the problem is ColdFusion won't let me schedule a task that runs at an interval of 60 seconds or lower. Does anyo...
Snippet asked 28/7, 2010 at 14:53
8
Solved
I develop coldFusion applications on my laptop with it's own ColdFusion 8 server with IIS which run on Windows Vista. I am having a rather annoying problem.
The problem is whenever I make any cha...
Magnitude asked 11/2, 2010 at 21:43
1
I've been exploring different methods of structuring my ColdFusion applications and I'm looking for some opinions on the best way to provide application wide UDFs.
For each of my apps, I generally...
Embody asked 16/3, 2013 at 16:49
2
Solved
I am new to jquery and am trying to make functions that will call and update my database with a dialog box. I modified an existing template to produce the code below and can't get the function save...
Lemur asked 30/12, 2012 at 22:10
3
Solved
I am placing a component in my application scope so that it is shared across all requests and it includes a a cfm template:
<cfcomponent output="false">
<cffunction name="run" output="f...
Steady asked 24/10, 2012 at 16:42
2
Solved
I am trying to work out the correct <cfscript> syntax for calling a dynamic method within ColdFusion 9. I have tried a number of variations and had a good search around.
<cfinvoke> is ...
Wilen asked 27/9, 2012 at 23:7
2
Solved
I would like to put all of my CFC into /components folder and be able to call them from different places in application eg. from /forums/index.cfm.
How would I go about setting the mappings?
Dummy asked 22/8, 2012 at 12:58
1
Solved
I have a test.cfm page and would like to call a cfc with a <cffunction> named errorEmail using <cfscript> from that page (test.cfm) instead of
<cfinvoke component = "#cfcPath#" met...
Entreat asked 11/7, 2012 at 16:5
4
Solved
I want to extend a CFC in a different directory and I have a couple of options, but can't figure out how to do this:
A) Use a dynamic mapping (this will have to be dynamic based on the site, e.g. ...
Wester asked 13/11, 2008 at 15:11
6
Solved
One of the great features of CFCs is the ability to reuse the code for both a straight .cfm page and for Flex apps.
One such app that I devleoped uses Flex for its charting capabilities and needs ...
Declare asked 22/5, 2009 at 22:58
1
Solved
When I return a string from my remote method from cfc. The returned string is wrapped up in a strange wddxpacket:
I tried to turn off the debugging output like this:
<cfsetting showDebugOutp...
Arcuation asked 23/4, 2012 at 21:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.