Skip to main content
October 5, 2023
Question

PDF Document Preview in Grid Rows

  • October 5, 2023
  • 8 replies
  • 0 views

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

8 replies

stefanhelzle0001
Brainy
October 5, 2023

I am not sure whether showing a large PDF inside a tiny grid cell will become a UX your users will enjoy.

neilp0005Author
October 5, 2023

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 ?

mikes0011
Brainy
October 5, 2023
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.

tejak2639
October 9, 2023

Hi Neil,

For grid instead of showing like a thumbnail, create a related action for viewing the document which takes document ID as input and now in grid row Keep a rich text Icon like eye symbol which is having a dynamic link and when clicked on the eye icon pass the document ID and the related action will be performed, So you can view like a document.

Hope this gives you another idea if your problem was not solved.