SPList represents a list on a Microsoft SharePoint Foundation Web site.

learn more… | top users | synonyms

1
vote
0answers
13 views

Create custom list in sharepoint with a list template using JQuery [duplicate]

I need to create a custom list in Sharepoint 2007 using JQuery (only!) using a custom list template. I'm using Sharepoint 2007. Is there any way to do it? I already know to create the list and update ...
1
vote
1answer
24 views

Failed dropdown list binding

I Am trying to bind a custom list from http://mysharepoint/subsite/subsite/lists/sourcelist with no luck. Any thoughts why it's not working? using (SPSite site = new ...
3
votes
1answer
51 views

Create custom list in sharepoint 2007 using JQuery

I need to create a custom list in Sharepoint 2007 using JQuery (only!). I'm using Sharepoint 2007. Is there any way to do it?
1
vote
2answers
48 views

Issue in Generating Charts using Google Charts and SPServices and jQuery against SPList in SP 2010

I was trying to generate a line chart connecting to SPList as shown below. But am getting the error undefined here: alert(' inside completfunc xdata.responsexml is .....'+ ...
0
votes
1answer
27 views

Approaches for porting content from one SPList to another SPList

I have one SPList -say List1- with some 400 items with single line of text, dropdown, lookup,peoplepicker, multiline fields etc. I need to copy the entire from this List1 to a new list that has ...
0
votes
1answer
38 views

Efficient way to get all the field (column) values in an array from SharePoint List

I have to get all the field (column) values in an array from a SharePoint list. Right now I am looping through all the items in the list and creating an array. But it is very inefficient if I have ...
3
votes
1answer
62 views

CalculatedColumn or SPServices with jQuery in SP 2010 List

I need to create a calculated column -say ResCount - based on another datetimefield field, ie,assuming if mydt is my datetimefield, from this field, I need to extract month part and based on month ...
0
votes
1answer
20 views

Browser crashes when navigates to the custom SPList

My Browser crashes when navigates to the custom SPList I created for the purpose of custom form and its validations. Am stuck with why this happens. Till two days before the custom form was working ...
2
votes
3answers
76 views

web.GetList(“Lists/TestList”) throws FileNotFound exception

I have the following code in my application. It is throwing FileNotFound exception at `web.GetList("Lists/TestList") This list exists and I am able to get the list from ...
0
votes
0answers
14 views

Restore viewstate while cancelling request

I have a SPItemEventReceiver with custom ItemAdding handler. When any exception occurs (frequently it's just a model validation) it handles this exception in Handle method. Now it looks like this: ...
1
vote
1answer
65 views

List Item Name not populating - PowerShell

I have a PowerShell script that outputs to a CSV file all items from all Lists and all files from all Document Libraries in a Site shown below: function Get-DocInventory([string]$siteUrl) { $web = ...
0
votes
2answers
69 views

Retreive all Items from All Lists from a site - Powershell

I have a PowerShell script that outputs all documents from all Libraries within a Site (web) scope to a CSV file listed below: function Get-DocInventory([string]$siteUrl) { $site = New-Object ...
0
votes
2answers
46 views

Update SPList.ImageUrl after migration from SP2007 to SP2013

After migration from 2007>2010>2013 for all lists ImageUrl property is still on 2007. If someone have powershell script which updates all lists on site SPList.ImageUrl property from SP2007 version to ...
0
votes
0answers
59 views

Validate checkboxes and textboxes in SP 2010 List NewForm.aspx on Save Click -PreSaveAction

I am having a new form created on my SP 2010 List, mycustomnewform.aspx and i have some 6 checkboxes and 6 textboxes.Now I need to validate these textboxes' value when a checkbox is checked. I ...
1
vote
0answers
32 views

Is there any other way to create a list template programmatically Other than by using Server object?

Server Object is having a function SaveAsTemplate() to create list templates. By any other means can we create the list template other than server object ?
0
votes
0answers
41 views

Unable to update RichTextMode from Compatible to FullHtml

As the title says, I am unable to update the RichTextMode property of the Description field on a Calendar List. I am trying to update the field so that it supports "Enhanced Rich Text". Snipp: ...
1
vote
0answers
33 views

SPList performance issue

I am having a SPList with some 500 records/items in it. My visual web part used to read this SPList whenever the page loads and the SPList was populated by a timer job on a daily basis. The customer ...
0
votes
2answers
99 views

C# SSOM turn on List Rating settings

I have been using the method described here by attempting to use reflection to turn on the Rating Settings of a list. However, I get the following error: Exception Message: exception has been thrown ...
1
vote
1answer
31 views

SPListItem update conflict

Task: when user updates an item, change synchronously another hidden field of this item. Problem: save conflict occurs AFTER update is called (not on this line). I subscribe on EventReceiver's ...
1
vote
1answer
118 views

GetItems from SPList case sensitive

I have troubles with CAML Query and GetItems method from SPList. I get a SPList from web context: SPList docTypeList = _web.GetList(string.Format("{0}{1}", web.ServerRelativeUrl, ...
0
votes
0answers
69 views

Show Hide Div based on DropDown SharePoint Visual Webpart

I have a cascaded drop-down on my page that is being populated from SPList on site. Now Based on this drop-down's Selection i want to show or hide Div containing 4 more controls. If any one can help ...
0
votes
0answers
14 views

SharePoint manipulating content on ListItem insertion

Long story short, I am parsing an XML document and adding items to the Body field of a discussion board. The XML has a <body> element that contains encoded HTML that I am adding to the list ...
2
votes
2answers
350 views

Avoid SharePoint 2013 List View Threshold

In client environment we cannot let our hands on SharePoint list threshold. in such case rest api is not usable, there for i moved to the approach of content iterator and found that it also have a ...
0
votes
2answers
136 views

How export list in excel file

I want to create a button that exports specific list into the excel file. But when I do it I always get the same error: Error List does not exist. The page you selected contains a list that does ...
2
votes
1answer
263 views

How to modify the existing list template file in SharePoint

I want to modify a list template which is already created in my site collection.Once I upload the list into the template gallery it becomes a .stp file.But how to modify this again? I am having a ...
0
votes
1answer
40 views

Error passing spweb and splist variables as function parameters

I need to pass SPWeb an SPList as function parameters: string check(SPWeb web1, SPList splist1){} Yet, web1.Title, splist1.Title throws errors: There is no Web named "/http://DevSite". Is ...
0
votes
0answers
47 views

Check for mandatory fields while saving Sharepoint Item programmatically

I have a Mandatory field in a list. I need to save the item and not create the item. I need to implement the it using custom JavaScript and not use the save button on the new form. Also need to ...
1
vote
1answer
174 views

Modify list item field using PowerShell

I have a list field that stores an XML string. I am trying to get the XML contents and modify a particular tag in the XML like so: foreach($item in $list.Items) { ...
2
votes
1answer
89 views

Get Checked out items in a document library

I have a document library which has 18000 items. When I go to the All Site Contents page, I see 18000 items against the document library name. But when I query the items in C# as foreach(SPListItem ...
9
votes
2answers
183 views

Efficient way to retrieve all list items

I am retrieving all items from list containing around 4000 items. But it seems to take longer time to fetch all items which is ~15 to ~22 seconds. Is there any best way to fetch all items from list in ...
0
votes
0answers
30 views

View filtered on SPUser fast in Sharepoint display but slow in getItems

Sharepoint 2010 Foundation : I’m used to have some surprises with Sharepoint but since some days, I have a real strange one. One of our clients has problem of response time in our applications… I ...
1
vote
1answer
329 views

Refresh parent page after closing list item dialog

I'm trying to refresh the parent page of a list when closing the dialog of a list item. Is there a way to achieve this with javascript somehow? I inspected the button in the DOM and tried to write ...
0
votes
0answers
61 views

Save Conflict error and item added twice into list

I am trying to create a list which deletes all the listitems and then adds site collection and subsite details to the list. How ever i am getting save conflict error when i execute this code in DEV. ...
0
votes
2answers
125 views

Check if required fields are filled or not in SPList programmatically

I want to check if required field in SharePoint list is filled with data or not? Which method or property should i use?
0
votes
0answers
32 views

SharePoint 2010 - can't Check In List Item or View List Settings

I had an issue where I could use the site normally, but at a certain point I was unable to check-in List items. And when I went to List Settings I would get an ASP error. The problem turned out to ...
0
votes
0answers
29 views

compare the fields on gridview with sharepoint list and and add new gridview items store in sharepoint list

i am new to programming. i have a requirement where i have to store items in the gridview to a sharepoint list on page load event. but before storing on every page load. we have to compare if the ...
0
votes
3answers
49 views

How to do a real time research in a SPList from a Textbox

I'm working on SharePoint 2010 (with Visual Studio 2010) for an internship and I would like to do a real time search in a SPList from the value in a textbox. I have something in mind like Google's ...
0
votes
0answers
203 views

Customize drop down list with jquery

I'm using SharePoint 2010 and trying to limit the choices in SharePoint SpListFilterWebPart filter, using jquery. The filter has around 40 values to choose from (stored in SharePoint as list), but ...
0
votes
1answer
201 views

Why is my list total showing as “Count= undefined”?

I'm updating a view on an existing list programmatically but I can't get the aggregation to work correctly. I'm setting it as follows (the values are pulled from an xml site definition): if ...
0
votes
1answer
35 views

Calculated field formula

When I tried this, it didn't work... =IF([Circuit Type]="ISDN",(([len_26] + [bt_26] + [dlen_26] + [dbt_26]) * 2.81) + (([len_24] + [bt_24] + [dlen_24] + [dbt_24]) * 2.03) + (([len_22] + [bt_22] + ...
0
votes
1answer
56 views

How do i Generate different calculations depending on what item is selected in drop down box?

Hi guys I am making a SP 2013 site and am currently creating columns... I have a drop down column (Circuit Type) , four text fields (Num1, Num2, Num3, Num 4) and a calculated column (Loss). The ...
0
votes
1answer
32 views

Iterating through list items by name

I have a conditional statement that uses named columns of a list item. Eg. Stage 1, Stage 2, Stage 3.. Is there a way that I can iterate through them to satisfy the problem I'm having when stating the ...
7
votes
1answer
193 views

Efficiently get a collection of all users following a list in SP2013 using CSOM or SSOM?

Does anyone know if there is a way to leverage the SocialFollowingManager() class or the SPList() class to efficiently get a collection of all of the users that follow a specific List? I thought ...
1
vote
0answers
41 views

how to implement picture library look and feel in provider hosted App?

How to implement the same view (design) of SharePoint list (picture or document library) in provider hosted App, for now I am using asp.net controls but the final view of app doesn't belong to ...
2
votes
3answers
741 views

Enable versioning on SPList programmatically

I might be missing something obvious, but I am trying to enable version history on a regular task list programmatically. It is definitely possible from the UI, but how can this be achieved in code? I ...
0
votes
1answer
129 views

Sharepoint 2013 c# customise field data depending on user connected properties

I have some specific need here, and i don't know how to approach it. I explain : I have a SharePoint list to which i am adding a field in feature activated event reciever. I am adding a 3 choices ...
4
votes
4answers
286 views

Does SPList.ItemCount equal SPList.Folders.Count plus SPList.Items.Count?

I'm trying to do some inventorying of SharePoint 2007 content and have been scratching my head over this for a while now. I understand from MSDN that SPList.ItemCount counts all folders and items ...
1
vote
4answers
1k views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
0
votes
2answers
115 views

How retrieve custom fields only when using SPListItemCollection?

Hi with following code I am retrieving a DataTable from a List: using (SPSite site = new SPSite("http:...")) { using(SPWeb web = site.OpenWeb()) { ...
1
vote
0answers
60 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...