Navigate


Author
Message
Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
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?
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
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

Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
Posts: 235, Visits: 309
ah...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Daniel Essin - 19 Years Ago
Gary C Wynne - 19 Years Ago
Trent L. Taylor - 19 Years Ago
                 ah...
Daniel Essin - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search