Skip to main content
December 12, 2023
Question

How to display multiple uploaded files

  • December 12, 2023
  • 2 replies
  • 0 views

Hi, I have a cdt that stores a list of document ids that were uploaded, how can I display all the files using document view? Do I need to use a!foreach() or is there another way?

    2 replies

    abhayd3663
    December 12, 2023

    a!documentViewerField() supports only one document, depending on how you need to display you have to use foreach in grid.

    https://docs.appian.com/suite/help/23.4/recipe-display-multiple-files-in-a-grid-for-editing.html

    Replace linkfield with the documentViewerField in above example.

    davidg426798
    December 12, 2023

    Personally, I'd use a foreach to display each of the file names (or some other identifier), and allow the user to select one at a time to display in the document viewer. Because the document viewer takes up so much screen real estate, it's not very practical to have multiple instances.