This content has been marked as final. Show 5 replies
A little more on this: I've found that I can create an object, and it immediately appears in the list component so the fill method is picking it up. However, I cannot delete it without getting the "not managed by this service" error. If I click around and trigger the fill again, it still gives the error. However, if I close the client browser, start a new one, and login again, I can then go and delete that item with no problems.
Anyone have any ideas?
Hi , I got this problem too , I can do fill , update and create , but when I want to delete(object) , I got the same error with you ,
Do you find any soulution?
This is the exception .
[RPC Fault faultString="Item with id 'D2E1A158-3977-047E-4A8B-25A2AC54C5C9' not managed by this service. Error on destination 'OrderHandler'." faultCode="Local.Call.Failed" faultDetail="null"]
at mx.data::ConcreteDataService/ http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
at Function/ http://adobe.com/AS3/2006/builtin::apply()
I had this error too, but solved it. I'm not in work right now, where my code is, but I try to remember how it was solved.
For the delete method you must pass only the id of the row you wish to delete. But not your unique ID, for ex. teacherId, but the one with LCDS identifies the rows. You should try this:
But nor sure. Tomorrow morning I look after at work, and post the solution if the above doesn't work.
I was wrong. So the working code is:
<mx:Button label="Delete item" click="ds.deleteItem(products.getItemAt(dtProducts.selectedIndex))"/>
it deletes the selected item from the DataGrid
dtProducts - is the dataGrid
ds - is the DataService
products - is the arraycollection
works fine for me...
hope this helps
Hi , It's work