coldfusion

"Duplicate file name" for same WSDL namespace when using web-service from different sub-domains

Preface We are providing customers with our service API. Each customer has own subdomain (e.g. sergii.ourwebsite.com) and own WSDL URL, it looks like http://sergii.ourwebsite.com/api/bsapi.cfc?wsdl Also, all the websites (including API, of course) using the same codebase. Problem Say, two applications on same CF-server. This can ...

How to override methods in Coldfusion (adding and changing arguments etc.)?

I have two almost identical Beans. Bean "Item" contains a unique identifier (primary key), a name and an array that contains structs with data for different Users that are related to the "Item". Bean "User" contains a unique identifier (primary key), a firstname, a lastname and an array that contains structs with data of different Item...

How can I speed up batch processing job in Coldfusion?

Every once in awhile I am fed a large data file that my client uploads and that needs to be processed through CMFL. The problem is that if I put the processing on a CF page, then it runs into a timeout issue after 120 seconds. I was able to move the processing code to a CFC where it seems to not have the timeout issue. However, sometime ...

SQL Server taking a long time to return data to ColdFusion when using Flex

I am working on a Flex application that is connecting via Flash Remoting to ColdFusion 8 with a SQL Server 2005 database. Most of the time, everything runs fine. However, from time to time, it will take an exceptionally long time for SQL Server to return data from a stored procedure call to ColdFusion; returning data from CF to Flex is v...

ColdFusion XLS "Export" and Character Encoding

I am "exporting" data from a page to Excel using an HTML table. The table looks fine in the browser but in Excel special characters such as apostrophes, trademark symbols, etc. are improperly encoded. If I open the exported file in notepad and save it as ANSII encoded then open it in Excel everything looks fine again. I tried setting t...

What are my options for working with markdown in ColdFusion?

I am seeing many many different use cases where I could use Markdown in apps that I write, both personal and professional. But from my research so far, I haven't been able to find many options for working with it in ColdFusion. I would certainly like to keep from reinventing the wheel by trying to implement it myself if someone else al...

Why does arrayAppend return true and listAppend return the list?

In ColdFusion, the arrayAppend() function takes an array and an item to be appended. It modifies the array that was passed in and returns true if successful. The listAppend() function, however, takes a list and an item to be appended, and returns a new list with the item appended. It doesn't modify the list that was passed in. Why do ...

What Access Rights am I Missing on my Stored Procedure

I'm trying to run a stored procedure from my website that disables a trigger. Here is the code for the trigger: CREATE PROCEDURE [dbo].[DisableMyTrigger] AS BEGIN alter table dbo.TableName DISABLE TRIGGER TriggerName END I've also set the permissions on the stored procedure with: Grant Exec on dbo.DisableMyTrigger To DBAccountNam...

CFExecute is seemingly not working

I am trying to minify some files in a roll-up script using jsmin. This works just fine on my local machine but when pushed to production it doesn't work at all. I am running the built-in CF development server locally and IIS on production. Not really sure how I should go about debugging this. Here is a relevant code snippet: <cfset ...

in coldfusion, variables in what scope can be passed to and iframe page?

hi everyone, i wrote 2 pages to test this problem, but the server complaints error. i don't know why, anyone can explaint it? great thanks. this is 1.cfm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <meta http-equiv="Content-type" content="te...

CFChart doesn't - need webserver setup advice

I have a shared hosting account for my ColdFusion websites. One of my customers needs CFChart graphics for his statistics. I've programmed them and they run ok on my own development server, but they don't show up online. The reason is that ColdFusion puts the generated images into /CFIDE which is outside of my part of the file system, an...

Can I pass a simple value by reference in ColdFusion?

By default, ColdFusion passes simple types (like numeric, string, and GUID) by value to functions. I'd like to pass a simple type by reference. I'm currently wrapping a simple value in a struct (they get passed by reference). This solves my problem but it is very ugly: <!--- TheFunctionName----> <cffunction name="TheFunctionName"> ...

Trouble storing more than 64000 in mysql mediumtext column

I am having difficulty storing more than 64000 in a column defined as mediumtext within mysql. I ran into this limitation with the text datatype earlier and decided to drop the column and recreate it as a mediumtext field. Trouble is, my data is getting truncated at 64000 bytes. I did double check that the field is now a medium text...

passing and getting variables to a cfwindow

I have a table within a form that has many identical rows. At the beginning of each row is a text field and a button that creates a cfwindow so that the user can browse an inventory and select a single item. Then I need that item's name and ID to get sent back to the main page and populate the text box. The main page form works fine. The...

How to handle comma separated decimals and floats in CF?

I have to validate form values as integers. I have tried something like this: <cfloop collection="#form#"> <cfif form.value eq int(form.value)> #form.value# is an integer </cfif> </cfloop> It works as long the user does not input comma as the decimal separator, which is the default way of doing this here in Germany. I have to us...

Why does the dependency injection fail in my CF factory object?

I get this error Element INSTANCE is undefined in VARIABLES. I do not see the reason for the error! This is my factory <cfcomponent output="true" displayname="ObjectFactory"> <cffunction name="init" access="public" output="true" returntype="ObjectFactory"> <cfset variables.instance = structNew() /> <cfreturn this /> </cffu...

in coldfusion, variables are resolved in what order?

hi everyone, i have little impression about variables resolve order, but i can't found it in the cfml reference or coldfusion dev guide, anyone can help? great thanks. ...

How to reference C# library in Cold Fusion?

Hi I have a situation where in I need to reference a C# library in my Cold Fusion code. Any suggestions or links would be really useful. cheers ...

How to find position of nth token

We have a string that has a maximum limit of 20 words. If the user enters something that is more than 20 words, we then need to truncate the string at its 20th word. How can we automate this? We are able to find the 20th token with #GetToken(myString, 20, ' ')#, but are unsure on how to find it's position in order to left-trim. Any ideas...

RegEx for Spanish alphabets in ColdFusion 8

Hi all I know that I can use [a-z] to check for any alphabets from a to z in CF 8. However, are there any regex to detect spanish alphabets like á, í, ó, é, ñ, etc.? Thanks in advance, Monte ...