I'm sure the solution is simple but I can't seem to find the answer. Basically how do you call a <cffunction> with only some of the arguments?
I have the following function:
<cffunction name="fImageCol" output="Yes">
<cfargument name="tcItemNumber" required="No" default="">
<cfargument name="tcJobNumber" required="No" default="">
<cfargument name="tcPartNumber" required="No" default="">
<cfargument name="tcVersion" required="No" default="">
<cfargument name="tcInvScanDiskLoc" required="No" default="#APPLICATION.cJobImageLocation2#">
<cfargument name="tcInvScanWebLoc" required="No" default="#APPLICATION.cJobWebImgLocation2#">
<cfargument name="tcJobScanDiskLoc" required="No" default="#APPLICATION.cJobImageLocation#">
<cfargument name="tcJobScanWebLoc" required="No" default="#APPLICATION.cJobWebImgLocation#">
<cfargument name="tcLinkType" required="No" default="#APPLICATION.cJobImgLinkType#">
<cfargument name="tcLinkDesc" required="No" default="#APPLICATION.cJobImgLinkDesc#">
A BUNCH OF CODE GOES HERE!
<cfoutput>
<cfif FileExists(lcPDFFile)>
<a href=""
target="_blank"
title="EU Services | Customer Inventory Browser">#ARGUMENTS.tcLinkDesc#</a>
<cfelse>
NA
</cfif>
</cfoutput>
</cffunction>
When I call the function this way:
#REQUEST.fImageCol(KitItems.CarrierInv)#
Everything works perfectly. However, I need to call the function and pass in the last 2 arguments. If I try and call the function like this:
#REQUEST.fImageCol(KitItems.CarrierInv,,,,,,,,APPLICATION.cJobImgLinkType, APPLICATION.cJobImgLinkDesc)#
The program fails with the message: Missing Argument Name. How do I call the fuction and only pass the 3 arguments I want to?
______________________________________________________
<file:///E:/EUColor.gif>
Bill Grover
Manager, Information Systems Phone: 301.424.3300 x3324
EU Services, Inc. FAX: 301.424.3696
649 North Horners Lane E-Mail: <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
Rockville, MD 20850-1299 WWW: <http://www.euservices.com/> http://www.euservices.com
______________________________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

