Partager via


Display Method

Runs a database query and returns list data in XML or HTML format. You can specify the nature of the query, content to be returned, and the return format.

Syntax

<Method ID="Text">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">Display</SetVar>
  <SetVar Name="XMLDATA">[TRUE|FALSE]</SetVar>
  <SetVar Name="View">GUID</SetVar>
  <SetVar Name="Query">Text</SetVar>
  <SetVar Name="Using">Text</SetVar>
  <SetVar Name="CacheControl">Text</SetVar>
  <SetVar Name="ID">Text</SetVar>
</Method>

Parameters

ID = "Text"

Scope = "Request"

Name = "Cmd"

Name = "XMLDATA"

Name = "View"

Name = "Query"

Name = "Using"

Name = "CacheControl"

Name = "ID"

Decoded

<Method ID="0,Display">
  <SetList Scope="Request">GUID</SetList>
  <SetVar Name="Cmd">Display</SetVar>
  <SetVar Name="XMLDATA">TRUE</SetVar>
</Method>

Remarks

When used in URL protocol to make an HTTP GET request, this method requires a List parameter that specifies the GUID of the list.

Return Value

Success

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

Error

Returns an XML-encoded Unicode (UTF-8) text string. See Error Message Format for Windows SharePoint Services for more information.

Sample Output