NotesViewNavigator - prob if use .GetPos() and .GetNextDocument()

The following LS sequence worked in all versions up to, and including, R8.0.2

set nav = myView.CreateViewNav()

set entry = nav.GetPos( “2.3”, “.” )

set entryDoc = nav.GetNextDocument( entry )

In R8.5 the object entryDoc is still ‘nothing’ after executing the 3rd line. This breaks any LS code that uses this sequence.

A workaround is as follows (requires that next entry is not ‘nothing’!)

set nav = myView.CreateViewNav()

set entry = nav.GetPos( “2.3”, “.” )

set entry = nav.GetNext(entry) ’ Move to next entry

set entry = nav.GetPrev(entry) ’ Move back

set entryDoc = nav.GetNextDocument( entry ) ’ now works!

If any problems reproducing the problem let me know and I can send a test db which shows the issue.

Richard

Subject: Only a problem the first time

Interestingly, if I do the GetPos, then the GetNext, and instead of the GetPrev I do another GetPos to position the navigator on the Category entry again, the GetNextDocument finds the document correctly. I haven’t figured out what this means yet, but I think it’s significant.

Subject: Trying to reproduce

I’d appreciate your sending me the database as you suggested. If I can get it reproduced, I’ll file an SPR.

Subject: Re: Trying to reproduce

Peter, Thanks for the follow up. I’ve just sent an email to what I think is your email address. If you get the email pls reply and I will fwd the notes db.Thanks

Richard

Subject: Looks like it fails if the getPos locates a category rather than a document.

Looks like it fails if the getPos locates a category rather than a document. I’ll experiment a bit and then write up an SPR.

Subject: SPR created

I have created SPR # PRUN7NZRBR to track this problem.

Subject: Thanks

Peter, thanks for reproducing the problem and creating the SPR.

Subject: Any news?

Hi,

Do you have any news regarding this issue? The SPR number cannot be found in the current fixlist (or I am looking for it in the wrong place…).

It would be great to have an official status on this.

Thanks

Philippe

Subject: There were some changes made to NotesViewNavigator in 8.5, with a couple of bugs introduced.

Subject: Thanks for the confirmation Erik