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?
Discussion posts and replies are publicly visible
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.
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.