Group: StrataFrame Users
Posts: 430,
Visits: 507
|
Hi Ivan. I am back to the concurrency issue now. I have resolved being able to SubClass a Form (Uing C#) , thanks to another thread.
To Recap. If there is a DataColission, I want to add the fact to the BrokenRules collection and display a Message indicating this, and not allow the save. I have atached a Sample App. I have done the following in the App:
In my Base Form, Set AutoHandleCollisions to False
In the BO, left the CollisionNotificationType to RaiseEvent (The Default)
In My Base BO, put code into the BO_ConcurrencyException event as follows:
1. AddBrokenRule message
2. e.ReSaveRecord = true (Set the flag so it will attempt to Resave the data)
3. this.Save (Attemp to Save the record, which then should trigger the broken rules)
What is happening is that , for the Concurrency problem record, The Broken Rule is NOT being displayed . It does not save the record (which is fine) but I want it to display the BrokenRules to indicate to the user that there has been a problem.
|