Hi there,
I'm using the RDS Dataview in Flex Builder 2, and creating .cfc's
and .as using the coldfusion wizard.
This generates:
- item.cfc
- itemGateway.cfc
- item.as
Great, I can use the get() and getAll() methods of the itemGateway
fine, but I can't figure out how to save the item.
the itemGateway has this for its save method.
<cffunction name="save" output="false" access="remote">
<cfargument name="obj" required="true" />
<cfreturn obj.save() />
</cffunction>
I've tried:
item.save(itemName); where item is a remote object
<mx:RemoteObject id="item"
destination="ColdFusion"
source="kkmis.models.itemGateway" >
<mx:method name="get" result="dataHandler(event)"/>
</mx:RemoteObject>
[RPC Fault faultString="Could not find the ColdFusion Component
models.Items." faultCode="Server.Processing" faultDetail="Please
check that the given name is correct and that the component exists."]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
ultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::NetConnectionMessageResponder/NetConnectionChannel.as$37:
NetConnectionMessageResponder::statusHandler()
at mx.messaging::MessageResponder/status()
Any ideas? I've been stuck on this for a few weeks now and its really
bugging me!!