﻿<?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 » WinForms (How do I?)  » How to Validate Rows against databse whrn not deleting immediately</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 13 Sep 2026 21:54:29 GMT</lastBuildDate><ttl>20</ttl><item><title>How to Validate Rows against databse whrn not deleting immediately</title><link>http://forum.strataframe.net/FindPost30287.aspx</link><description>I am editing in 'Block Mode (i.e. CheckCurrentRowBeforeNavigate is set to false)&amp;nbsp; and also I have deletes set not to update the backend immediately but to delete when the Save button is pressed.&lt;br/&gt;&lt;br/&gt;Say I have the following fields, and my Business Rules dont allow the Data to be duplicated:&lt;br/&gt;&lt;br/&gt;[quote]Row&amp;nbsp;&amp;nbsp; data&lt;br/&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;br/&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;br/&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C[/quote]&lt;br/&gt;&lt;br/&gt;[quote]I do the following:&lt;br/&gt;1. Delete Row 1&lt;br/&gt;2. Change Row 3 from C to A[/quote]&lt;br/&gt;&lt;br/&gt;Now when my business rules kick in I cannot save because it says Row 3 (Now has&amp;nbsp; an A) causes a duplicate (Because Row 1 even though it has been removed from the BO. is still in the Database&lt;br/&gt;&lt;br/&gt;Anybody got any ways round this.... I know i could get the user to Delete first, then save and then do the amendments, but was wondering if there is any paramater setting in the framework that will allow me to do the above in one 'Editing' session.</description><pubDate>Tue, 30 Aug 2011 16:01:45 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: How to Validate Rows against databse whrn not deleting immediately</title><link>http://forum.strataframe.net/FindPost30289.aspx</link><description>[quote][b]Gerard O Carroll (8/30/2011)[/b][hr]&lt;br/&gt;Now when my business rules kick in I cannot save because it says Row 3 (Now has&amp;nbsp; an A) causes a duplicate (Because Row 1 even though it has been removed from the BO. is still in the Database[/quote]&lt;br/&gt;This could be tricky, but that is not the case.&amp;nbsp; The deleted record is still in the BO.DataTable and when saved, it will send the instructions to the database to physically delete it.&amp;nbsp; Check the "Saving Data" topic of the SF help file to see the saving sequence done by SF.&lt;br/&gt;&lt;br/&gt;On the other hand, you could try setting the bo.ErrorSavingMode = ContinueOnError to avoid the error message, and continue with the Save process, but I am not sure if that will give you the effect you want nor if that would cause invalid records to be saved at some point.&lt;br/&gt;&lt;br/&gt;I learned by experience that users don't know the difference between soft delete (as in VFP) and hard delete, so in some bulk cases I soft delete the rows and then save them in a single call, but when need to interact like in your case I will simply hard delete the record.</description><pubDate>Tue, 30 Aug 2011 16:01:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>