Represents an item or row in a list.

learn more… | top users | synonyms

4
votes
3answers
8k views

Cannot get field value of list item through JavaScript

I try to get the value of a list item (that is currently selected). I know that I must load it into the context but even with loading the field explicitly I get the following message. Microsoft ...
4
votes
1answer
2k views

CSOM Get ListItem of Folder

In an application I'm working on, I'm interacting with SharePoint (2010) via the .NET Client-Side Object Model, and am trying to account for a large number of possible configurations of document ...
4
votes
1answer
3k views

How can I restart list item ID numbering at 1?

I deleted list items that include an ID from the list and the recycle bin. When I create a new list item, the ID populates where the last line item left off. For example, if the last ID was 5 and I ...
4
votes
2answers
393 views

Create Page using REST API

I have spent two days trying to create a page with a specific Content Type in Pages list using REST API. It goes into error handler and returns ...
3
votes
6answers
719 views

How to run javascript code only when list item gets deleted?

ANSWERED! See bottom of original question for the working answer. I'm trying to find out how I can run a piece of JavaScript code the moment a list item gets deleted. So it should be some sort of ...
3
votes
3answers
117 views

How to get the state of the document whether it is locked or not in SP2013?

I have document library with workflow attached with it. There are metadata columns attached with the document library i.e. Test1 & Test2 I am modifying the value of the Test1 & Test2 in the ...
3
votes
1answer
780 views

ItemAdding event on list item to target a specific custom list

I have an ItemAdding event handler created and targeted to a Custom List. The event receiver seems to be firing on all custom list on the site. I wonder if I should target it to a specific custom ...
3
votes
2answers
573 views

SharePoint 2010 Save ListItem without closing

Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
3
votes
1answer
3k views

How can I display list item data on a workflow initiation form?

I have a master list (Projects) containing all the data about the projects my clients' employees (technical writers) are working on. When it's time for the writers to grab sign offs on the project ...
3
votes
1answer
1k views

How to disable multiple select on lists in sharepoint 2010?

thank you for reading my question! I have a little problem with lists in Sharepoint 2010. The goal is to disable the checkboxes on the left of each item, but to keep them selectable. I know that ...
2
votes
2answers
141 views

Best practice to add list item in SharePoint Server OM?

from the below codes, which one is best practice and performance wise also:- CASE 1: using (SPSite oSPsite = new SPSite("http://website url/")) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) { ...
2
votes
3answers
46 views

Two different documents with same name become one

If two users have two different documents but same name, when the second user saves his file in same document library, it overwrites the first user's document and the document gets new version. Is ...
2
votes
2answers
3k views

Edit multiple list items in one shot?

I have a list that contains many items. I'd like to give my users the ability to select 10-20 items by "checking" them and then edit them all at once. Certain fields (item name, id, etc.) are ...
2
votes
1answer
1k views

Delete item from Client Object Model

I'm trying to delete an Item from a list using the following code: using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace ...
2
votes
2answers
2k views

How to add new item in Links list using Managed Client Object Model?

I have created a standard SharePoint Links list, using Managed Client Object Model (for Silverlight). Here's the code: ClientContext clientContext = new ClientContext(sitePath); ...
2
votes
2answers
875 views

Create list item in sharepoint list using REST API using C#

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a ...
2
votes
2answers
265 views

Updating a document library list ltem in ASP.NET code behind file

I am trying to update a list item's custom property in asp.net code behind file but getting Error 500 without any explanation or further error, while debugging I realized it happens while calling ...
2
votes
1answer
744 views

SharePoint 2013 auto-hosted app: Assigning unique permissions to list item programmatically fails with Access denied

I have a SharePoint 2013 auto-hosted app. The app is really simple. It has a list with a remote event receiver on ItemUpdating and ItemUpdated. What I have been trying to do is to assign unique ...
2
votes
0answers
106 views

How to show names of attachments from a list item in a column?

I have an announcements list and some announcements have multiple attachments. The view is set to show the attachments, but it just shows this paperclip icon which probably means the list item has ...
2
votes
2answers
259 views

Comments for Content Types

One piece of functionality I thought was oddly unincluded in SharePoint 2010 was the ability to create comment trails for content types other than blog posts and to a lesser extent discussion boards. ...
1
vote
3answers
8k views

How do I get the terms used in a TaxonomyField?

I have a document library with a custom managed metadata field. I want to get the terms that are used for a particular item. I can get access to the item through the object model, and can get to the ...
1
vote
1answer
361 views

Get list items even if user does not have access to those items

Is there a way to get items from a list even if the current user does not actually have acces to them? SPSecurity.RunWithElevatedPrivileges does not seem to work! I have a special case in which I ...
1
vote
1answer
293 views

SharePoint 2013 REST API: How can I clear a non-string field value?

I'm using the SharePoint 2013 REST API (my last choice, technological constraints require using it vs CSOM) and am encountering an issue when trying to clear any non-string (date, number, etc) field ...
1
vote
2answers
231 views

Add items to Sharepoint Online list using Web Service provided by sharepoint

I want to add a new item to a sharepoint list using /_vti_bin/Lists.asmx web service. I have used the following code SharePointListService.Lists currentListService = new ...
1
vote
1answer
3k views

Get UniqueId from listitem with Javascript/Ecmascript (Sharepoint 2010)

Is it possible to get the Unique Id from a listitem in a custom SharePoint 2010 list? I've added a custom ribbon action so far where I can get the id, but that's an integer (0,1,2,3,...) I need the ...
1
vote
4answers
3k views

Archiving list items

What would be the best way to archive items from one list to another. Is there OOB functionality for that or do I have do code this by myself? If I had to code it, what would be the best approach?
1
vote
1answer
128 views

Q: After adding a new item to a list, is there a way/workflow to automatically add new item to another list?

I am hoping someone could direct me to the right path on being able to do the following. I have an "issue tracker" list, and a "Team Discussion" list. When adding a new item to the "issue tracker, I ...
1
vote
1answer
440 views

Item-level permissions on document library

I ultimately want to grant users edit permission only on the items they created. According to this article: http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx I can do ...
1
vote
1answer
1k views

Move an Item between lists maintaining version history

I wish to move/cut a item from list in SharePoint to another list. I can copy the item across to a list and delete the original. Sadly version history is lost. I want a way to be able to copy an item ...
1
vote
1answer
471 views

SharePoint 2007 Error - some part of your SQL statement is nested too deeply

Im working with an application on SharePoint 2007, I encountered an issue where the list item unable to view. It hit error 1309 "Some part of your SQL statement is nested too deeply. Rewrite the ...
1
vote
3answers
341 views

how can i know Items in Tasks list viewed by user(something like “Last Viewed” and “Last Viewed By”)?

for every list-item in Lists we have two columns or fields by the name of "Modified" and "Modified By". you got the idea, i wanna have two columns or fields for Tasks List by the name of "Viewed" and ...
1
vote
1answer
35 views

During ItemAdding of parent list, assign lookup field of a child list

I'm attempting to create a projects/tasks lists. When a user creates "ProjectA", I want to create a list of tasks based on the template that was selected for that project. In general, everything is ...
1
vote
2answers
375 views

Retrieving the Name of a Document Saved in a Document Library Using the Client Object Model

foreach (SPListItem item in listitems) { String value = item.File.Name; } The above sever side code shows how to retrieve the name of a document which is saved in a SharePoint document ...
1
vote
3answers
2k views

Possible to load a SPListItem from the item url?

I have a FullTextSqlQuery that is returning the URL for a list item. I would like to create a new SPListItem object from that URL. Is there an easy way to do this, or will I need to peel apart the ...
1
vote
1answer
335 views

Sharepoint Ribbon for view item form going full option

I have a view item form which contains a custom WebPart for displaying that item. I have no issue with that but the ribbon for the display form looks weird: It contains lots of options that don't ...
1
vote
1answer
547 views

How to bulk update records in a SharePoint List with a lookup column (with type Person)

In SharePoint 2007 I have a List containing two columns: "Title" of type single line of text "Email" of type Person or Group Because I have to update a lot of records, I use export to Excel to ...
1
vote
1answer
56 views

Web Analytics - List Items

I have a list of 50 faqs. Is there a way to pull the number of times an faq is accessed in Sharepoint 2010. If so how.
1
vote
0answers
52 views

SharePoint 2010: What are the Related Resources for Document Library items?

Could anyone please tell me what "Related Resources" means in context of Document Library? I have an existing Document Library (created by Publishing feature) with MS Word files and some other ...
1
vote
1answer
60 views

Adding new item to a list works in dev but not in prod

I have some code which simply gets a list, creates a new item with the appropriate fields, and adds the item to the list. The code worked perfect in the dev and UAT environments but since we deployed ...
1
vote
1answer
186 views

ListItem: Set Item-level Permissions with a few exceptions

I have created a custom ListItem in VS with a custom content template. I have enabled set Item-level Permissions. It is now only possible to see your own items in the list. Also it is only possible to ...
1
vote
0answers
118 views

Is there a way to catch the transition of a SharePoint 2013 list item to Project Server 2013 project event?

As you may know, there is a feature in SharePoint 2013 that allows you to create a project in PWA from a list item (Ideation). I need to add a couple more settings for that list item and the resulted ...
1
vote
1answer
150 views

How to display ONLY “Add new item”?

I see lots of people on Teh Interwebs trying to block the "Add new item" line that comes up on SharePoint lists, but I want to do the inverse -- I want to have ONLY the "Add new item" line, green '+' ...
1
vote
2answers
130 views

How to change the default link in a list item

I have a basic list and would like to customize the default link of the "Title" field. Currently when I click on the "Title" field of a list item it takes me to view that particular item; instead, I ...
1
vote
3answers
2k views

Disable or hide delete button on condition

I have a list called Tenders. I need to make sure that when Tender status field is set to "open" no one can delete it. Ideally would be if I won't see options in ecb and ribbon. It is not connected to ...
0
votes
1answer
701 views

Unable to add taxonomy field value in list item

I want to add value to the managed metadata column of list item. The term which is being inserted is selected from taxonomy web tagging control. My declarative part is: <tr> <td> ...
0
votes
1answer
4k views

properties.ListItem is NULL on item added Event Receiver?

The following articles... http://moonistahir.wordpress.com/2008/05/05/properties-listitem-in-itemadded-is-null-workaround-to-get-listitem/ ...
0
votes
1answer
312 views

How to decide which link is clicked from list item using javascript?

I have inserted an image (with <a> tag) like "Add to cart" before the title of list item using SP Designer. Now I want to check that which item's link is clicked using java script. How to do ...
0
votes
1answer
147 views

List item storage in SQL

So I'm having some performance issues with some large queries against SharePoint (yes, I'm already using CAML), so I decided to take a peek at the SharePoint database despite the dire warnings never ...
0
votes
1answer
142 views

Permissions(user has not created list item but should only be able to edit their own)

Hope you can help. Ok so I have a list with a field called Owner which is derived from the active directory, this is the person who should be able to edit the list item in which they are assigned to. ...
0
votes
1answer
6k views

The property or field has not been initialized. It has not been requested or the request has not been executed

I am getting this error and from what I understand this is when you try and access columns from the list item. I have tried various things including the line below: clientContext.Load(items, eachItem ...