﻿<?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?)  » Change BO mode</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 30 May 2026 06:39:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Change BO mode</title><link>http://forum.strataframe.net/FindPost30374.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;I would like to have the ability to create a new row in a BO, save the data, continue working on the BO, then save it again.&amp;nbsp; Thus the initial save would perform an Insert, and the subsequent saves would perform an Update.&amp;nbsp; I'd rather not reset the BO and re-retrieve it, etc.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;Is there a flag on the BO to set whether the BO saves via Insert or Update?&amp;nbsp; If so, please fill in the details.&lt;br/&gt;&lt;br/&gt;Addendum:&amp;nbsp; I should also note that my reason for this is on the second save, I'm getting a duplicate row created, or a second call to the Insert.&lt;br/&gt;&lt;br/&gt;Thank you.&lt;br/&gt;&lt;br/&gt;Doug Zapp</description><pubDate>Tue, 20 Sep 2011 17:00:13 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Change BO mode</title><link>http://forum.strataframe.net/FindPost30377.aspx</link><description>Sorry, but I cannot clearly see the problem.&amp;nbsp; If you could post a simply VB sample using the StrataFrameSample application I would see it and help you.&lt;br/&gt;&lt;br/&gt;Now, you said you are using a Combobox to add records? if that is the case, you want to do a save on each new record? or simply want the end user to enter as many records as they want and do a single save for each?&lt;br/&gt;&lt;br/&gt;Like I say, it is not clear to me what you really trying to accomplish, a sample will be the best way to help you out.</description><pubDate>Tue, 20 Sep 2011 17:00:13 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Change BO mode</title><link>http://forum.strataframe.net/FindPost30376.aspx</link><description>I guess that is it then.&amp;nbsp; The BO is bound to a combobox, which I allow to change.&amp;nbsp; Thus prompting the change in index.&lt;br/&gt;&lt;br/&gt;Suggestions?</description><pubDate>Tue, 20 Sep 2011 16:20:58 GMT</pubDate><dc:creator>Doug Zapp</dc:creator></item><item><title>RE: Change BO mode</title><link>http://forum.strataframe.net/FindPost30375.aspx</link><description>Hi Doug,&lt;br/&gt;&lt;br/&gt;Please post the code you are using because the BO already works the way you are describing, you insert a record with bo.NewRow() or bo.Add, then you can bo.Save the record, modify the current record in the BO, then bo.Save as many times as you want, as long as you don't move the bo.CurrentRowIndex, you will be in the same record you added.</description><pubDate>Tue, 20 Sep 2011 16:15:35 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>