﻿<?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?)  » Broken Rules</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 04:38:44 GMT</lastBuildDate><ttl>20</ttl><item><title>Broken Rules</title><link>http://forum.strataframe.net/FindPost17323.aspx</link><description>Is there a way to turn off checking broken rules (not at the form level).&amp;nbsp; I turned off CheckCurrentRowBeforeNavigate but it didn't seem to have any effect.&amp;nbsp; I can certainly create a property in the business object for this but wanted to know if something already existed.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Wed, 25 Jun 2008 12:11:47 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Broken Rules</title><link>http://forum.strataframe.net/FindPost17336.aspx</link><description>Perfect. Thank you very much!</description><pubDate>Wed, 25 Jun 2008 12:11:47 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Broken Rules</title><link>http://forum.strataframe.net/FindPost17332.aspx</link><description>Trent mentioned another good idea: add a custom property on the business object (or base busines object) to identify whether or not to ignore the rules, and override the OnCheckRulesOnCurrentRow event to test for that property:&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas"&gt;[codesnippet]'-- This is set by the custom property below&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas"&gt;Private _IgnoreRules As Boolean = False&lt;BR&gt;&amp;nbsp;&lt;BR&gt;''' &amp;lt;summary&amp;gt;&lt;BR&gt;''' Gets or sets _IgnoreRules&lt;BR&gt;''' &amp;lt;/summary&amp;gt;&lt;BR&gt;Public Property IgnoreRules() As Boolean&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return Me._IgnoreRules&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal value As Boolean)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me._IgnoreRules = value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set&lt;BR&gt;End Property&lt;BR&gt;&amp;nbsp;&lt;BR&gt;Protected Overrides Sub OnCheckRulesOnCurrentRow(ByVal e As MicroFour.StrataFrame.Business.CheckRulesEventArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Only check the rules if _IgnoreRules is False&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not _IgnoreRules Then MyBase.OnCheckRulesOnCurrentRow(e)&lt;BR&gt;End Sub[/codesnippet]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Consolas"&gt;&lt;SPAN style="COLOR: blue"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;P&gt;Probably the slickest way to go about what you are trying to do :D</description><pubDate>Wed, 25 Jun 2008 11:38:40 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: Broken Rules</title><link>http://forum.strataframe.net/FindPost17326.aspx</link><description>The easiest way I can think of is to set the IgnoreRuesAndForceSave to True on the business objec'ts BusinessRulesChecked event. So on the business object itself:&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;[codesnippet]Private Sub MyBO_BusinessRulesChecked(ByVal e As MicroFour.StrataFrame.Business.BusinessRulesCheckedEventArgs) Handles Me.BusinessRulesChecked&lt;BR&gt;&amp;nbsp;&amp;nbsp; e.IgnoreRulesAndForceSave = True&lt;BR&gt;End Sub[/codesnippet]&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope it helps :)</description><pubDate>Wed, 25 Jun 2008 11:06:42 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>