Collision Notification Question


Author
Message
Alex Brun
Alex Brun
StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)
Group: Forum Members
Posts: 2, Visits: 4
I have recently started using StrataFrame and had a question about concurrency and Collision. Luckily most of the question was already answered at

http://forum.strataframe.net/Topic6191-6-1.aspx?Highlight=CollisionNotification.

However that left me with one final question. In the project that i am working on the default StrataFrame forms are not being used. The post said that if CollisionNotificationType is set to RaiseEvent that

A pretty form is shown, informing the user that a data collision has occurred and asking them to choose the value.
Will said form still show up since the default forms aren't being used? And if it doesn't is there any way to get it to?
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
Will said form still show up since the default forms aren't being used? And if it doesn't is there any way to get it to?

No. You will want to handle the ConcurrencyException event on the BO itself.  This is where all of the concurrency exceptions that are bubbled up to the form come from anyway.  You can then display your own form and display the information to the end-user as you please...or just handle the exception and manually manage the collision.  If you look at the EventArgs of the Concurrency Exception, it gives you everything that you need including the local and server values, etc.  You then set which value you want to accept for each item within the collection and it will then process your request.

Alex Brun
Alex Brun
StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)StrataFrame Beginner (2 reputation)
Group: Forum Members
Posts: 2, Visits: 4
alright thanks for the help
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