Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ThreadStamp Element (View)

Last modified: April 09, 2010

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Obsolete. Renders, in discussion boards, the current server's local time in a specific format (YYYYMMDDHHMMSS) for sorting purposes.


<ThreadStamp
  StripWS = "TRUE" | "FALSE">
</ThreadStamp>

Attribute

Description

StripWS

Optional Boolean. TRUE to remove white space from the beginning and end of the value returned by the element.

Minimum: 0

Maximum: Unbounded

Each discussion board has a special threading field that consists of a concatenation of timestamps. The threading value of a discussion item is the threading value of its parent followed by the ThreadStamp value corresponding to the current local time.

The following example uses CAML to render a hidden <INPUT> element in an HTML form. The value of this element is the first 504 characters of the concatenation of the Threading variable (if present; if not, the value is an empty string), followed by the value rendered by the ThreadStamp element, which represents the current time.

<RenderPattern Name="NewPattern" DisplayName="NewPattern">
  <HTML><![CDATA[<INPUT TYPE=HIDDEN NAME="]]></HTML>
  <FieldPrefix/>
  <Property Select="Name"/>
  <HTML>" VALUE="</HTML>
  <Limit Len="504" StripWS="TRUE">
    <GetVar Name="Threading" StripWS="TRUE"/>
    <ThreadStamp StripWS="TRUE"/>
  </Limit>
  <HTML><![CDATA[">]]></HTML>
</RenderPattern>
Show:
© 2015 Microsoft