﻿<?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 and BO.SaveByForm</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 01 May 2026 09:43:46 GMT</lastBuildDate><ttl>20</ttl><item><title>BO.Save and BO.SaveByForm</title><link>http://forum.strataframe.net/FindPost20402.aspx</link><description>Hi,&lt;br&gt;
May I know when should I use BO.Save() and when should I use BO.SaveByForm()? I found that BO.SaveByForm() will return more info such as exception which should be more prefered. However, in most sample, BO.Save() is used.&lt;br&gt;
&lt;br&gt;
Please advice.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Thu, 30 Oct 2008 21:39:04 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: BO.Save and BO.SaveByForm</title><link>http://forum.strataframe.net/FindPost20476.aspx</link><description>Honestly, in this case, I would probably just call the save on the BO.&amp;nbsp; The information is irrelevant if it is not pertinent to the BO at hand being saved.&amp;nbsp; Each individual BO will provide all of the same information as the SaveByForm.&amp;nbsp; The reason that the SaveByForm appears to have more detail is because it includes information for all BOs versus just the BO in question.&lt;/P&gt;&lt;P&gt;Calling an individual BO in this case would probably be the route that I would take.</description><pubDate>Thu, 30 Oct 2008 21:39:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BO.Save and BO.SaveByForm</title><link>http://forum.strataframe.net/FindPost20473.aspx</link><description>Hi,&lt;br&gt;
Thank you for reply.&lt;br&gt;
When I compare source code for both methods (Bo.Save() vs Bo.SaveByForm()) they are almost the same, except Bo.SaveByForm() return value contains more info.&lt;br&gt;
&lt;br&gt;
In my case, I am writing save function for my base Gridview and WebPage. I feel that SaveByForm() is more suitable as more info usually always better.&lt;br&gt;
&lt;br&gt;
By then, I am curious on in what situation I should use Bo.Save() instead of Bo.SaveByForm()?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Thu, 30 Oct 2008 19:54:53 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: BO.Save and BO.SaveByForm</title><link>http://forum.strataframe.net/FindPost20439.aspx</link><description>It really depends on what are trying to accomplish.&amp;nbsp; The BO.Save() is ultimately called by the SaveByForm or Save() method of a form.&amp;nbsp; The only difference is that when a SaveByForm (Save() of the form) is called, it will attempt to save all BOs and respect the IncludeInForm properties as well as gather up all of the exceptions and broken rules for all BOs versus just each individual BO.</description><pubDate>Thu, 30 Oct 2008 09:33:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>