How to attach Multiple documents and viewing it by Document viewer Widget?

Hi Experts, Here I have a page with 3 attachments to upload documents. Once after uploading the 3 documents, I need to view it in a document viewer widget on the other side by double clicking on it in a overview page. Can anyone help me with that how to view multiple documents in a document viewer widget by double clicking on  it in a overview page? Below are my screenshots. Thanks in Advance!
1 answers

I assume that the attachments are in a separate entity that is connected to the Loan entity via an association.

You could create an edit page with the loan as the outer dataview and nest 3 dataviews for the attachments inside this outer dataview and make sure the correct records are retrieved. Then in each of the inner datavioews add the document viewerd widget to display the documents uploaded.