Tag Info

Hot answers tagged

4

For those who are still looking for the answer. SharePoint 2013 (since SP1 at least see UPD below) contains special method Web.GetList. It accepts site-relative url for the list, i.e. site/dev/lists/mylist. Sample code for .NET object model: var ctx = new ClientContext("http://sp2013dev/sites/dev"); var list = ...


2

Map SharePoint library/site as a Network Drive. Now use Windows Explorer to browse file and open with your favourite editor. From my knowledge only SharePoint Designer Gives you a tree view navigation which we can use to browse the files and edit/save. Update You can use some registry tweak so that you can open files using your favourite editor from ...


1

If the user who you are Sharing File is part of SharePoint then you can simply pass the URL to the user, who can access the file directly. For external users, you can get this link using ObjectSharingInformation class. This class has property AnonymousEditLink and AnonymousViewLink You can use below snippet for that var item = //code to get list item.. ...


1

Try foreach (ListItem listitem in allitems) { DataRow row = table.NewRow(); //Multi Line Text if(listitem["Comments"] != null) row["Comments"] = listitem["Comments"].ToString(); //Number int tempId = 0; if(listitem["EmployeeID"] != null && int.TryParse(listitem["EmployeeID"].ToString(), out tempId)) ...


1

The parameter $ListInfo.TemplateType = "100" needs to be $ListInfo.TemplateType = "106" to create a calendar list. For all template types see the documentation here: https://msdn.microsoft.com/en-us/library/dd958106%28v=office.12%29.aspx


1

It depends whether the specified list item belongs to List or Documents library: for Documents library: var absItemUrl = item.get_item('EncodedAbsUrl'); for List you could return url of display form page Example function getListItemUrl(listTitle,itemId,success,error) { var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var ...


1

After upload you need to set it using clientContext.Load(file); ListItem item = file.ListItemAllFields; item["Title"] = "Title"; item.Update(); clientContext.ExecuteQuery();


1

It seems your template is not applied since clienttemplates.js library is not yet loaded when SPClientTemplates.TemplateManager.RegisterTemplateOverrides function is invoked. Instead of (function () { var overrideContext = {}; overrideContext.Templates = {}; overrideContext.Templates.Fields = { 'Status': { 'View': overrideTemplate ...


1

This is the implementation of SPWeb.IsAppWeb (via Reflector) public bool IsAppWeb { get { return (this.AppInstanceId != Guid.Empty); } }


1

You can look at the WebTemplate property of the Web object. The WebTemplate value will be "APP" if it is an App Web. // Exclude any App Webs if (subweb.WebTemplate.Equals("APP")) continue;



Only top voted, non community-wiki answers of a minimum length are eligible