Export (0) Print
Expand All

RenderView

SharePoint Team Services 1.1

RenderView

Requests the contents of a view for a SharePoint Team Services list. A view is a file containing a named set of rules describing how the items in a list are displayed. Each list has a default view associated with it.

Syntax

<Method ID="IDText">
  <SetVar Name="View">{view-ID}</SetVar>
  <SetList Scope="Request">list-name</SetList>
  <SetVar Name="Cmd">RenderView</SetVar>
  <SetVar Name="UrlBase">URL</SetVar>
</Method>

Parameters

  • ID = "IDText"

    Application-specific string. In Microsoft FrontPage, the string provides the sequence number and name of the method.

  • Name = "View"
  • ID number of the view for a list. This number is defined in the table below. Custom views are assigned a unique ID by SharePoint Team Services. Users can rename view page names.

  • ListName of FileID number
    Announcementsallitems.htm{86A4A751-27A8-4c21-99EA-241148C9AF2F}
    Contactsallitems.htm{EE67FB3F-DA0F-437a-9210-90D7C6473A04}
     MyItems.htm{32C6B8EE-900E-4821-BE56-E9244F0888C6}
    Eventsallitems.htm{A8D400FC-F923-422b-89C8-3D6A2FB542F4}
     calendar.htm{27742145-B096-4bfa-BF64-B42C9F96A9F0}
     future.htm{38B4AAF4-7791-4b52-83BD-BD8028BCD368}
     MyItems.htm{47335C36-D211-4cf0-B509-9DB05B5E720B}
     today.htm{3F633CB8-D67B-4640-9418-97C623060A2A}
    General Discussionallitems.htm{4442B73A-8E2B-4edc-A272-94E3615008C5}
     expanded.htm{4442B73A-8E2B-4edc-A272-94E3615008C6}
    Linksallitems.htm{E3857CDA-F3B1-459c-90A0-C8C881534B84}
    Tasksactive.htm{5FFE594E-F30A-448b-B8A5-3502C68DC57A}
     allitems.htm{E3B59848-F825-43cf-8F5D-66068065DEAD}
     byowner.htm{00984528-3646-4c91-BA3F-19AA55EB6E4B}
     MyItems.htm{132364E0-1D6F-4338-A0EF-AD5545EDD4E1}
    Shared Documentsallitems.htm{9F606C86-9CB5-4ac9-8714-BCE51398B12B}
     WebFldr.htm{C521E6ED-56C0-47b9-91F1-3D44C3BF23D2}
    Custom Listallitems.htm{67B8C8CE-F063-4a2f-A8A9-B20BC7A33575}
  • Scope = "Request"
  • When set to Request, the Scope attribute sets the SharePoint Team Services variable for the rest of the request, unless the variable is changed by another tag. When the Scope="Request" attribute is omitted, the variable remains set until the end tag.
  • Name="Cmd"
  • Must be set to "RenderView".

  • Name="UrlBase"
  • Specifies the URL of the view file.

Decoded

<Method ID="0,RenderView">
  <SetVar Name="View">{86A4A751-27A8-4c21-99EA-241148C9AF2F}</SetVar>
  <SetList Scope="Request">Announcements</SetList>
  <SetVar Name="Cmd">RenderView</SetVar>
  <SetVar Name="UrlBase">http://servername/allitems.htm</SetVar>
</Method>

Return Value

Success

Returns the code attribute, which is a signed-decimal representation of an HRESULT.

Error

Returns an XML-encoded UTF8 text string. See SharePoint Team Services Error Message Format for more information.

Sample Output

 

 


Show:
© 2014 Microsoft