Next and Previous Documents from Dialogbox

I have a view which uses a dialog box to edit fields when an entry is double clicked to edit.This is done by trapping the querydocumentopen event and using notesuiworkspace.dialogbox.

Once the box is on screen, I would like to be able to navigate to the next entry in the view without closing the dialog box.

I had an idea to use Noteuiview and the current document to get the next document.

How can I now get the dialogbox to display the new document?