﻿<?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?)  » GetServerValuesOnConcurrencyException updated values are stored where?</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 12:42:26 GMT</lastBuildDate><ttl>20</ttl><item><title>GetServerValuesOnConcurrencyException updated values are stored where?</title><link>http://forum.strataframe.net/FindPost12895.aspx</link><description>Hi all,&lt;/P&gt;&lt;P&gt;I have a question about&amp;nbsp;GetServerValuesOnConcurrencyException.&amp;nbsp; Where is the data stored that is returned by this setting?&amp;nbsp; I can see the select statement being fired (when I mudge the data to setoff the Concurrency Exception) , but&amp;nbsp;I'm not seeing the 'new' values.&amp;nbsp; Are they supposed to overwrite the current values in the BO, or are they stored somewhere else for comparison?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Fri, 07 Dec 2007 08:49:07 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: GetServerValuesOnConcurrencyException updated values are stored where?</title><link>http://forum.strataframe.net/FindPost12930.aspx</link><description>The RaiseEvent doesn't exit the Save() when the exception is encountered.&amp;nbsp; It's designed for you to show some UI to the end-user while in the event handler.&amp;nbsp; After the event handler exits (and you're still in the middle of the Save()), the data layer will attempt to re-save the row with the selected changes (if the e.ResaveRow property is set to True).&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, that behavior is by design... the RaiseEvent option is designed to allow you to make a choice and re-save the record without having to call Save() again; it just does it inline.</description><pubDate>Fri, 07 Dec 2007 08:49:07 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: GetServerValuesOnConcurrencyException updated values are stored where?</title><link>http://forum.strataframe.net/FindPost12922.aspx</link><description>Ben,&lt;br&gt;
&lt;br&gt;
Thanks for the great info!&lt;br&gt;
&lt;br&gt;
I'm seeing what I think is strange behavior then when I set CollisionNotificationType to RaiseEvent.&lt;br&gt;
&lt;br&gt;
Stepping through the code (after I've altered data to cause a concurrency error) I get to bo.Save().  The Concurrency Event is raised but then the code exits and no error is thrown.  I'd expect it to continue.  &lt;br&gt;
&lt;br&gt;
If I set it to throw exception then an exception is thrown as expected.&lt;br&gt;
&lt;br&gt;
So should the code be exiting like I described on RaiseEvent?&lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Thu, 06 Dec 2007 11:18:42 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: GetServerValuesOnConcurrencyException updated values are stored where?</title><link>http://forum.strataframe.net/FindPost12921.aspx</link><description>That property is only used when the CollisionNotificationType is set to ThrowException.&amp;nbsp; If it's set to RaiseEvent, then the values are always retrieved.&amp;nbsp; &lt;/P&gt;&lt;P&gt;On RaiseEvent, the retrieved values are compared to the local values and the RowCollision/FieldCollision objects are constructed and provided through the ConcurrencyException event of the business object.&lt;/P&gt;&lt;P&gt;On ThrowException, the retrieved DataRow is placed in a save error object which is placed within the SaveErrors collection of the exception object that is thrown.&amp;nbsp; If you set the GetServerRow property to false, the row is not retrieved and the value in the save error is null.</description><pubDate>Thu, 06 Dec 2007 09:57:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>