Any way to swap the chosen doc in a view without reloading the XPage

I’ve been trolling through solutions displaying a collection of documents within an XPage, and then when the user selects one, load them into editable fields on the same XPage.

I’ve found a lot of examples where you load a new page with the document. Unfortunately, in my case it’s not really possible, because the XPage is already multidocument, and there’s yet another document with potential changes on it – that I’m not allowed to save.

I was hoping to find some nice way to do a partial refresh, but then I started trying to identify the document the user selected. My head’s spinning.

Any advice?