No you are right, I don't want to see both at the same time.  The
template is working but not displaying the form.  I have tried the
IsDefinded but I did not leave it blank, and have not tried the
isnumeric.  I will take another look at this.

Thanks, Ben 

-----Original Message-----
From: Andre Turrettini [mailto:[EMAIL PROTECTED]] 
Sent: Monday, May 20, 2002 10:58 AM
To: CF-Talk
Subject: RE: Cfif cfelse question 


I diferentiate by looking at the id.  For a new item, its blank or not
defined so isnumeric(id) or isdefined("id") tells you whether your
editing or adding the entry.  

However, I am a bit confused as to your wording "can only get one
portion of the template to show at a time?"  Does that mean you want to
show them both?

DRE

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 8:53 AM
To: CF-Talk
Subject: RE: Cfif cfelse question 


is there any other variables distinguishing between a new and an edit?
if not you should try passing a type variable that does.

Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org


-----Original Message-----
From: Ben Covington [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:40 AM
To: CF-Talk
Subject: Cfif cfelse question 


Hello All,

I'm trying to develop a way to differentiate between a new record or the
editing of a previous entered record using a single template.  The user
clicks on the link which passes the variable ID to the template for the
cfif new and cfelse edit - but can only get one portion of the template
to show at a time?  I've also tried cfswitch and cfcase to no avail.  

What else should I try?  Any assistance or direction will be greatly
appreciated.  

Best regards, Ben



______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to