I have the following case.
The user edits an editable object, with a property who is checked serverside via an asynchronous rule in Silverlight (eg a reservation of a hotel room). Obviously, when the object is persisted, this property has to be checked again in the serverside transaction, because it can be updated by another user while the original user was completing its reservation. This is something to check again for in the dataportal update, this works like it should be, I can throw an exception that a businessrule is broken. But how do i associate the serverside exception with a specific property and how do i notify the UI that this specific peroperty is serverside invalid? From what i have seen now, this seems to be impossible, but is there a way to it, or has somebody else tacklled this situation?
When you throw an exception serverside you will also get access to the BO in DataPortalException (with the broken rule).
Then it is up to you if you want to use the BO as it was on the server when the exception was thrown or do some "magic" update of the existing object.
Copyright (c) Marimer LLC