Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
SharonMCoupe #1
CFFunction Date Argument
Hi all! Here's the setup...
In a cfc method:
<cfargument name="myDate" type="date" required="no" default="">
In my calling cfm:
<cfset x=myCFC.myFunc(myDate=formDate)>
formDate always exists, but sometimes it's empty (formDate eq "" evaluates to
true) and sometimes it contains a date.
If it's empty, I get an error generated from the component that myDate is not
of type date.
So, my preference is to make use of the date type in the argument, but the
reality is that an empty (null) value is valid.
Does anyone have any suggestions on how to make this work and still use the
date type?
Thanks!
Sharon
SharonMCoupe Guest
-
cffunction problem
Well I am having big problem with coldfusion functions. I have a function in my cfm page to parse xml. In that function I have couple of variables... -
Problem with cffunction
I am getting the following error when the site is on the production server, but it works fine on my local machine. Routines cannot be declared... -
Trouble using cffunction
Hi, I'm trying to use cffunction for the first time. My function looks like this: <cffunction name="getTitle"> <cfargument name="lineitem">... -
UDFs vs cffunction
Hi All, I'm very new to all this so sorry for the stupid questions and repeated topics etc. I find it easier to use UDFs than cffunctions... -
Calling a CFFUNCTION?
I am working on a form that has 3 drop down selection boxes. What I need to have happen is this: Once the first selection (Category) is made, the...



Reply With Quote

