managing ConcurrencyException


Author
Message
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Hi,

I try to manage ConcurrencyException with my own SoftCollision form (wich is nearly a SF SoftCollision form, only localized).

this form is shown from my maintenance form:

Private Sub V_TVA_ConcurrencyException(ByVal e As MicroFour.StrataFrame.Data.ConcurrencyExceptionEventArgs) Handles V_TVA.ConcurrencyException

Dim loFrmConflit As New MLControlesSF.MLSF_SoftCollisionDialog(e)
        If loFrmConflit.ShowDialog(Me.MdiParent) = Windows.Forms.DialogResult.OK Then
...

After closing that loFrmConflit, your SF SoftCollision form is raised! why? Crazy

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You just need to set the AutoHandleCollisions property on the form to False and then only yours will appear.
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Trent,

thanks, thanks a lot!

I've spent hours and hours reading all topics on forums about concurrency exception, reading helpfile, reading your source code... and I have not seen that little property Pinch

so thanks again!

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Glad you found that.  When you turn that option off, you'll want to handle the CurrencyException event on the business object or form and all of the information you'll need you'll find in the event args: option to resave the record, the primary key of the row, a list of the columns that don't line up, etc.
Michel Levy
Michel Levy
StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)StrataFrame User (437 reputation)
Group: StrataFrame Users
Posts: 193, Visits: 9K
Ben,

I had found all that I needed in the helpfile and on that forum (thanks to all contributors), about this event. And yes, all I want is in the event args, and I manage it with my users requirements.

That was Only AutoHandleCollisions property, ehhmmm.... sometimes, I feel old, old, when I am so stupid!

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K

That was Only AutoHandleCollisions property, ehhmmm.... sometimes, I feel old, old, when I am so stupid!

You definitely should not feel that way at all!  The framework has a lot of functionality and is very deep...so it is easy to miss a property here orr there!  We have all done it!!! Wink

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search