PDA

View Full Version : Api destroy without idProperty - grid problem



javaman
14 Aug 2009, 11:49 AM
I have a grid with a store.

I'm using a JsonReader on this store. The Reader doesn't have a idProperty.

The problem is when I remove a record from the grid and try to save the store, the removed record is not sent because I didn't set the idProperty.

If a set the idProperty, it's sent. The problem is I can't use idProperty, in an especify case.

How can I send a field value in this case without idProperty?

[]'s

javaman
17 Aug 2009, 4:26 AM
someone?

[]s

Condor
17 Aug 2009, 4:35 AM
The record will be send if you set record.phantom=false.

javaman
17 Aug 2009, 4:39 AM
Hum, but if I remove the record, I still can set the phantom? The record still stay there even when I delete it?

[]s

Condor
17 Aug 2009, 4:54 AM
It will be stored in the 'removed' property of the writer as long as you set phantom to false before you delete the record.

javaman
17 Aug 2009, 4:56 AM
Thanks, I think this will solve my problem.

I'll try later and post the result.

[]s