I have a data grid populated from an ArrayCollection
it looks like this
<mx:ArrayCollection id="myDrawingsDetail"
source="{wsPDI.drawingsdetail.lastResult}" />
data grid is updateable. My goal is to allow a user to update the
contents of the datagrid (which if i understand correctly updates the
ArrayCollection) and send the updated ArrayCollection to a CFC for
updateing a database. The user has a button that fires off a function
that looks like this
public function CommitDrawingChanges():void
{
wsPDI.tester.send()
}
I think the way to go is to pass the entire ArrayCollection to the CFC
as I beleive that ColdFusion will treat the ArrayCollection as a query
object and I can <cfloop query...> over the query object to do my update
statements.
I dont seem to have the syntax right or my understanding of how
ColdFusion is treating an ArrayCollection is wrong.
The webservice call looks like this.
<mx:WebService id="wsPDI" showBusyCursor="true"
l="http://test/pdi.cfc?wsdl <http://test/pdi.cfc?wsdl> "
useProxy="false">
<mx:operation name="tester" >
<mx:request>
<qryobject>{myDrawingsDetail}</qryobject>
</mx:request>
</mx:operation>
</mx:WebService>
the CFC looks like this
<cffunction access="remote" name="tester" returntype="query">
<cfargument name="qryobject" type="query" required="no">
<cfquery name="testqry" dbtype="query">
select * from qryobject
</cfquery>
<cfreturn testqry />
</cffunction>
I am getting java:lang errors from cold fusion when i try to evoke this
method of the webservice.
Im I totally off base in my thinking? I cant seem to find any examples
of editing a datagrid then passing the edits back to a webservice