﻿<?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 - V1 » Business Objects and Data Access (How do I?)  » Event BeforeEdit</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 00:36:58 GMT</lastBuildDate><ttl>20</ttl><item><title>Event BeforeEdit</title><link>http://forum.strataframe.net/FindPost16040.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>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/FindPost16083.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/FindPost16052.aspx</link><description>Edhy is right.&amp;nbsp; You will either want to use the EditingStateChanged event or the IsDirtyChanged event.&amp;nbsp; Those would be your two options.&amp;nbsp; 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.&amp;nbsp; 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/FindPost16041.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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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></channel></rss>