ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 3rd, 2005, 01:08 AM
tycoon tycoon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 50 tycoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 51 sec
Reputation Power: 5
Question CFC Problem "The tag requires the attribute(s): METHOD"

Hi all...well i'm kindda trying to build a cfc....the it promt out "The tag requires the attribute(s): METHOD" on

the which called the CFC..well can anybody help me with this problem....attach with this msg i attach my code..

The cfc code

Code:
<cffunction name="getspecificempemergencycon" access="public" returntype="query">
  <cfargument name="emp_no" default="1">
  <cfset var specificempemergencycon = "">
  <cfquery name="specificempemergencycon" datasource="epa">
  select * from employeekin
  where emp_no = #URL.emp_no#
  </cfquery>
  <cfreturn specificempemergencycon>
 </cffunction>
</cfcomponent>




the code for calling the cfc

Code:
<cfparam name="URL.emp_no" default="">
<cfinvoke component="cfcomponent.empemergencycon"
method="getspecificempemergencycon"
returnvariable="specificempemergencycon">
<cfinvoke name="emp_no" value="#URL.emp_no#">
</cfinvoke>

<html>
<head>


</head>

<body>
<cfoutput query="specificempemergencycon">
#specificempemergencycon.emp_no#
</cfoutput>
</body>
</html>

Reply With Quote
  #2  
Old June 3rd, 2005, 07:58 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
Your second cfinvoke doesn't have a method attribute. I think what you're really trying to use is cfinvokeargument if you're trying to pass an argument to the method call. This is all covered in the docs by the way.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > CFC Problem "The tag requires the attribute(s): METHOD"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT