I am working on a search screen for my app, and I have run into this
error that I can't figure out.
[RPC Fault faultString="Array of input arguments did not contain a
required parameter at position 3" faultCode="Client.Input"
faultDetail="null"]
I have check to make sure that I am passing a value from each of my
inputs, but I cant seem to figure out why I am still getting this error.
Here is my code.
as code.
//*****************START VENDOR NAME SEARCH
VALIDATION*********************
// DEFINE VARS FOR STORING VALIDATION OBJECTS
private var vVenLastName:ValidationResultEvent;
// FUNCTION TO VALIDATE, IF VALID SEARCH FORM, IF NOT VALID SHOW ERRORS
private function venNameSearchValidation(){
vVenLastName = venLastNameV.validate();
if (vVenLastName.type==ValidationResultEvent.INVALID){
return;
}
else{
SearchParties_Vendor_Search_Name(venFirstName.text,
venLastName.text, searchType.selectedItem.data);
}
}
//*****************END VENDOR NAME SEARCH
VALIDATION***********************
//*****************BEING VENDOR NAME SEARCH
*********************************
// CALL VENDOR NAME SEARCH
private function SearchParties_Vendor_Search_Name(firstName,
lastName, searchType){
SearchParties.Vendor_Search(firstName, lastName,
searchType);
}
// HANDLE THE RESULTS OF THE VENDOR NAME SEARCH
private function
SearchParties_Vendor_Search_Result(result):void{
currentState = 'venNameResults';
venNameDG.dataProvider = result;
}
// HANDLE THE ERRORS OF THE VENDOR NAME SEARCH
private function
SearchParties_Vendor_Search_Fault(event:FaultEvent):void{
Alert.show(ObjectUtil.toString(event.fault));
}
//*****************END VENDOR NAME SEARCH ***********************
Here is my cfc code.
<cffunction name="Vendor_Search" access="remote" returntype="query"
output="false" >
<cfargument name="firstName" required="no" default="" />
<cfargument name="lastName" required="no" default="" />
<cfargument name="searchKey" required="no" default="" />
<cfargument name="searchType" required="yes" />
<cfquery name="VendorSearchQry"
datasource="#application.dsn#">
select
fld_vendor_firstname, fld_vendor_lastname,
fld_vendor_fullname, fld_vendor_companyname, fld_vendor_workphone,
fld_vendor_homephone, fld_vendor_mobilephone
,fld_vendor_fax, fld_vendor_UID
from
tbl_smartPanel_vendors
where
<cfif arguments.searchType is "name">
<cfif arguments.firstName neq "">
fld_vendor_firstname like
'#arguments.firstName#%' and
</cfif>
<cfif arguments.lastName neq "">
fld_vendor_lastname like '#arguments.lastName#%'
</cfif>
</cfif>
<cfif arguments.searchType is "phone">
fld_vendor_workphone like '#arguments.searchKey#%'
or
fld_vendor_homephone like '#arguments.searchKey#%'
or
fld_vendor_mobilephone like '#arguments.searchKey#%'
</cfif>
<cfif arguments.searchType is "fax">
fld_vendor_fax like '#arguments.searchKey#%'
</cfif>
<cfif arguments.searchType is "company">
fld_vendor_companyname like '#arguments.searchKey#%'
</cfif>
</cfquery>
<cfreturn VendorSearchQry />
</cffunction>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/