﻿<?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?)  » Unique index and BrokenRules</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 17 Apr 2026 17:59:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Unique index and BrokenRules</title><link>http://forum.strataframe.net/FindPost22806.aspx</link><description>Hi, &lt;/P&gt;&lt;P&gt;I have Unique index on some fields in tables and now I would need to inform user that he has entered duplicated value. At the moment I'm solving this problem bz calling my methods such "...IsUnique" and manually adding information about duplicity to BrokenRules collection to be handled later.&lt;/P&gt;&lt;P&gt;The question is simple - is it possible to force BrokenRules to handle Unique indexes?&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Jiri Brazda</description><pubDate>Tue, 21 Apr 2009 10:56:05 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: Unique index and BrokenRules</title><link>http://forum.strataframe.net/FindPost22841.aspx</link><description>Great info! I'm looking forward to next versions :)&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Tue, 21 Apr 2009 10:56:05 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: Unique index and BrokenRules</title><link>http://forum.strataframe.net/FindPost22840.aspx</link><description>This is something that is actually on the list for a future update.&amp;nbsp; We added this to our BaseBO in our medical software and we will most likely incorporate this into the framework once it has been throughly tested.</description><pubDate>Tue, 21 Apr 2009 10:39:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Unique index and BrokenRules</title><link>http://forum.strataframe.net/FindPost22838.aspx</link><description>Yes I'm using similar approach. I just wanted to ask whether SF can handle Unique key rules somehow automatically - just like it does with required fields - to avoid wasting time when some solution already exists...&lt;/P&gt;&lt;P&gt;Thank You for reply :)</description><pubDate>Tue, 21 Apr 2009 10:30:09 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: Unique index and BrokenRules</title><link>http://forum.strataframe.net/FindPost22819.aspx</link><description>I've done a couple of things to handle unique index issues, the best being to handle it in the CheckRulesOnCurrentRow event handler of the BO.&lt;br&gt;
&lt;br&gt;
In the event handler, I call another method to check if the data would violate the unique index, usually a sproc.  If the data would violate the unique index, I then setup broken rules for the fields the user can change to fix the issue.&lt;br&gt;
&lt;br&gt;
Hope that helps! :D</description><pubDate>Mon, 20 Apr 2009 12:10:40 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>