User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,050 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 950 | Replies: 2 | Solved
Reply
Join Date: Feb 2008
Posts: 16
Reputation: zoid777 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
zoid777 zoid777 is offline Offline
Newbie Poster

Date function error and cffile

  #1  
Apr 1st, 2008
Friends, I have two bugs I would like to fix,I know thier is someone out thier that can shed some light into this.
First one is simple I don't know what I typed wrong for the date function it says this as below

Missing argument name.
When using named parameters to a function, every parameter must have a name.
The CFML compiler was processing:

An expression beginning with DateFormat, on line 140, column 75.This message is usually caused by a problem in the expressions structure.
The tag attribute value, on line 140, column 67.
A cfinput tag beginning on line 140, column 12.



138 :
139 : <td><label>
140 : <cfinput type="text" name="dateofbirth" validate="date" value="#DateFormat(getmice.dateofbirth,‘mm/dd/yyyy’)#">
141 : </label></td>

and the second bug is when I upload an images directory to the database and I want to edit the form, it only shows the text fields , while the upload field is blank, I tested the image on a list form and it displays with all the text fields, My question , how can I populate the upload file field with the directory I display in the list form.

Thanks A lot
Last edited by zoid777 : Apr 1st, 2008 at 7:57 am.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 16
Reputation: zoid777 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
zoid777 zoid777 is offline Offline
Newbie Poster

Re: Date function error and cffile

  #2  
Apr 1st, 2008
OOOOP! mistake on my path the ‘mm/dd/yyyy’ should have been "mm/dd/yyyy" instead.
one solved one to go friends.
Reply With Quote  
Join Date: Feb 2008
Posts: 16
Reputation: zoid777 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
zoid777 zoid777 is offline Offline
Newbie Poster

Re: Date function error and cffile

  #3  
Apr 2nd, 2008
After going through a lot of research, i found out its not possible to repopulate a file field because of security reasons. however i could display the directory to the file and the file name to the client and ask them to copy and paste it into the file field.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ColdFusion Marketplace
Thread Tools Display Modes

Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 2:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC