Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

List attachments display issue

$
0
0

I am using following code to display the list item attachments in the "All Items" view for a list.

<td id="ItemAttchment{$ID}{generate-id()}" class="ms-vb" style="width: 92px"><xsl:element name="SharePoint:AttachmentsField"><xsl:attribute name="runat">server</xsl:attribute><xsl:attribute name="FieldName">Attachments</xsl:attribute><xsl:attribute name="ControlMode">Display</xsl:attribute><xsl:attribute name="Visible">true</xsl:attribute><xsl:attribute name="ItemId"><xsl:value-of select="$thisNode/@ID"/></xsl:attribute></xsl:element></td>

The issue I am facing is

(a) SharePoint attachment display does not update the attachment name on the list, If the attachment is changed for that list item later. 

(b) If I sort the list, the attachments does not get sorted and show up for wrong list items.

Any ideas on how to solve this issue and what would be causing it?

Thanks

Nate



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>