﻿<?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?)  » BrokenRule On Delete</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 17:45:34 GMT</lastBuildDate><ttl>20</ttl><item><title>BrokenRule On Delete</title><link>http://forum.strataframe.net/FindPost3292.aspx</link><description>&lt;br&gt;
&lt;br&gt;
I noticed the checkrulesoncurrentrow does not get called on a Delete.  I need to be able to show a broken rule or a popup error when the user tries to delete if certain conditions are met.  What is the recomended method to accomplish this?</description><pubDate>Wed, 04 Oct 2006 13:16:39 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: BrokenRule On Delete</title><link>http://forum.strataframe.net/FindPost3301.aspx</link><description>&lt;br&gt;
Thanks I got it.</description><pubDate>Wed, 04 Oct 2006 13:16:39 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: BrokenRule On Delete</title><link>http://forum.strataframe.net/FindPost3300.aspx</link><description>I really don't know what you mean by delete mode.&amp;nbsp; Business objects do not have an editing state of Delete.&amp;nbsp; Now if you delete a record within the BO and the changes have not been committed back to the server, you can just look at the current rows state:&lt;/P&gt;&lt;P&gt;MyBO.CurrentRow.RowState = Deleted&lt;/P&gt;&lt;P&gt;But for this to show up, you will have to allow the deleted rows to be visible (property on the BO).</description><pubDate>Wed, 04 Oct 2006 12:55:10 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrokenRule On Delete</title><link>http://forum.strataframe.net/FindPost3299.aspx</link><description>&lt;br&gt;
&lt;br&gt;
Thanks Trent.  1 more question regarding this.  How can I determine if I am in delete mode inside my CheckRulesOnCurrentRow event?  I want to check certain rules depending on wheter I am in edit, add, or delete mode.</description><pubDate>Wed, 04 Oct 2006 12:49:53 GMT</pubDate><dc:creator>Brad Vick</dc:creator></item><item><title>RE: BrokenRule On Delete</title><link>http://forum.strataframe.net/FindPost3295.aspx</link><description>Generally there is no need to check rules before a record is deleted, but you can force the rules to be checked yourself.&amp;nbsp; Just call this method:&lt;/P&gt;&lt;P&gt;If MyBo.CheckRulesOnCurrentRow(True) = Success Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '--- Delete your record...or not :)&lt;BR&gt;End If</description><pubDate>Wed, 04 Oct 2006 12:31:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>