Archive | February 2013

Show Description/Comment History in Display Form of SharePoint Designer 2007

Hey Guys,

Yeah, it seems little weird for me to go back working on SharePoint (or may be MOSS) 2007 but it was for a while  🙂

So, when you have a requirement to showing Description/Comments History in your display form, for which, the field was multi line text, what would you do?

1

For Description, it’s pretty straight forward!!

<xsl:value-of select=”@Comments” />

But for Comments History, in my edit page, I was able to see the Comments History like this:

1

In HTML Code, I show something like below,

<xsl:value-of select=”@Comments” />

but nothing comes under the Comments Text in my Display form!!  😦

I went and edited the Edit Form where it does shows the comment history, so how to show the comment history in Display form??

It’s simple (looks simple when you know it 🙂 )

Just Changed the below code,

<xsl:value-of select=”@Comments” />

To

<SharePoint:AppendOnlyHistory FieldName=”Comments” runat=”server” ControlMode=”Display” ItemId=”{@ID}”/>

That’s it.

Thanks & Enjoy!! 🙂

<a onclick="OpenPopUpPage('http in SharePoint Designer 2010

Will write in detail later…..

Select on field value, Switch to Code mode and add below line,

disable-output-escaping=”yes”

Thanks & Have fun!! 🙂

%d bloggers like this: