Tag Info

New answers tagged

1

Even you can use SpServices, its gives a easy way to get the attachments from lists on the basis of item ID.


1

Use SP.ListItem.attachmentFiles to retrieve the collection of attachments that are associated with the list item. How to retrieve list items with attachments using JSOM function getListItems(listTitle,success,error) { var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var list = web.get_lists().getByTitle(listTitle); var items ...


0

You probably want to create an event receiver that will do this. You can use the ItemAdded and the ItemUpdated events. Once an item is created or updated, it will go out and find the attachments and insert them into another field called "AttachmentUrls" or something of that nature. This is somewhat pseudocode, so the syntax needs to be checked. public ...


1

How to retrieve attachment files using SPServices function getAttachmentFiles(listName,listItemId,complete) { $().SPServices({ operation: "GetAttachmentCollection", async: false, listName: listName, ID: listItemId, completefunc: function(xData, Status) { var attachmentFileUrls = []; ...


0

Even if you do not have access to Designer (or Visual Studio obviously) it is still possible. Take a look at the solution "List all attachments when clicking the paperclip in a list view – updated version", which displays the attachments when hovering over or clicking a paperclip next to the title. It is not exactly what you ask for, but it may be good ...


0

Attachments cannot have a hierarchy. Assuming you have list data that you want to track, the best approach is to define those data elements as Site Columns, arrange the columns into a Site Content Type (which inherits from Document) and add the content type to a document library.



Top 50 recent answers are included