This topic has not yet been rated - Rate this topic

ThreadStamp Element (View)

Windows SharePoint Services 3

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.

Numerous

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>
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.