﻿<?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?)  » BO.Save, Transaction and EditingState</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 18:37:45 GMT</lastBuildDate><ttl>20</ttl><item><title>BO.Save, Transaction and EditingState</title><link>http://forum.strataframe.net/FindPost21426.aspx</link><description>Hi,&lt;br&gt;
I am developing web application. In one of my web page, I bind my PrimaryBO to it. When user click a button, I call the PrimaryBO.Save() and then some other BOs.Save() as well. They are within Transaction, try...catch block.&lt;br&gt;
&lt;br&gt;
If that is any exception caused by some other BOs.Save() which called after PrinmaryBO.Save(), I call BusinessLayer.TransactionRollback().&lt;br&gt;
&lt;br&gt;
I have problem that, even though is rollbacked, PrimaryBO.EditingState() will still Idle. It caused user unable to "re-edit" it on UI. How to solve this?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Mon, 12 Jan 2009 09:37:13 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: BO.Save, Transaction and EditingState</title><link>http://forum.strataframe.net/FindPost21471.aspx</link><description>The only way that this would happen when calling the Save of a BO directly is if there is a relationship setup between multiple BOs.&amp;nbsp; For example, if you have a foreign key setup and the ParentBusinessObject is set on the child BO, when the child saves, it will check to see if parent needs to save first to gain a real primary key.&amp;nbsp; In this instance, another BO other than the one you called would get saved as well.&amp;nbsp; But past that, that should be the only way.&amp;nbsp;</description><pubDate>Mon, 12 Jan 2009 09:37:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO.Save, Transaction and EditingState</title><link>http://forum.strataframe.net/FindPost21452.aspx</link><description>Hi,&lt;br&gt;
Any advice? It is urgent!&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Fri, 09 Jan 2009 00:06:01 GMT</pubDate><dc:creator>Chan</dc:creator></item></channel></rss>