English 中文(简体)
最新经修改的MOSS清单服务用户身份
原标题:Last modified person s user ID with MOSS List Service

您能否让我们知道,能否检索那些最后使用最低业务安全标准清单网络服务的修改文件的人的用户身份? 如果是,请让我知道该栏的名称。

问题回答

每个项目都有一份<条码>改良财产,以及一份<条码>经修改的>外地编码,分别有<条码>、<条码>、<条码>和<条码>英文<>。 您可以认为,谁最后修改了一份文件,何时修改。

The CAML for the View Fields

<ViewFields>
  <FieldRef Name= Modified  />
  <FieldRef Name= Editor  />
</ViewFields>

因此,将这种情况列入“GetListItem”文件页。

SrvRef.Lists listService = new Web_Reference_Folder.Lists();
listService.Credentials= System.Net.CredentialCache.DefaultCredentials;

XmlDocument xmlDoc = new System.Xml.XmlDocument();

XmlNode ndViewFields = xmlDoc.CreateNode(XmlNodeType.Element,"ViewFields","");
ndViewFields.InnerXml = "<FieldRef Name= Modified  /><FieldRef Name= Editor  />";
// maybe add a Where clause as well to retrieve specific items only
// XmlNode ndQuery = xmlDoc.CreateNode(XmlNodeType.Element,"Query","");
// ndQuery.InnerXml = "<Where><ADD PREDICATES HERE</Where>";

try
{

  XmlNode ndListItems = listService.GetListItems("LISTNAME", null, null, ndViewFields, null, null, null);
  // do something with the result
}
catch (System.Web.Services.Protocols.SoapException ex)
{
  MessageBox.Show("Message:
" + ex.Message + "
Detail:
" + ex.Detail.InnerText + "
StackTrace:
" + ex.StackTrace);
}




相关问题
SharePoint 2007 Word Document Conversion Very Slow

I m calling the SharePoint API (SPFile.Convert - MOSS 2007) to convert a docx to html with the out-of-the-box Word to HTML converter. According to the SharePoint logs, the Launcher Service tries to ...

SharePoint user control deployment issue

I am using SharePoint 2007 Enterprise with Windows Server 2008. I am using VSTS 2008 + C# + .Net 3.5. I am new to SharePoint user control development and deployment. I am learning from, http://www....

how to create a web part to track page creation time

I am new to SharePoint Server 2007 Web Part, and I am using SharePoint Server 2007 on Windows Server 2008. I program using VSTS 2008 + C# + .Net 3.5. I want to create a simple web part which could ...

how to create a web part to track page creation time

I am new to SharePoint Server 2007 Web Part, and I am using SharePoint Server 2007 on Windows Server 2008. I program using VSTS 2008 + C# + .Net 3.5. I want to create a simple web part which could ...

How to override SharePoint field rendering in EditForm?

I have a list with a choice field, which is multiple choice - meaning many checkboxes. I d like to render it such that it will be surrounded by a frame, for example a DIV tag with a border. (The ...

Enable authorization on sitemap provider

I want to enable Authorization on the Site map provider. We have enabled anonymous access to the site and we want the Site map provider to be visible only to authorized users. I tried ...

how to integrate Blogs in sharepoint custom site

in my sharepoint site, I need to integrate blogs. can any one give me help with this? Integrating Blog in SharePoint site my sharepoint site Custom site Definition i am selecting custom site ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...

热门标签