Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
0answers
22 views

How to add list item to list [on hold]

I have a Sharepoint 2013 Foundation list. How to add list item to list from current user?
1
vote
2answers
54 views

Update current item [duplicate]

I am trying to update current items, but all items in the list get updated why? public override void ItemAdding(SPItemEventProperties properties) { using (SPWeb web = ...
0
votes
0answers
15 views

ItemAdding Event check for manually unpublished [duplicate]

I am uploading a document to a SharePoint library, (drafts lists). When I publish the document it gets added to the startpage of the document. When I then what do Unpublish the document the ...
0
votes
3answers
40 views

Update listitem problem

i am trying to update a listitem in a event receiver on FeatureActivated in a document library. public override void FeatureActivated(SPFeatureReceiverProperties properties) { ...
0
votes
0answers
14 views

How to avoid character limit when uploading document via VB app?

We have an in-house application that, among other things, generates an Excel spreadsheet and then uploads it to a document library on a SharePoint 2013 site. I sent the developer the UNC path to the ...
2
votes
1answer
41 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
0
votes
1answer
15 views

Re-Deploying SharePoint List removes all the submitted ListItems

I created a SharePoint List using Visual Studio 2013 and deployed it. Later I had need to add few more columns in the List. So after adding more columns when I deployed it again then what I realized ...
0
votes
1answer
14 views

Want to create a navigation bar from list item which redirects to another page or document

Navigation bar should get populated from List items(Hyperlink items) that maps to pages or another document. Share Point 2010
0
votes
0answers
14 views

Set the validation message of sharepoint list item column

I have a list with a mandatory field title. I have hidden the default button and added my own custom button to save the item. I am using the code below to save the item which works fine but it does ...
0
votes
3answers
37 views

PowerShell Script to retrieve every and only List / Library items in a specific view in SharePoint 2010

I am trying to iterate over each item in specific view for a list in SharePoint 2010. What i have so far works to return items in the view, but only the items in the first paginated view for that ...
0
votes
0answers
11 views

Renaming a file with Event Receiver [duplicate]

I need to rename a file in a document library with an event receiver, so that the URL will not have %20's. Basically the File name or File path needs to be stripped of spaces. The problem I'm having ...
0
votes
3answers
48 views

Retrieving ContentType from SPListItem is NULL

I am trying to get the ContentType.Name of the Event (SPListItem) however it is NULL when I try to access it. I'm getting a value for the ContentTypeID, so I would assume that I would be able to ...
0
votes
0answers
32 views

Renaming a file with ItemAdded Event Receiver

I am using an Event Receiver to rename a file in a document library. For some reason this doesn't seem to work. public class EventReceiver1 : SPItemEventReceiver { /// <summary> /// An ...
1
vote
1answer
29 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) { ...
0
votes
1answer
17 views

Creating a TimerJob that renames files

I have been tasked with figuring out how to rename files that are coming into SharePoint. We have an External list that does not have pictures stored as blobs or even images within the SQL Database ...
1
vote
0answers
19 views

Close modal after form have “saved”

Im trying to trigger a page reload after my editform is done. I know that I can create a js function, "presaveitem". But this is called before the item is saved. I need to trigger some custom JS ...
9
votes
2answers
110 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 ...
1
vote
0answers
34 views

SPContext.Current.ListItem randomly returns null (custom form)

I have noticed this once pushing the current code to production. following is the code under ddlEnWipeReason_SelectedIndexChanged (inside the update panel): using (SPSite curSite = new SPSite(csURL)) ...
2
votes
1answer
44 views

SystemUpdate() in list item update

What's the advantage/reason for using SystemUpdate() over Update() when list data update?
2
votes
1answer
63 views

Get all list items versions from client side

I am trying to get all versions from every item in a SharePoint list using only client-side through a web part. Following the exemple at ...
0
votes
1answer
42 views

REST to get list item by Id

I am always comfortable using JSOM, and I have used less of REST calls to access lists and its Items. But now I have a requirement to use only REST to get item by its ID. Is there any code snippet ...
0
votes
1answer
127 views

Error:Access denied. You do not have permission to perform this action or access this resource

I am retrieving items from SP lists. But when I try to deploy my solution through VS 2013 it says Access denied. You do not have permission to perform this action or access this resource. ...
0
votes
1answer
111 views

Show list items in AngularJS ng-grid

retrieving SharePoint list items by REST with var app = angular.module('myApp', ['ngGrid']); app.controller('MyCtrl', function ($scope, $http) { ...
0
votes
1answer
17 views

Date value retrieved from an item keep on increasing every few seconds

I was trying to retrieve items from a SharePoint custom list called "Some Events" using JSOM. Title, Venue, EventDate were few fields I was retrieving. Every thing worked fine except EventDate. ...
0
votes
2answers
266 views

Getting an ItemCount with filtering in SP2013 using REST api

I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items ...
1
vote
1answer
88 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
1answer
19 views

Check Child Items When Parent Status Column Is Changed

What is a good strategy to prevent a change on a parent item in a SharePoint 2010 list if a related child item (i.e. the child of the parent) column is set to open? For example, I don't want to allow ...
0
votes
2answers
57 views

Redirect at the end of event itemupdated

I'd like to know if there are a way to make a redirection in an event receiver of a list itemUpdated and not updating. I need this because in my event, i create a file in a folder and of a document ...
1
vote
1answer
176 views

Add New List Item With Attachment Via Excel VBA

I have users that have a schedule template in Excel (2010). I'm wondering how I can code via Excel VBA to create a new list item and attach the Excel worksheet they are using that contains the ...
0
votes
2answers
76 views

Unable to cast object of type 'Microsoft.SharePoint.SPListItem' to type 'Microsoft.SharePoint.SPFile

In code below, at mentioned line I am getting this error: How I fix this? SPList docLib = WSweb.GetList(WSweb.ServerRelativeUrl + "/Documents"); //SPList docLib = WSweb.Lists.TryGetList("Documents"); ...
1
vote
2answers
195 views

How to foreach through a list and get distinct values from specific columns C#?

I'm able to loop through a list on sharepoint and get the information I need from selected columns, but how would I loop through a list and get only distinct values from a column in C#. For instance ...
0
votes
2answers
41 views

Sharepoint2013 ctx and Js : Retrieve the value of a field from a list

I'm a totally beginner and totally stuck to a point in my Sharepoint project. What i would like to achieve: part 1 : retrieve the current user's Department's name part 2 : retrieve the department's ...
0
votes
0answers
53 views

is it possible to retrieve the current value in sharepoint list item before save

I have a sharepoint list. On the edit form of list item i have a custom action button to send the mail containg the contents of the list columns . If the user changes any value in a column and then ...
0
votes
0answers
22 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
2answers
67 views

Insert image from ActiveDirectory to SPListItem c#

First of all, I would like to ask question, do I need to insert image to Sharepoint as Image or byte[] array? I have tried both ways to do that. In both cases it returns me ...
0
votes
0answers
51 views

Change selected items order and merge using Javascript

I am now able to get the selected list items and merge its contents. Is there a way to reorder the selected items before merge? Or is there a way to get the items in the order in which they are ...
0
votes
0answers
19 views

How to Insert images and description into a slideshow from SharePoint Back-end

I have a slideshow on the design that I'm converting to SharePoint template. Looking for a way to insert the slideshow's images and description from SharePoint's back-end. Something like a form with a ...
1
vote
1answer
47 views

email data from sharepoint list to specific people

I have a sp 2010 cutom list. Whenever the list gets updated, an email should be sent to some specific people and body of the email should be taken from "messageList" I searched net, most of the ...
0
votes
1answer
82 views

How to get the SPFieldLookup object from a SPListItem

I have an SPListItem from a SPList That contains a Lookup Field. How do I do to get the SPFieldLookup object from this item? I need to get the other fields from this object an not only the title.
0
votes
0answers
10 views

how to use spfile with taxanomies

I am trying to add a file and column data to a list but get this error An exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll but was not handled in user code ...
0
votes
0answers
19 views

Update list B when an update occurs in list A using event receiver

I have a Last A as Master list and List B as Slave List. Slave list is kind of back up list for List A. Whenever we add item to List A, the same item is added to List B, I achieved this action by ...
1
vote
2answers
52 views

Latest unique item from a SP list column

I have a SP2010 list.This list has a choice column. I want to create a view with the unique items(latest one) from this column. How to achieve this?
1
vote
1answer
36 views

SharePoint 2010 keywordQuery

I am using the keyworkQuery class to fetch some items from a Sharepoint 2010 list. I need to fetch also the Attachments for each item how can I do?. I tried: KeywordQuery kw = new ...
1
vote
1answer
32 views

Item Field returning value with hash character in Itemupdate

I am trying to get value of item field from the list. The field is a lookup field with integer value. When I am trying get the value it is coming like 9;#9 (shown below). But I need only 9. ...
0
votes
0answers
94 views

Sharepoint 2010 SPListItem.Tasks returns threw an exception of type 'System.ArgumentException'. What could be the cause?

I am going through a list item and getting each item, then get each workflow task for that item. I am able to retrieve the tasks for some items but not others. One difference I am able to find ...
0
votes
0answers
45 views

Edit item ribbon is unaccessable when on an edit form

When I select to edit an item the entire ribbon for the edit tab becomes unavailable(save, cancel, delete, attach files etc). I have one console error which is as follows: SCRIPT5007: Unable to ...
0
votes
1answer
88 views

Choose (select) person or group from sharepoint list column

Is possible to create a column to populate users and select them using AD group. I know we have person or group column which we can type. But I am looking by selecting from the dropdown list. How to ...
0
votes
1answer
48 views

Assigning a lookup value field, passes through as a blank string

I've currently got a new task list item for a certain content type (DMR) which fails to take through the lookup to the associated list. The statement prints the correct record number in the immediates ...
0
votes
1answer
30 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 ...
0
votes
0answers
37 views

In iPhone & iPad, when submit button in popup form is touched, page refeshes and popup gets close instead of displaying validation message

There is form made in HTML 5 using HTML 5 validations. This form opens in a popup. When i press submit button, pages refereshes and popup gets close instead of displaying validation. This problem ...