Questions
Recently active
I've been storing all the required CFCs for a site in the application scope. During onApplicationStart I do something like this application.objSomeCfc =CreateObject('component', 'com.someCfc').init(). Here is my reasoning. Get the CFCs initialized once and stored in memory for better performance. Using CreateObject several times on each page load can have a negative impact on performance. Having one place to create application scoped CFCs makes it easier to manage code. So is my thinking flawed? Are there any additional pros or cons for dealing with CFCs? Is there any docs, articles, blogs, videos, frameworks, ...... that I should check that may change my perspective on how I'm doing this?Thanks
I have a table that display some question,But some may have 4 or 5 question.Here is my code. <cfloop index="i" from="1" to="5"> <cfset question = GetEmployeeCSEDepts["csedept_question" & i][GetEmployeeCSEDepts.CurrentRow]> <tr> <td valign="top"> <select name="sltRating#i#" size="1">  
In previous versions of CF(Solaris and now Linux) we have been using an odbc-jdbc bridge to talk to ODBC data sources on Windows. This is no longer working with our EasySoft jdbc-odbc bridge on CF10. I am looking for solutions that dont involved dumping the data into something other than MSAccess. Direct access to the Access db file on Linux? a different odbc-jdbc driver that can connect remotely. Anything!!! Has anyone out there been able to do this???-Keith Alston
I've been googling about how to work with Application.cfc since last week but I still have some questions and I can't find the answers.My application is under the root (in unix) and there are many subfolders underneath it. Each sub-folder is hosting a different web application.From what I read, I can create 1 root Application.cfc and then on subsequent sub-folder, when I need to have another Application.cfc on that level, I can create ProxyApplication (see below) and then create a sub-folder level Applicatin.cfcSo, when I set an application.DSN on my root Application.cfc, using proxyApplication I don't have to reset this dsn again in my sub folder level Application.cfcSince my loginform.cfm and loginaction.cfm is right under root directory too, I also set OnsessionStart in the root Application.cfc to handle user login. Then this means, I don't have to reset session variable again anywhere because session.username, etc has been set on the highest level.Is this correct?In addition,
I could very well be blind but looking across the docs and the internet I'm not seeing much spoken on trying to include foreign key fields in an ormSearch() query.For example what if I was searching for people within a company and I knew their companyID? How would I best go about doing this?My best guess is the following but doesn't seem to return the results I wanted. Yes, the foreign key field in my cfc is set to indexable=true.<cfset result = ormSearch('lastname:#lastname#' AND companyID:#companyID#','Person') />Any help is appreciated!
I am getting the below error message while registring the CFX tags. I am using Windows 2008 R2 datacenter With Service Pack1. After clicking on REgister C++ tags button I am getting below error message."You must configure your application server to enable native CFX support. For instructions, see "Configuring ColdFusion" in the "Configuring and Administering ColdFusion" book for your application server. "
Hi, I have been programming in CF for 10 years. I set up my umteenth database (copied an exsiting one) and connected the datasource. I received this error: coldfusion.sql.DataSourcePermission right off the bat. All permissions are IDENTICAL to ones running to other data sources and this datasource is connected and verfied in the CF admin. I'm frustrated because there is virtually nothing on the web (apparently nobody likes this language) and there is no apparent reason for this. I'm running Win 2008R2 64 bit on a Rackspace cloud server. I have 4 datasources that work. I don't see any connection limits in SQL Mgr....Running CF 9.0.0 HELP!!!Michael
Hi there,Does anyone know if I will need extra coldfusion licenses if I were to setup a hot-standby backup for my servers ?The servers are virtual machines, built on vmware platform, and we are setting up redundant environment off-site which will act as a backup should the primary environment goes down catasthropically.What I am considering for is hot-standbys, which means the backup environment is running, almost fully configured and it is almost identical with the original because there will be data sync continuously running. So I am not currently looking at uninstalling / downgrading the CF licenses in the backup environment since not sure if that is even possible / won't mess the data sync up.Thanksoxotpr
Hi,I'm getting a list of areas, a city and a state thru binding when type the zip code. These data I get from a remote websevice and I have problems when do the binding because is simultaneously in cfselect areas, cfselect city and cfselect state. The error is time out some times and it could be happen in only one field or two.I inserted diferent delays (sleep(5000)) before execute every bind and it works better but not to 100%. It ocationaly displays too the time out.I don't know if there are an option to execute the binding secuentially and not simultaneously.This is my code:Zip code <cfinput type="text" name="zipcode" message="Capture el código postal a 5 digitos" validate="integer" required="yes" class="textbox" id="zipcode" tabindex="7" value="" size="7" maxlength="5" typeahead="no">Area <cfselect enabled="No" name="Colonia" class="textbox" tabindex="11" required="yes" multiple="no" selected="12"  
Hello, everyone.I'm sure this is going to be super-easy for someone to answer. I think I've seen the correct answer, before, and I am just not recalling it.I've tried Googling it; finding a lot of stuff, but not the answer to my question.In application.cfc, for this.mapping[], how do I indicate a directory one level "up" from current using GetDirectoryFromPath(GetTemplatePath())?I've got a project in a main folder that contains an admin folder, each with their own application.cfc. But admin is using components in the main folder, not it's own.Components are in C:\ColdFusion10\cfusion\wwwroot\project\components\ and the admin is in C:\ColdFusion10\cfusion\wwwroot\project\admin\ V/r,^_^
I've installed CF9 (because it matches what my host uses) on my ubuntu14.04 machine, along with Apache web server and MySQL.I know Apache works because HTML (and PHP) pages get served up fine. MySQL and phpmyadmin both come up fine.ColdFusion starts and runs:Starting ColdFusion 9...The ColdFusion 9 server is starting up and will be available shortly.======================================================================ColdFusion 9 has been started.ColdFusion 9 will write logs to /var/www/html/cfusion/logs/cfserver.log======================================================================But when I view a CFM page I just see raw code.What have I done wrong?
Hi , I want to map ORM CFC with 1-m and m-1, i have 3 table like:blogPost [blogpostid] ,[title] ,[summary] ,[body] ,[dateposted] ,[createdDateTime] ,[modifiedDateTime] ,[deleted]blogCategory [blogCategoryid] ,[name]BlogPostCategory [blogpostid] ,[blogCategoryid]blogPost ->BlogPostCategoryy (1-m)blogCategory->BlogPostCategory (1-m)BlogPostCategory->blogPost , BlogPostCategory->blogCategory(m-1)Please tell me the step to craete it (By directly using this 3 tables)When i try to create it i got the error like i attach snapshot:Code could not be generated structDetailIf the component
Hello All,I'm just getting my feet wet with CFBuilder and giving it a spin after over a decade's worth of experience with Dreamweaver and I have a question about setting up my work environment.First of all, I have two computers that I mainly work from. My home desktop computer, and a laptop for when I'm on the road. I keep all of my web site project files syncronized between the two computers using Dropbox. I've noticed that when I create a new project in CFBuilder it stores a few files in my project root like ".project" and "settings.xml". It looks like "settings.xml" stores information about which CFBuilder web server should be used for the project. Unfortunately this messes things up for me a bit because on my desktop a web site project url might be: http://desktop/myProject/ and on my laptop the project url could be http://laptop/myProject.The reason this isn't a problem in Dreamweaver is because dreamwevaer stores its configuration/preferences outside
I am writing a coldfusion application that is only accessible through a specific windows server. The users log into the server using citrix. The windows server is using a proxy server called ISA or TMG (Threat Management Gateway), which includes all of the web authentication. This allows the ability to pass Active Directory credentials from TMG to the IIS web server for authentication. This user credentials system is adequate for our client and we are not wanting to have another credential system within our application. In order to utilize this authentication system, we only need to retrieve the username. This system already ensures the user is logged in. Would I try and retrieve the username from IIS? Or, is there some way to retrieve the windows username? The apps I write typically have their own authentication system, so I am new to this and looking fro some guidance.If anyone has some suggestions on how to proceed in retriving t
Is there any way to get the current user logged into a client (Windows XP), and pass those credentials into an ldap request? Basically I want to create an Intranet site, where the users will automatically be authenticated from thier Windows login credentials already on the client. Any help would be great. Thank you. -Christopher Keeler
Good morning, guys! (It's 10:50 a.m. in Brazil)First of all, I'm still new at CF and my questions may seem too much silly and my English's not the best, so, please be patient with me. heheWell, I'm accessing a link via CFHTTP that gives me a JSON response. I'm not familiar with JSON yet, so I'm working it as a string and using string functions (Find,RemoveChars,Replace,etc), but it happens to me that I'm receiving a certain kind of order of the strings list from the JSON when I access it directly from the browser and other kind of order totally different when I access it from the CFHTTP.I only figured it out because I was working at home with my code and there everything went just fine as expected. Then I brought to my job to develop a little bit more as soon as I get a free time and here my code doesn't work anymore. When I took a look at the JSON by a CFOUTPUT, I realized the strings were in a different order.Does anyone know why is it happening?Link to the JSON: http://sigmine.dnpm.
I have exactly the problepm described on this URL :http://www.elliottsprehn.com/cfbugs/bugs/84976I work with CF9.0 on windows 2008 , all 64bits.With that image I have this error :"An exception occurred while trying to read the image. Unsupported Image Type"I cannot attach that image, it is a bit more than 4Mo, this is just the size the customerused it, they do not care of size.But the problem is well described in that URL above.In the URL above, I do not see any recommandation on what to do to solve this problem.Thanks for any help.Pierre.
Hi please tell me how to Create ORM 1-1,1-m relationship cfc from table , not manually (From table how to create 1-1,1-m ORM CFC in Coldfusion10, Like right click on table ,select option create ORM CFC......) Send me Screen shot or video with take example.
I've been having an intermittent issue sending out emails from our Coldfusion 9 application. We have Coldfusion 9 Enterprise on a Windows 2008 Server that is running 5 different Coldfusion instances. In our case, each of the instances are connected to the same Amazon SES service as its' mail server. We are using authentication and TLS. We send out between 2,000 and 15,000 emails per day typically and I'm getting intermittent errors as shown on the mail.log:"Error","scheduler-4","04/21/14","07:54:27",,"javax.mail.MessagingException: Unknown SMTP host: email-smtp.us-west-2.amazonaws.com; nested exception is:java.net.UnknownHostException: email-smtp.us-west-2.amazonaws.com""Error","scheduler-0","04/21/14","08:01:55",,"javax.mail.MessagingException: Unknown SMTP host: email-smtp.us-west-2.amazonaws.com; nested exception is:java.net.UnknownHostException: email-smtp.us-west-2.amazonaws.com"In these cases, the emails are sent to the Undeliverable folder and are never s
Hello, everyone.I've been tasked with a project that will involve querying a table on one server, then sending the data to a remote server that will take the data and insert it into another database (the two db cannot communicate directly with each other.)I've never had to do something like this, before. What is the best way to achieve the desired results? Is there a way to "submit" a query (anywhere from 1 to 5 records at any given time) to the remote server without incorporating WDDX?CF9 environment, soon to be CF10.V/r,^_^
I have a series of forms that send information to various web services.One is a login form, which consists of a username/password combo, and some other credentials specified in the code. My CF code looks like this:<cfinvoke webservice="https://my.web.service.url/login?wsdl" method="userLookupBySession" returnvariable="appauth"> <cfinvokeargument name="applicationName" value="MYAPP" /> <cfinvokeargument name="accessCode" value="123456" /> <cfinvokeargument name="sessionId" value="#session.appid#" /> <cfinvokeargument name="endUserIPAddress" value="#CGI.REMOTE_ADDR#" /></cfinvoke>And that works quite well.Another form is a registration form. Like the one above, it accepts four arguments.Application nameAccess codeUser data
Hi I am beginning to start learn coldfusion now i want to know the site url where diff type coldfusion projects exist like Hospital management system,School management system,etc.
Hi,I have a question on Cold Fusion license.Have Cold Fusion 9 Enterprise but cannot find the license key.Have Cold Fusion 10 Enterprise and have the license key.Can the license key for CF 10 be used for the CF 9 key?Can the license key for CF9 be obtained somewhere?Thanks,Mike
Does cffeed cache http responses? Two servers with the same code return different content (one is current and the other is out-of-date).Thank you.
Hi All,I just had a heck of a week recovering our Coldfusion production environment. I think it convinced us to create a high availability/failover for the site. My question is is CF 9/10 enterprise required to create a failover cluster? ThanksMark
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.