Event BeforeEdit
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Event BeforeEditExpand / Collapse
Author
Message
Posted 04/30/2008 3:05:13 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/12/2008 2:35:16 PM
Posts: 12, Visits: 48
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.
Post #16040
Posted 04/30/2008 3:35:49 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:46:15 PM
Posts: 288, Visits: 1,135
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.

Edhy Rijo
Progytech (Computer Consultants)
Post #16041
Posted 04/30/2008 5:26:38 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:24:00 PM
Posts: 3,733, Visits: 3,926
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.
Post #16052
Posted 05/02/2008 6:20:12 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/12/2008 2:35:16 PM
Posts: 12, Visits: 48
Thanks!
I think that this will help me.
Post #16083
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 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 2:18am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 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.