﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Business Objects and Data Access (How do I?)  / Event BeforeEdit / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Thu, 24 Jul 2008 20:08:57 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Event BeforeEdit</title><link>http://forum.strataframe.net/Topic16040-6-1.aspx</link><description>Thanks!&lt;br&gt;I think that this will help me. :D</description><pubDate>Fri, 02 May 2008 06:20:12 GMT</pubDate><dc:creator>Angela Sampaio</dc:creator></item><item><title>RE: Event BeforeEdit</title><link>http://forum.strataframe.net/Topic16040-6-1.aspx</link><description>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. :)</description><pubDate>Wed, 30 Apr 2008 17:26:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Event BeforeEdit</title><link>http://forum.strataframe.net/Topic16040-6-1.aspx</link><description>[quote][b]Angela Sampaio (04/30/2008)[/b][hr]I need to use an event "BeforeEdit" but i'm not meeting.&lt;BR&gt;&lt;BR&gt;Is there any way to do that?&lt;BR&gt;&lt;BR&gt;Thanks.[/quote] &lt;P&gt;Hi Angela,&lt;/P&gt;&lt;P&gt;I don't see any Before Edit, but you may be able to do something like this:&lt;/P&gt;&lt;P&gt;[quote][codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT size=2&gt; CustomersBO1_EditingStateChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;FONT size=2&gt; CustomersBO1.EditingStateChanged&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;     If&lt;/FONT&gt;&lt;FONT size=2&gt; e.EditingState = MicroFour.StrataFrame.Business.BusinessEditingState.Editing &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;          &lt;/FONT&gt;'-- Check your conditions here and undo the editing if needed.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;          Me&lt;/FONT&gt;&lt;FONT size=2&gt;.CustomersBO1.Undo(MicroFour.StrataFrame.Business.BusinessUndoType.CurrentRowOnly)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;     &lt;FONT size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet][/quote]&lt;/P&gt;&lt;P&gt;I am not sure it will work for you, but it may give you an idea. ;)</description><pubDate>Wed, 30 Apr 2008 15:35:49 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>Event BeforeEdit</title><link>http://forum.strataframe.net/Topic16040-6-1.aspx</link><description>Hello&lt;br&gt;&lt;br&gt;I noticed that the business objects have the events BeforeSave, BeforeAddNew, BeforeDelete and BeforeUndo.&lt;br&gt;&lt;br&gt;I need to use an event "BeforeEdit" but i'm not meeting.&lt;br&gt;&lt;br&gt;Is there any way to do that?&lt;br&gt;&lt;br&gt;Thanks.</description><pubDate>Wed, 30 Apr 2008 15:05:13 GMT</pubDate><dc:creator>Angela Sampaio</dc:creator></item></channel></rss>