English 中文(简体)
标题
原标题:sharepoint insert new item list
  • 时间:2010-12-05 12:20:52
  •  标签:
  • sharepoint

我试图在已经编制的《2010年股东名单》中加入新的名单。 使用Im的代码是:

ClientContext ctx = new ClientContext("http://bigboss/sites/presidencia"); Web thisWeb = ctx.Web; ctx.Load(thisWeb);

  List processosList = ctx.Web.Lists.GetByTitle("Processos");
  ListItemCreationInformation lici = new ListItemCreationInformation();
  ListItem liNovoProcesso = processosList.AddItem(lici);
  liNovoProcesso["Title"] = processo.Identificador;
  liNovoProcesso["IdentificadorProcesso"] = processo.Identificador;
  liNovoProcesso["DescricaoProcesso"] = processo.Descricao;
  liNovoProcesso["NotasObservacoesProcesso"] = processo.NotasObservacoes;
  liNovoProcesso["SituacaoProcesso"] = processo.Situacao;
  processosList.Update();
  ctx.ExecuteQuery();

This code runs without erros or exceptions, but the list isn t showing the items. I ve already tried to change Field names to trigger an error, just to be sure that the code its running, and it throws an error, like expected!

如果有的话,请?

感谢

José Cruz

最佳回答

Are you missing ? liNovoProcesso.Update();

您应更新清单目标而不是清单。

问题回答

暂无回答




相关问题
SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

UI automated testing within SharePoint

I m looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom ...

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 ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

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 ...

热门标签