Event BeforeEdit


Author
Message
Angela Sampaio
Angela Sampaio
StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)
Group: Forum Members
Posts: 16, Visits: 61
Thanks!

I think that this will help me. BigGrin
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
Edhy is right.  You will either want to use the EditingStateChanged event or the IsDirtyChanged event.  Those would be your two options.  It would be difficult to have a BeforeEdit event as this is really down at the column level and could add a lot of overhead if it were in fact checked each time a row column state changed.  So you will want to do this in one of the two aforementioned events. Smile
Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Angela Sampaio (04/30/2008)
I need to use an event "BeforeEdit" but i'm not meeting.

Is there any way to do that?

Thanks.

Hi Angela,

I don't see any Before Edit, but you may be able to do something like this:

Private Sub CustomersBO1_EditingStateChanged(ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) Handles CustomersBO1.EditingStateChanged

     If e.EditingState = MicroFour.StrataFrame.Business.BusinessEditingState.Editing Then

          '-- Check your conditions here and undo the editing if needed.

          Me.CustomersBO1.Undo(MicroFour.StrataFrame.Business.BusinessUndoType.CurrentRowOnly)

     End If

End Sub

I am not sure it will work for you, but it may give you an idea. Wink

Edhy Rijo

Angela Sampaio
Angela Sampaio
StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)StrataFrame Beginner (30 reputation)
Group: Forum Members
Posts: 16, Visits: 61
Hello



I noticed that the business objects have the events BeforeSave, BeforeAddNew, BeforeDelete and BeforeUndo.



I need to use an event "BeforeEdit" but i'm not meeting.



Is there any way to do that?



Thanks.
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