Waiting for user's response
iOS - avoid saving certain properties
We're building a system that uses an event handler to add a custom property to an object.
We want to be able to read these properties in iOS without saving back to the server when a save function is called.
According to this previous post - http://support.backendless.com/topic/saving-only-some-properties-of-an-object - the data model must only contain properties that will be saved to the database.
Hi Cameron,
When you add a "dynamic" property in your event handler, it does not need to be a part of the data model. I assume you have an "after" event handler for an API event which returns a data object (or a collection of those).
The property you add would be accessible with the same mechanism as properties which come from the data model. That is, you'd declare a property in the client-side class and should be initialized when the object is returned from the server.
Regards,
Mark
Leave a Comment
Comments have been locked on this page!