﻿<?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-Movenext and Edit</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 05 May 2026 20:43:45 GMT</lastBuildDate><ttl>20</ttl><item><title>BO-Movenext and Edit</title><link>http://forum.strataframe.net/FindPost32193.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;I am looping through a file:&lt;br/&gt;&lt;br/&gt;[code]&lt;br/&gt;&lt;br/&gt;BestBo1.moveNext()&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; If BestBo1.Formatiert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;' Logical Field&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.doldsabfrage(oLDS)&amp;nbsp;&amp;nbsp; ' Do an online-query&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Endif&lt;br/&gt;&lt;br/&gt;Loop while BestBO1.movenext&lt;br/&gt;&lt;br/&gt;[/code]&lt;br/&gt;&lt;br/&gt;in the follwong sub "doldsabfrage" something strange happens. If the online-rrequest ist succesful,&lt;br/&gt;&lt;br/&gt;I do this:&lt;br/&gt;&lt;br/&gt;[code]&lt;br/&gt;&lt;br/&gt;lRet = olds.dorequest()&lt;br/&gt;&lt;br/&gt;if lRet&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; BestBO!.Edit()&lt;br/&gt;&lt;br/&gt;... Assign some fileds&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp; BestBO!.Save()&lt;br/&gt;&lt;br/&gt;Endif&lt;br/&gt;&lt;br/&gt;[/code]&lt;br/&gt;&lt;br/&gt;Strange is (at least for me, that I do not loop through the file but always return to the first record.&lt;br/&gt;&lt;br/&gt;I looked at it in the debigger and I can see that after the first loop, the next record is selected, but after &lt;br/&gt;&lt;br/&gt;issuimg the edit command, the BO is positioned back to the first record.&lt;br/&gt;&lt;br/&gt;What am I missing here?&lt;br/&gt;&lt;br/&gt;Thanks in Advance&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Fri, 13 Sep 2013 08:31:18 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: BO-Movenext and Edit</title><link>http://forum.strataframe.net/FindPost32205.aspx</link><description>Hi Thomas,&lt;br/&gt;&lt;ul&gt;&lt;li&gt;You don't need to call the BestBO1.Edit() in your doldsabfrage() method, because once you assign a value to the record, it will place the BO in Edit mode.&lt;br/&gt;&lt;/li&gt;&lt;li&gt;After the loop, check if the BestBO1.IsDirty and then save it.&lt;br/&gt;&lt;/li&gt;&lt;li&gt;Also sometimes instead of looping with a Loop While, if possible try using the BestBO1.GetEnumerable()&lt;/li&gt;&lt;/ul&gt;</description><pubDate>Fri, 13 Sep 2013 08:31:18 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: BO-Movenext and Edit</title><link>http://forum.strataframe.net/FindPost32204.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;I changed AutoNavigateToFirstBrokenRow to False but the behaviour has not changed.&lt;br/&gt;&lt;br/&gt;I helped myself by calling the edit method before the loop ans saving after the loop, which works&lt;br/&gt;&lt;br/&gt;but I would still like to know what is going wrong there.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Fri, 13 Sep 2013 02:36:49 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: BO-Movenext and Edit</title><link>http://forum.strataframe.net/FindPost32202.aspx</link><description>So, after the call to Edit(), the CurrentRowIndex is back to 0?&lt;br/&gt;&lt;br/&gt;&lt;div&gt;My guess would be that AutoNavigateToFirstBrokenRow is turned on, the first row has a broken rule, and it's moving to it instead of staying on the current record when Edit() is called. &amp;nbsp;Try setting AutoNavigateToFirstBrokenRow to false and see if that fixes it.</description><pubDate>Wed, 11 Sep 2013 09:05:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>