How to show attachment in each row of a data grid

0
How to show attachment in each row of a data grid. Also when user clicks on the attachment, it should open in a viewer.
asked
1 answers
0

THis depends a bit on your domain model, but if you have a grid entity associated to an attachment entity as 1;1 you can use the datagrid 2 widget and add a column with custom content. In the column add a container and inside the container add a data view with as datasource the attachemnt entity that you get over the association with the grid entity. Then on the container add an on click action to show the attachemnt in a separate page with a dataview for the attachment entity and a document viewer widget.

Hope this helps in designing your solution.

answered