I wish I could help with this - because that would mean I'd actually got it 
working this side. It works fine until I save the page template, and then I get 
'unspecified errors'.

What I'm trying to do sounds similar to your solution - I'll be interested to 
see if I end up with the same problem or not.




From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Dan Sheedy
Sent: Wednesday, 9 March 2011 10:38 AM
To: ozMOSS
Subject: attachments issue in DVWP, published page vs draft

Hi.

I've got a single item DVWP displaying items from a list (we get the ID of the 
item to display from a query string parameter), it also displays the attachment 
using this;

                    <xsl:element name="SharePoint:AttachmentsField">
                        <xsl:attribute name="runat">server</xsl:attribute>
                        <xsl:attribute 
name="ListId">{C0FB9150-7B78-4831-9098-8CE6CD7D31F3}</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="@ID"/></xsl:attribute>
                    </xsl:element>

We have the problem that when the page the DVWP is in draft, it displays the 
correct attachments for all items.

When the page is published it will display the correct attachments for the 
first item you view, then go on to show those same attachments for all other 
items. It will 'reset' itself when recycle the app pool.

Any help would be appreciated.

Thanks,

Dan.

_____________________________________________________________________________________________________________________________________________________________

Stockland Notice: If this communication has been sent to you by mistake, please 
delete and notify us.  If it has been sent to you by mistake, legal privilege 
is not waived or lost and you are not entitled to use it in any way. Stockland 
and its subsidiaries reserve the right to monitor e-mail communication through 
its networks.
_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to