This documentation is archived and is not being maintained.

Example 9 - Using ScreenTips to show list data

SharePoint Team Services 1.1

To add ScreenTips to the display of an Events list, do the following:

Note   Custom ScreenTips are supported in Microsoft Internet Explorer version 4.0 and later.

  1. Using Microsoft FrontPage, create a new page on a Web site that is based on SharePoint Team Services from Microsoft.
  2. In HTML view, add the following STYLE information in the document's HEAD section:
    <META Name="Microsoft SharePoint Content Type" Content="Dynamic">
  3. Within the document's BODY section, add the following CAML source:
    <ows:xml>
      <SetList>Events</SetList>
      <View Name='AnyName' FreeForm='TRUE'>
        <ViewFields>
        <FieldRef Name="LinkTitle"/>
        <FieldRef Name="Location"/>
        </ViewFields>
      <ViewBody>
         <HTML><![CDATA[<TABLE><TR><TD>]]></HTML>
         <HTML><![CDATA[<SPAN TITLE="Location:&nbsp;]]></HTML>
         <Field Name='Location'/>
         <HTML><![CDATA[">]]></HTML>
         <Field Name='LinkTitle'/>
         <HTML><![CDATA[</SPAN>]]></HTML> 
         <HTML><![CDATA[</TD></TR></TABLE>]]></HTML>
      </ViewBody>
      </View>
    </ows:xml>
  4. Save and view the page.

    As a result, a new view of the Events list is created. The LinkTitle field is specially handled in that, when you place the pointer over the LinkTitle text, a ScreenTip is created to display the contents of the Location field.

Note   This example assumes that the built-in Events list has not been deleted.

See Also

Introduction — What Is CAML?

Location of CAML


Show: