Newly created Document library and columns using webservices are not visible on sharepoint
Posted
by Royson
on Stack Overflow
See other posts from Stack Overflow
or by Royson
Published on 2010-04-28T08:25:12Z
Indexed on
2010/04/29
5:07 UTC
Read the original article
Hit count: 413
Hi,
for creating a columns I worked on this code . and for creating document library
Lists listService = new Lists();
listService.PreAuthenticate = true;
listService.Credentials = new NetworkCredential(username,password,domain;
String url = "http://YourServer/SiteName/";
listService.Url = url @ + /_vti_bin/lists.asmx";
XmlNode ndList = listService.AddList(NewListName, "Description", 101);
Both are working successfully.
But Problem i am facing is:
New Columns and document library are not visible.
I tried with comparing Field Value of Both Visible and No-Visible types. Difference i found is : Visible (Created Manually) doesn't contain Version value. were as i am creating have it.
Can you help me out in this?
EDIT: I checked contents of ndList node, List is created and it is visible on my UI. but on sharepoint it should be listed in 'Document' tab where default 'Shared Documents' library is shown. If i click on 'Documents' then we can also see all lib created by this code.
Visible means library displayed under 'Documents' tab
© Stack Overflow or respective owner