The official community for ColdFusion.
Recently active
Hi everyone,I have a java script window that is will open when user click on the link, my problem is that how I can pass a ColdFusion variable to the window. I am using ColdFusion 7 so I can not use cfwindow.what shold I put on the *** place??? I tried to put EntityId in the call place javascript:poponload(EntityId ); and function poponload(EntityId ), doesn’t 't work either so please let me know if you know how to do this.My code:<SCRIPT language="javascript">function poponload(){window.open ('test.cfm?test='*** ,'mywindow','menubar=1,resizable=1,width=350,height=250');}</SCRIPT><body><cfform><cfset EntityId ="#form.EntityId#"> /I want to pass EntityId to the javascript window</cfif><a href="javascript:poponload();">Find IDs</a></cfform></body>
Almost completed my form in iloveBandB, ID LOVE_8228, but arrived at Maps an error occurred. What can I do? Thanks
First off, let me apologize for the cryptic title, but I wasn't sure what to call this thread.I'm pulling a list of users from a web service that I'm integrating into an application that I'm modernizing. Previous versions of this app stored users in a table, whereas now they're being pulled from a web service. Certain users are assigned certain tasks, so I have a table in the database that matches user IDs with task IDs.Right now, I've pulled the user data from the web service into a new query, using QueryNew() and its siblings. But now that I have my hands on that data, I've realized that I can't use it.In the past, I've done inner joins do things like list users with their tasks, assign tasks, etc. I've done this using JOINS in my queries. But now I can't figure out how I'm going to duplicate this using external data.One idea I have is to do an INSERT into a users table in the database as soon as the application is loaded into a browser. If I wrap
HTTP Status 500 -type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: java.lang.NullPointerException coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
We had our own server working with an app. We started hosting with a different provider and now we are getting the above-mentioned error.On the same page, this works:<cfset compTest = createObject("component", "components.search")><cfset result = compTest.search(1,10,1,"desc","")><cfdump var="#result#">But this one does not<cfform name="searchResultGridForm"><cfgrid name="searchResultGrid"bindOnLoad="true" bind="cfc:components.search.search({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},{searchedWord@keyup})" format="html"selectMode="Row"selectOnLoad="false"width="790"height="290" colHeaderAlign="Center"stripeRows="true"pagesize="10"><cfgridcolumn name="fileColor" header="Priority" width="50"><cfgridcolumn name="idFile" header="ID" width="40"><cfgridcolumn name="firstName" header="First Name" width="80"><cfgridcolumn name="lastName" header="Last Name" width="80"><cfgridcolumn name="email" header="Email" wi
We have a pdf that is filled out by ColdFusion using <cfpdfform>. A field in the pdf was named incorrectly so there are 2 fields named the same thing (let's say "field1"). As the system has populated (many) copies of the pdf the same value has gone into both fields named "field1" when really two different values should have gone into a "field1" and "field2".I need to get the information correctly entered into "field2" so I had two ideas...I researched was renaming the field in all the pdfs using ColdFusion (so I could repopulate the new field) but that does not appear to be possible. But to confirm... Can you rename a field in a pdf using ColdFusion?If I couldn't rename it I just wanted to change what was in the second occurrence of "field1". I tried using the index attribute of <cfpdfformparam> but that only applies to forms created in LiveCycle. Does anyone know how to populate only one occurrence of a field name in a pdf using <cfpdfform&
I need to pull a userlist for my web app, and that involves invoking a web service on the authentication server. I've managed to do just that, but the XML file I'm given to deal with looks like this: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body><ns1:getAllUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://web.ws"> <getAllUserInfoReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> &lt;?xml version = '1.0'?&gt; &lt;USER&gt; &lt;ROW num=&quot;1&quot;&gt; &lt;USER_ID&gt;25214&lt;/USER_ID&gt; &lt;LOGIN_ID&gt;JDOE&lt;/LOGIN_ID&gt; &lt;NAME_LAST&gt;JOHN&lt;/NAME_LAST&gt; &lt;NAME_FIRST&gt;DOE&lt;/N
I have developed a number of extensive websites in Dreamweaver 3. I now want to shift over to ColdFusion Builder 3. How do I shift the Dreamweaver sites into ColdFusion 3?
Hi everyone.I'm trying to get 'name' from 'name@domain.com' using cf reg ex.I've got this so far #rereplace('temp.emailaddress','[^@]+','')#which is giving me @7431982.com - but I want the first part, can anyone point me in the right direction please?Thanks ever so much.Nick
We have a program that was wrote by a programmer whom is no longer with us. When I go to log in to the program for the first time, after I put in my username and password and hit sign in I receive a "404 - File or directory not found error." All I do is hit the back button and login again and it logs me in just fine. I noticed when the error appears I'm getting a CFID and CFTOKEN added to the end of the URL. When I'm able to login successfully it just takes me straight to index.cfmCan anyone tell me why its doing this and how to fix it? Its just annoying to have to login twice everytime. Thanks
I am unable to edit properly French accents (in templates coming from Dreamweaver) with CF Builder. I cant write HTML entities, but may be somebody has a better solution ?
I am fully aware that this is a tag adobe created using a flash interface.I also know that it does Not need to be nested inside of a torm tag. I need to capture theFile name and the path it took to be uploaded to the server so I can insert that into a database for search functionality.Thoughts?
When attempting to archive a log file programmatically using the archiveLogFile() method of servermanager is there a way to test the success/failure of the action. I triedadminObj = createObject("component","cfide.adminapi.administrator").login("topsecret"); serverObj = createObject("component","cfide.adminapi._servermanager.servermanager"); result = serverObj.archiveLogFile("logfilename"); writeDump(result); However, result is undefined.Thanks!
I have an external login service that I'm using to authenticate users. After logging in, I get an XML file from which I can pull things like user ID and rights.The login page redirects to an index page in another folder (which is protected by the authentication service) and on that page, I have a <cfif> statement that looks at rights.The rights returned are "J" (for judge) and "A" (for admin), which I'm setting as the session variable: session.rightsIf I do this: <cfif session.rights eq "A"> admin section <cfelseif session.rights eq "J"> judge section <cfelse> redirect to the login page </cfif> The else is what triggers. If I cfoutput #session.rights# I get J, but for some reason, J does not equal J. I've tried trimming it and everything, to no avail.Any ideas?
Making all in apache-2.0make[1]: Entering directory `./src/connector-source/native/apache-2.0'./apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -I./httpd/include -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -DHAVE_APR -I./apr/include/apr-1 -I./apu/include/apr-1 -DHAVE_CONFIG_H -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -c mod_jk.c -o mod_jk.lomod_jk.c: In function 'init_ws_service':mod_jk.c:832: error: 'conn_rec' has no member named 'remote_ip'mod_jk.c:833: error: 'conn_rec' has no member named 'remote_addr'mod_jk.c:1106: error: 'conn_rec' has no member named 'remote_ip'mod_jk.c:1106: error: 'conn_rec' has no member named 'remote_ip'make[1]: *** [mod_jk.lo] Error 1make[1]: Leaving directory `./src/connector-source/native/apache-2.0'make: *** [all-recursive] Error 1
Our company has an application that use cfcompile -deploy targeting certain cfml file. Before update to CF 11 everything run fine. But now the cfcompile won't work.This is the command that our application execute :cfcompile -deploy "c:\inetpub\wwwroot\" "c:\inetpub\wwwroot\app\index.cfm" "c:\inetpub\wwwroot\app\index_comp.cfm"using CF10 cfcompile will successfully compile and generate file index_comp.cfm. When same command is used in CF11 cfcompile will produce error :java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at coldfusion.tools.CommandLi
I have a comments field from query result for report data source.Because it is a navrchar(max) field, the result can be shorter or longer based on the data users entered.I would like to have the text field and details band growth base on the data.Are there any property to change it at run time or I need write UDF to do the task?Your help and information is great appreciated,Regards,Iccsi,
The CF11 FAQ mentions "migration resources" and has a link but when you follow it, it doesn't take you to any migration documents.
Just so we don't get too far off track, keep in mind the code samples below aren't my true code. I'm stripping things down for illustration purposes only - I realize they're bad examples and lack CFQUERYPARAM. So, to give a little background first... I started my ColdFusion programming career over a decade ago building fairly large e-commerce applications. Not Amazon scale, but not mom-and-pop shopping carts by any means.In those days I often used CFTRANSACTION for situations where multiple INSERT or UPDATE queries relied on each other. For example, a form that inserts a new product into a database table, and inventory counts into a separate table.For example:<cftransaction><cfquery datasource="mydatasource" result="product_inserted">INSERT INTO products (sku, price, title)VALUES ('555-555', 2.50, 'Spider-Man T-Shirt')</cfquery><cfquery datasource="mydatasource">INSERT INTO inventory (product_id, inventory)VALUES (#product_inserted.IDENTITYCOL#, 50)</cfquery&
Hiwe cf 11 enterprise 64 bit installed at window 2008 R2 SP1. try to setup data source for ms. access. getting following error :-Connection verification failed for data source: SARSINFO com.inzoom.jdbcado.JdbcAdoException: could not load izmjniado.dll Can't load library: c:\program files\infozoom\izmjniado.dll The root cause was that: com.inzoom.jdbcado.JdbcAdoException: could not load izmjniado.dll Can't load library: c:\program files\infozoom\izmjniado.dllWhen we installed at 32 bit machine, it work.Pls.help.thanks,
In ColdFusion Report Builder, is there a way to shrink text to fit a particular area? (as opposed to stretching with overflow)Any help would be greatly appreciated!- Chris
Hi,On CF10 web application, I am using CFGRID to show a search result output on the screen. I found that depending on the number of records returned from the query, CFGRID is not showing any data on the screen. I have a query that returns more than 3,000 records with 80 columns and it does not show data on the screen. It may sound stupid to show such many columns on the screen but that's what the user wants. I have not tried paging with CFGRID but I just want to know if there's anyone who might have encountered the same issue and how they solved such an issue.Thanks.Pacita
Reading lines in a text file,Listing a text file , with value between ;sometime , there is no data between 2 ; which I need to know.In that case, (when there is no value between the delimiter) my array have a different length (smaller)Then the data order is not good.As I want to save in a DataBase, I do not know what data in what field number ?Thanks for any help,Pierre.
Hi ,I am required to install CFB 3 to support multiple users access on a development environment.Developers are working on a same server. Once the CFB 3 get installed, only the admin user can run the program but no other.Whenever the CFB 3 starts, it showed an error message below."Locking is not possible in the directory"C:\ColdFusionBuilder3\configuration\org.eclipse.osgi", A common reason isthat the file system or Runtime Environment does not support file locking forthat location. Please choose a different location, or disable file lockingpassing "-Dosgi.locking=none" as a VM argument.C:\ColdFusionBuilder3\configuration\org.eclipse.osgi\.manager\.fileTableLock (Access is denied)"Any clue on how to get this fixed.Thanks.Oli
Hello, I have a client requirement to install CF 11 Standard on Linux (Debian 7.x) with Plesk 11.x control panelDoes anyone have any experience with this? Is it a pretty straight forward setup process? I only know Windows/Coldfusion, so this will be new.Also, do the same issues still apply with differences between Linux/Windows with filename case. Is there a current document anywhere that will explain coding differences between the two OSsThank you!
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.