coldfusion flash integration:
I used the code for the Real Estate Flash Remoting example on
http://www.asfusion.com/blog/category/cfform to make a search interface for an
application that we are developing.
I modified the code and it works to a point. The gateway returns the query
results to the grid. However, I can't get the form or service to pass the
arguments to the gateway query.
I've even tried hard coding the values in the ListingService component to pass
to the query, but that doesn't seem to work either.
Here is my code for the service, gateway and form. Any assistance would be
greatly appreciated as this is the only block I have to get this moving.
Is there a glaring error here? If not, could anyone point me in a direction
on how to debug something like this? I've never really tried using
remoting/services previously, so I'm at a loss at where to start.
Thanks for any assistance,
Steve
Service:
<cfargument name="teacher" required="no" type="numeric" default="0"
hint="Primary key"/>
<cfargument name="fromDate" required="no" type="string" default=""
hint="Search From Date" />
<!--- call a component sitting in memory (application scope) --->
Index:
function submitSearch():Void
{
<!--- get all the search criteria items --->
var searchArguments = {};
<!--- simple text input --->
searchArguments.date = search_fromDate.text;
<!--- dropdowns --->
searchArguments.teacher = search_teacher.value;
<!--- show clock cursor --->
mx.managers.CursorManager.setBusyCursor();
<!--- call service --->
Homework.myGlobalObjects.ListingService.search(searchArguments);
}
<cfreturn
application.ListingGateway.search(argumentCollection=arguments) />