Customize DataFormWebPart Question
-
Friday, August 17, 2012 6:31 PM
Hello,
On a DispForm.aspx form I replaced the default ListFormWebPart with a DataFormWebPart using SharePoint Designer 2010. The ListFormWebPart has an Attachments column that displays all of the attachments (with links) in this particular folder. My question is – how do I copy that functionality into my DataFormWebPart? What control would I use? When I choose the Attachments column using “Add/Remove Columns” in the ribbon – it gives me a boolean field…
Chuck
All Replies
-
Friday, August 17, 2012 7:56 PMAlternatively if I could hide the Close button on the ListFormWebPart that would work just fine but I cannot find any settings that will hide the button...
-
Saturday, August 18, 2012 9:12 AM
Hi
Create a new DispFOrm.aspx ( forom SHP Designer , connect to your site, ope the list, goto right side and there you will see all forms associated to the list. CLick on button " Add" ) for your list, make it as default
Open that new form, and there you will can customize it
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
- Marked As Answer by Entan MingMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 10:08 AM
-
Monday, August 20, 2012 6:22 AM
Instead the regular code to display the list field: <xsl:value-of select=”@Attachments”/> Use this code: <xsl:element name="SharePoint:AttachmentsField"> <xsl:attribute name="runat">server</xsl:attribute> <xsl:attribute name="FieldName">Attachments</xsl:attribute> <xsl:attribute name="Visible">true</xsl:attribute> <xsl:attribute name="ControlMode">Display</xsl:attribute> <xsl:attribute name="ItemId"> <xsl:value-of select="@ID"/> </xsl:attribute> </xsl:element>Refer this link:
http://spointblog.sharepoint.com/Pages/Post.aspx?ItemID=8
Thanks, Neha Navale
- Marked As Answer by Entan MingMicrosoft Contingent Staff, Moderator Friday, August 24, 2012 10:08 AM

