The official community for ColdFusion.
Recently active
hi thereStill on CF 9.0.1.xI have in the same directory 2 CFCs, each implementing an object that communicates with each other. Each CFC has the variables scope used. They are part of an emulator for a physical device. There are more cfc involved but I reduced it to the minimum test case.The parent is MCU which instantiates any number of TARGETS. A target communicates back to MCU with a callback function provided by the MCU. The callback function uses MCU's clock to log the incoming message.---component MCU { variables.mcu.clock = 0; more of variables.mcu.* Init () {// Create all targets, call each target’s registerMCUListener to let them know whom to call back. variables.mcu.targets = CreateObject ("component", "target").Init (); variables.mcu.targets.registerMCUListener (cbFromTarget); } private numeric function cbFromTarget (struct msg) {writedump (var=#variables#); // <<<< This shows the variables scope of TARGET, expected MCU variables.mcu.events
Hi,I have coldufusion 7 and can't use the datafield type for input field. Instead, i want the pop up calendar for user to pick the date. I've search from the web and they talked about jquery but do'n't know about this. I did see some code but don't know how to call in cfm page. Can any one please walk me through this?thankskt
I use <cfoutput> to export a tab delimited text table for excel. I added a bunch of fields to a working export and it's broken. I doublechecked my syntax in the construction of the output string. I am noticeing that intellisense stops working on the line at 512 characters. Could there be a limit to the length of a single line in a cfoutput export?Is there a better way to export to Excel?Thanks.
I have the form is displayed order no, message and sent_date. Mesage and Date sent are editable. I can change value from both colums in diffrent values then hit submit for update. My code below is loop thur message and date sent field then update them based on the pk ID. Unfortunately, it didn't work as the expected. Can you please help?Oder NOMessageDate Sent5463first message12-10-125463second message10-13-12<cfset myIds = ArrayNew(1)><cfform name="update" method="post"> <cfloop query="qMesg"> <cfscript> ArrayAppend(myIds, "#id#"); </cfscript> <cfinput type="text" value="#mesg#" name="mesg"> <cfinput type="text" value="#dateformat(sent_date, 'mm-dd-yy')#" name="sent_date" validate="date" /> <cfinput type
I can see my valuelist choices when I click on the gridcolumn in my CFGrid.But I am also seeing a weird choice added to the valuelist choices. It is some kind of Ext error I believe.The valuelist named "PositionChoice" should display "Include" and "Remove" The weird choice in the valuelist options begins with: <div class=x-grid-col-0 I initialize the valuelist like this:<cfset PositionQuery = QueryNew("IncludeORNot", "VarChar")><cfset newRow = QueryAddRow(PositionQuery, 2)><cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Include", 1)><cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Remove", 2)><cfset PositionChoices = #ValueList(PositionQuery.IncludeORNot,",")# />-----------------------------------------------------------------------------I call my valuelist in the CFGrid like this:<cfgridcolumn name="GroupChoice" header="Group Choice" values="#PositionChoices#" width="20" display="true" select="true"/> &
Hi,I am query out and display all dates from my table but for some reason I have invalide date such as :1753-01-01 00:00:00.0 and some others invalid.I only need to display the valid date, if not valid then display empty, however, the code i have below was not working. <cfloop query="q_pur"> <cfif not isDate(chgDate)> <cfset valid_chg_date = '' /> <cfelse> <cfset valid_chg_date = chgDate /> </cfif> #valid_chg_date#<br /> :--->it still shows 1753-01-01 00:00:00.0 instead of ' ' (empty string)</cfoutput>any idea?thanks
I have the following simple dropdown on my form:--------------------------------------------------------- <select name="ttTo" id="ttTo" > <option value="">Choose One</option> <cfoutput query="rsTicketTo"> <option value="#rsTicketTo.ttEmail#">#rsTicketTo.ttDesc#</option> &nbs
Why do the following two filter attributes yield different results in a cfldap query? 1) Filter="(|(sn=edmu*)(sn~=edmu))"2) Filter="(|(sn~=edmu)(sn=edmu*))"From the results it looks like the second OR operand in the second filter, "(sn=edmu*)" is just being ignored. I don't see any documentation though on what order things are supposed to be in for these filter attributes.
I'm checking through some old code, tidying it up a little and making sure everything is using cfqueryparam - I've got the following bit of code and not sure what to do with it - I know cf_sql_array is available but I can't find any examples of information on it (or if that's exactly what I should be looking at):<cffunction name="myfunction" access="public" returntype="void" output="false"> <cfloop index="i" list="#visualList#"> <cfif form["visual" & i] neq "NA"> <cfquery name="assetVisualCheck" datasource="#APPLICATION.Config.dbdsnd#" username="#APPLICATION.Config.dbuname#" password="#APPLICATION.Config.dbpass#"> INSERT INTO as
Hi, I notice JDK7 preview is available:http://jdk7.java.net/ Have done a small amount of testing with Java 7 on CF9 and find encouraging results for application performance particularly with the new Generational One collector (not sure what the correct terminology is for that) -XX:+UseG1GC in place of the usual -XX:+UseParallelGC garbage collector. Don’t let the new collector scare you the ParallelGC we all use and love still works with Java 7. Once JDK7 is installed, edit CF\runtime\bin\jvm.config (need I mention backup the original first?) eg: java.home=C:\\Program Files\\Java\\jdk1.7.0\\jre# Arguments to VMjava.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseG1GCetc For those interested my CFADMIN > System Information reports in part: Server Details Server Product ColdFusion Version 9,0,1,274733 Edition Developer Serial Number Operating System Wi
Ok, this is a new one on me. I had 9.0.1 and everything worked just fine. Well today 9.0.1 died so I uninstalled and installed 9.0.2. That all went fine. Most of my pages call a counter.cfc to keep track of hitcounts on pages.Here is the cfc:<CFCOMPONENT HINT="Hitcount processing"> <!--- List users method ---><cfset day=LSDateFormat(Now(), "mm/dd/yyyy")><cfset time=LSTimeFormat(Now(), "h:mm:ss tt")><cfset current="#day#"> <CFFUNCTION NAME="Add" RETURNTYPE="void" HINT="Add to hitcount datebase"> <CFARGUMENT NAME="Page" &nbs
I am trying to create a coldfusion poll on a page. Is there a way to do it so that page doesnt neccessarily reload? Has anyone done this and can give me a few hints or code to get me started? Thanks.
Hi I read about revalidating data submitted in server side in many post.I need to know the about perfromance statistics on validating a piece of data two times(client and server side).regardsRKP
I have a Windows 2003 SP2 IIS 6.0 32 bit server Dell 2850 4 G RAM - as a test platform. I was running CF9 standard normally on the server with good page performance. I installed CF10 standard (Plus the mandatory update) on the server and now the admin screen and all web pages take over 30 sec to load. Task manager shows mostly idle at 99% - Single NIC active with a single IP address in use. I remove cp10 and restarted cf9 and the performance is back to normal. Ideas?
I have a table that includes rows of pending actions pointing to duplicate e-mail addresses. I would like to send the addressees their respective action items in one e-mail to each person. The CFMail sends the pending action items to each in separate e-mails. I've tried using the cfsavecontent tag in the CFMail but it includes all the action items to all the addressees. I've tried to use a loop but it duplicates the records. Can someone please tell me what the best method is to accomplish what I'd like to do. I would be most appreciative. Thanks
Hello,Is anyone else seeing this on startup / login to ColdFusion ServerManager?CONFIRM!"Failed to read the scheduled tasks from myServerName.Continue to read charting settings from myServerName?"I'm running Coldfusion Standard 10.0.5.283319 on a remote Win 2008R2 64 bit webserver.ServerManager version is v1 but this seems different than the one that came with CF9 where it worked just fine.Thanks,Jack Ring
I have the queries that get values from other two tables and then insert those values into the final tables. My code below did not inserted the correct record.Thanks<!---list all purNo, padNo where purNo = 3215---><Cfquery name="getDetails" datasource="#dsn#">select purNo, padNo from tbl_details where purNo = 3215</Cfquery><!---list all cusNO where purNo = 3215---><Cfquery name="getCust" datasource="#dsn#">select cusNO from tbl_customer where purNo = 3215</Cfquery>From the form, I have one text box for user to enter new date then hit submit. Once submit button is clicked, I would like to get the results from above two queries to insert into tblOrder.<cfset note ="new date changed from" /><cfloop query="getDetails"><cfloop query="getCust"><cfquery name="insert" datasource="#dsn#"> insert into
Hi,I have the simple query for select * from the table and try to display results into cfgrid but i got nothing show on the page. what's wrong with this?Thanks<cfform> <cfgrid name = "FirstGrid" format="flash" height="320" width="580" font="Tahoma" fontsize="12" query = "qname"> </cfgrid></cfform>
HelloI have an app running with approx 6,000 signees. I try to ensure their email going in the DB is validated via javascript- but this not totally effective.What code could I write in the CFmail tag that would ignore bad emails, send the meassage without errors, and perhaps even list the bad mail addresses?Thanks in advanceNorman B.
Take time to let Adobe know your choice of platform for ColdFusion by taking part in the ColdFusion Platform survey.Here's the link for the survey: https://www.surveymonkey.com/s/HMQG62Y
Hi there,I inherited a website that was developed in CFMX & MS SQL several years ago. The site was moved to a CF10 server with a MySQL DB which seems to have caused a few issues here and there. One issue I am currently experiencing is decrypting information stored in a SQL database. I have the key it was inserted with, and I know that it was inserted via AES.So here's the query I'm trying to run:Select *, AES_DECRYPT(cardnumber,'#cckey#') as ccnumber from orderinfo where orderno='123'When I output the query and try to pull up #ccnumber# it throws the hatred generic "Internal Server Error 500" and gets me nowhere. If I try to output #cardnumber# instead, the actual column name in the database, I am given a long string of jarbled letters, numbers, and symbols. I figured that mabe I could use the Decrypt() function in ColdFusion to decrypt that if it's not working at the database level, but I don't get anywhere with this method either; I get the same generic error.What would you recom
I have a couple of ColdFusion 10 servers running on WindowsServer 2008r2 and IIS 7.5. Both of the boxes are running a couple different applications. The only significant difference I'm aware of between the 2 is that one is running the application all on one site just under different directories the other has inidividual sites and IP's configured under IIS for each application. I upgraded the first box to Java 7u9 and it worked fine but when I tried to upgrade the second the box the coldfusion service wouldn't restart. I can point the cold fusion back to Java 6u37 and it works does anyone have any ideas as to what may be causing this.Thanks,Scott
Hi,I've just installed CF 10 in demo mode on a fresh Windows 2008 R2 64 bit VM. I'm using IIS 7.5 as my web server. After completing the setup wizard I am unable to access the cfadmin at :http://127.0.0.1/CFIDE/administrator/enter.cfmI'm getting a message that my password is invalid.I have used the password reset batch file in cfusion/bin with no luck. I have restarted the CF service.Any advice is appreciated.Thanks!
Issue: The names comes across like this: Hausmann, Alan *I want to strip an asterisk out of the name. I was using the Replace function.But I do not understand what the error means (Error: Invalid construct: Either argument or name is missing.)This is the code I am using.<cfoutput>#Replace(form.name,*,"")#</cfoutput>Thanks,Al Hausmann
Good morning I have a situation wherein during an insert into my database, the variable that I created from an cfif/cfset throws an error. Am I missing something? My code is below...<cfset gradepoint =VAL('#fcnpoint#') + VAL('#attitudepoint#') +VAL('#guestpoint#') + VAL('#contactpoint#') + VAL('#attendancepoint#')+ VAL('#nspoint#') + VAL('#foidpoint#') + VAL('#otherpoint#')><cfif "#gradepoint#" GTE "-20.45" AND "#gradepoint#" LTE "11.1"><cfsetmaingrade= 'F'></cfif>INSERT INTO squadreport (squid, squgrade)VALUES ('00', '#maingrade#')</cfquery>
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.