﻿<?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 » Issues  » Navigating event not impacting result value of Navigate() call</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 12 Jun 2026 14:48:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Navigating event not impacting result value of Navigate() call</title><link>http://forum.strataframe.net/FindPost16534.aspx</link><description>Hello,&lt;P&gt;I am trying to use the Navigating event on my business object to perform row validation through the CheckRules method. I have set CheckRulesBeforeNavigate to false because I have conditions under which I do not wish to perform the check. Hence the use of the Navigating event to control whether or not I check rules.&lt;/P&gt;&lt;P&gt;Even though I assign e.Cancel to 'true' in the Navigating event, the Navigate() method call on the BO will still return true. I would have expected a false in such a situation, to indicate me I have broken rules. I have stepped through my code and confirm that my Navigating handler gets called and that I indeed assign e.Cancel to true.&lt;/P&gt;&lt;P&gt;Since I had downloaded the SF source code:D, I have taken a quick look at the Navigate() method call and think I may have put a finger on the problem: the local variable "llIndexMoved" gets initialized to True. But it's not getting reassigned to false anywhere, and the code in the branch &lt;/P&gt;&lt;P&gt;[codesnippet]If Not loNavigating.Cancel Then&lt;/P&gt;&lt;P&gt;...[/codesnippet]&lt;/P&gt;&lt;P&gt;does not get called either, since I have assigned True to the Cancel property in my event handler. So at the end of your method you're entering the &lt;/P&gt;&lt;P&gt;[codesnippet]If llIndexMoved Then&lt;/P&gt;&lt;P&gt;...[/codesnippet]&lt;/P&gt;&lt;P&gt;conditional even though no real index move has occured:hehe:...&lt;/P&gt;&lt;P&gt;Any way of working around this ? Can I expect a fix ?&lt;/P&gt;&lt;P&gt;Thanks for your help.:)&lt;P&gt;Marc-Andre</description><pubDate>Thu, 22 May 2008 10:15:50 GMT</pubDate><dc:creator>maturmel</dc:creator></item><item><title>RE: Navigating event not impacting result value of Navigate() call</title><link>http://forum.strataframe.net/FindPost16537.aspx</link><description>I have already given you all of the information that I can give you at the moment.&amp;nbsp; We are using 1.6.6 in our production as we speak (for our medical application), so there is no reason that you cannot run on the beta posts...they are supported.&lt;/P&gt;&lt;P&gt;Past that, I cannot give you an exact date.</description><pubDate>Thu, 22 May 2008 10:15:50 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Navigating event not impacting result value of Navigate() call</title><link>http://forum.strataframe.net/FindPost16536.aspx</link><description>Great! Thanks a lot. I will be waiting for the 1.6.6 release before pushing my code to production.&lt;/P&gt;&lt;P&gt;Do you have an agenda so I can plan when it's going to happen? Like, do you think it's going to be in June, July or later ?</description><pubDate>Thu, 22 May 2008 10:12:44 GMT</pubDate><dc:creator>maturmel</dc:creator></item><item><title>RE: Navigating event not impacting result value of Navigate() call</title><link>http://forum.strataframe.net/FindPost16535.aspx</link><description>This has already been fixed.&amp;nbsp; It will be in the next update...and before you ask when the next update is :) we will be posting another 1.6.6 beta in the next week or so.&amp;nbsp; So you can get it then.&amp;nbsp; We are in the middle of making a number of changes so just plopping out a fix on the forum isn't an option.&amp;nbsp; But in any case, we had already found this and it has already been addressed.</description><pubDate>Thu, 22 May 2008 10:10:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>