
Announcements
I'm playing with the PDF viewer and how to best to make it work.
I have watched a few videos and it functions to a point now.
Currently my on add file function of the attachments uses the below
ClearCollect(colAttachments,attatchmentsbox.Attachments)
This then displays the collection in a gallery below
I can then select the items in the gallery and they appear in my PDF viewer.
However the issue is when moving to another item, it obviously clears that collection and starts again, so when somebody wants to look at the previous uploads on a different item, they collection isn't right.
Is there a way of dynamically naming the collection so I can make them match up, or is there a better way to attempt this?
The attachments are stored in the SP Attachments column if this helps
Thanks
Create 1 more collection will solve your issue.
ClearCollect(colAttachments,attatchmentsbox.Attachments);
Collect(PDFCollection,attatchmentsbox.Attachment);Now set PDFCollection on Items property on your Gallery.
Thanks