StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



NavigateExpand / Collapse
Author
Message
Posted 02/09/2006 6:35:34 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
It appears that a call to BO.Navigate(First) returns false if the first record is already the current record.

Is this interpretation correct?
Is that what you intended?
Post #528
Posted 02/10/2006 3:06:58 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 07/21/2008 8:17:34 AM
Posts: 26, Visits: 236
Hi Daniel

This "bit" me very early on and I reported it to the StrataBoys. This was and still is the behaviour and "is by design". In point of fact, the record hasn't actually moved so, "Navigated" is not a correct conclusion.

I'm not entirely sure I concur but, for now, you will just have to handle the situation.

HTH

-=Gary

Post #530
Posted 02/10/2006 10:06:47 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Gary is correct and this is by design.  Since the record position has not moved, no navigation has taken place.  This is done on the navigate because of the events that are associated with the method calls.  Since the navigate calls the Navigating and Navigated events, and controls bound to data are affected by the navigation, events are only raised and the method call only returns True when the position moves.

However, there is a solution.  You can use the Move methods is conjunction with the navigate methods.  The Move methods will always return a response if the move was valid even if the record position did not change.  For example, you could do the following:

If MyBO.MoveFirst()
    Do
         '-- PLACE CODE HERE
    While MyBo.Navigate(MicroFour.StrataFrame.Business.BusinessNavigationDirection.Next)
EndIf

Post #531
Posted 02/10/2006 11:23:37 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: Forum Members
Last Login: 05/25/2007 3:34:57 PM
Posts: 235, Visits: 309
ah...
Post #533
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 12:36pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 12 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.