Hi,
I am trying to get the PDF preview to work in a grid. I tried using the a!documentViewerField() but apparently, its not supported or is unable to be recognized in the grid rows. Any ideas how I can get this worked around ? At present using the below field to display the any image extension files.
a!imageField( size: "SMALL", isThumbnail: true, images: { a!documentImage(document: fv!item.imageId) } )
Thanks
Neil
Discussion posts and replies are publicly visible
I am not sure whether showing a large PDF inside a tiny grid cell will become a UX your users will enjoy.
Well, at first we were doing only image files. Then recently this requirement changed to also allow Pdf. Now the images have a thumbnail small view on the grid. Ideal expectation is to include a pdf view. But is there a way to do it in the grids ?
Neil said:But is there a way to do it in the grids ?
Let the user click on a link in the grid that opens that PDF in a viewer field that opens below the grid. It's impossible (and would not look good whatsoever) to try and open the PDF inside the grid cell.
Hi Mike, Yeah opening below the grid, I feel would not be acceptable by the users. As another component of the grid rows is, that they are dynamic. So a user can add and delete the number of uploads. Anyways, this does give me an idea to open the link in a new window using a record action pop-up and displaying the pdf. I guess that might be the only way around. Anyways, Thanks Mike
Using a dialog style record action is a great way to do that. Did that myself a few times already.
Hey Stefan, can you please help on how to build the process model for same?
Create a process model with documentId as a parameterized process variable. Add a UIT between the start and end nodes that consists of a document viewer. Now you can plug this process model in the record that is built on the table which stores all the document ID mappings