Hi All,
Can Anyone guide me on how to show preview or actual document inside a grid? I have a grid of documents , documentID number, name, but with the document ID is not enough to show the actual preview of document, does anyone know or can advise me how to achieve this?
thanks in advance
Discussion posts and replies are publicly visible
Hi Maria ,
Document viewer component cannot be used inside a grid. My suggestion would be to show the documents for each row in a record action dialog or showing each row's documents beside/below the grid (based on the existing design) on selection.
it looks like my document viewer component does not work on my server..
So if I were to use it, I would create an interface use the document viewer component and then use that interface as the record action right? I'm just trying to follow how would the steps would be.
Yes. That interface goes inside a process and then the process gets plugged as a related action on the record.
Whatever process your grid is already being utilized in, just do that.
My normal pattern for instance is to create a Rich Text Icon on the relevant row, wherein the click copies the Document ID into a local variable - and a document viewer component configured to only appear when the local variable is populated with a Doc ID, and when it is, it shows that document. It's user-friendly and intuitive. Note that the list of file types you can show in the Document Viewer is limited, unfortunately.
You can use a related action and the start form contains document viewer and keep the related action in one of the column of grid. When view document is clicked, in start form you can see the doc and since its related action, you can use dialog box option.