StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



managing ConcurrencyExceptionExpand / Collapse
Author
Message
Posted 07/25/2008 5:41:16 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 7:10:24 AM
Posts: 65, Visits: 1,085
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?

Post #18070
Posted 07/25/2008 7:46:26 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
You just need to set the AutoHandleCollisions property on the form to False and then only yours will appear.
Post #18071
Posted 07/25/2008 8:36:35 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 7:10:24 AM
Posts: 65, Visits: 1,085
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

so thanks again!

Post #18080
Posted 07/25/2008 9:06:35 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 12/02/2008 4:42:46 PM
Posts: 2,686, Visits: 1,890
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.


www.bungie.net
Post #18084
Posted 07/25/2008 10:09:19 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: Yesterday @ 7:10:24 AM
Posts: 65, Visits: 1,085
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!

Post #18086
Posted 07/26/2008 8:38:09 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781

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!!!

Post #18104
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:46am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.