New answers tagged

0

As per my understanding there is no direct way to get the size of a custom list. One option is to calculate each field size (Using SPField DisplaySize) and then multiplying that with total item count.


0

Opening SP Designer 2013, I went to the lists and libraries, selected my list and edited the "AllItems.aspx" File. In this file, I put in my HTML that I wanted to show up in the list template. From here, I saved the .aspx file and went to my site. Then, I went to the list, hit the site actions button and clicked on "Edit this Page". I edited the List ...


0

I tried this and worked. <Field Name="Image">~site/Images/Explore.png</Field>


2

Author is the person who created the item. It is assigned once the item is created and never changed. Editor is changed every time item is modified. Better use SPFieldUserValue to retrieve SPUser. foreach (SPListItem item in myItemCol) { SPFieldUserValue usrAuthor = new SPFieldUserValue(SPContext.Current.Web, item["Author"].ToString()); author = ...


0

You can do something like that: <script> var targetListItem; var listName="js"; var itemId=1; ExecuteOrDelayUntilScriptLoaded(GetListItem, "sp.js"); function GetListItem(listName,itemId) { var clientContext = new SP.ClientContext(); var targetList = clientContext.get_web().get_lists().getByTitle(listName); ...


0

As per below example code: using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointServices.Samples { class DeleteListItem { static void Main() { string siteUrl = "http://MyServer/sites/MySiteCollection"; ClientContext clientContext = new ...


0

You need to get the value as below: model.Status = ((SPFieldLookupValue)listItem["PRF_Status_Lookup"]).LookupValue; You can refer the members of SPFieldLookupValue from here.



Top 50 recent answers are included