whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest Search | Active Topics | Log In | Register

Creating New Display Form in SPD2010 Options · View
ibscrib
#1 Posted : Saturday, June 02, 2012 7:03:48 PM
Rank: Newbie

Groups: Registered

Joined: 6/2/2012
Posts: 2
Location: Nigeria
I am a sharepoint administrator. I am trying out the image upload solution with aim to buy a license as soon as am done with the poc.

Having created a list item, I created a new list display form via sharepoint designer 2010. But the image column won't show rather it shows just the url of the image.

Could you kindly help with a solution to fix this, I will be glad to have it as soon as possible.

Thanks.
stets
#2 Posted : Tuesday, June 05, 2012 10:54:17 AM
Rank: Developers Team

Groups: Registered

Joined: 5/27/2010
Posts: 80
Location: Lviv
Hello,

By default, if you create custom Display item form, SharePoint designer inserts the folowing code:
Quote:
xsl:value-of select="@ImageUploadFieldName"/

instead of current field control.
So, you should replace code above for Image Upload column to the following:
Quote:
SharePoint:FormField FieldName="ImageUploadFieldName" runat="server" ControlMode="Display"

where ImageUploadFieldName - InternalName of Image Upload column in your SharePoint list.

Let me know if you have any question.

Best Regards,
Yura Stetsuk
SharePoint Development & Support Team
ibscrib
#3 Posted : Tuesday, June 05, 2012 11:40:50 AM
Rank: Newbie

Groups: Registered

Joined: 6/2/2012
Posts: 2
Location: Nigeria
Thanks a bunch, it worked fine.
barnettj
#4 Posted : Tuesday, June 19, 2012 7:05:32 PM
Rank: Newbie

Groups: Registered

Joined: 6/19/2012
Posts: 1
Location: USA
This tool works perfectly on out-of-the-box display forms. However, I have a use case similear to the one posted here where I need to create a custom display (Data Form Web Part). I've tried replacing this code in a DFWP as described here but the image does not display. In SharePoint Designer I see "[FormField]" displayed in the Design pane after changing this code but when I open the page the field is not populated with an image. Are there other code level changes that I need to make in order to display an item's image upload column image in a DFWP?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2016 ArtfulBits. All rights reserved.