Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
0answers
935 views

List ItemUpdated Event not firing when updating item from code

I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
1
vote
0answers
228 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
1
vote
1answer
123 views

How to push a specific SPListItem through a workflow with code?

I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked). Currently, I have an event receiver hooked ...
1
vote
0answers
132 views

SPListItem: get associated eml file

I have a discussion board set up with an email drop folder. Once an .eml file is copied into the drop folder, it would disappear and the new discussion/message would be added to my discussion board. ...
1
vote
0answers
483 views

Problem with Refresh button on External data column

I'm struggling with refreshing items on list with external data. So far I have been able to make the refresh button work, but only when I add items to list in a standard way (via browser). When I add ...
1
vote
0answers
373 views

Sharepoint - Programatically check Project Task list hierarchy

I have a Project Task list in Sharepoint that contains Summary Tasks, which contain Tasks. What I would like to do, is to check which task items of this list are children elements of which summary ...
0
votes
3answers
2k views

Better way to get a SPListItem by Field

I want to get a SPListItem from a SPList where a field match a value. I have to ways to do it, CAML and LINQ. My code is: LINQ ... SPList list = Web.Lists["MyList"]; SPListItem item = (from ...
0
votes
4answers
413 views

Object ref not set to instance of object in SPListItem extension method

I am attempting to write an extension method for the SPListItem type to ease the pain of getting SPUserValues as strings. I am getting an "Object reference not set to an instance of an object" ...
0
votes
3answers
4k views

How to retrieve File version from SPListItem

I'm trying to get file versions from an an SPListItem... I tried in many way, looping on SPListItem.Versions or SPListItem.File.Versions, tring to return my byte stream.. I can retrieve file info's, ...
0
votes
3answers
1k views

ArgumentException with Export-SPWeb Lists

PS C:\Users\Administrator> Export-SPWeb "http://win-oql2facn6h8/" -itemurl "List s/Disney" -path "c:\Backups\disney.cmp" Export-SPWeb : ...
0
votes
4answers
155 views

Need to have a default word document inside a new item form for every list item

I Have a requirement for having a word document in each and every list item that i create. Suppose i click on new item in sharepoint list, the new item form must contain an embedded word document by ...
0
votes
3answers
45 views

Good solution for individual list for each user in the intranet?

I want to display items on webpart that the user have created and also can delete the items. Whats a good solution for this? I was thinkin of creating a regular list that contains all of the items and ...
0
votes
1answer
157 views

Programmatically adding a sequence number to the 'Title' column during item creation in SP List

As per the title above, I have a list that stores IT support requests. I need a sequence number that matches with the item ID and I want to add this sequence number to the Title of the request. I ...
0
votes
2answers
485 views

The impact of BreakRoleInheritance()

I call BreakRoleInheritance on a document (the actual list item) in order to assign someone of less permissions the 'contribute' rights to that particular item. In doing that, have I 'broke' the ...
0
votes
6answers
3k views

Value does not fall within the expected range. But the field exist

I have the following problem. I have a list with a custom content type, when programmatically I want get an information from my SPListItem I get the following exception: Value does not fall within the ...
0
votes
1answer
23 views

get value from splistitem

I'm face to a strange issue. I get an splistitem with a caml query ->that's ok and validated with caml query builder. After that, i'm try to get the title or any other meta of the item. Here is how ...
0
votes
1answer
27 views

Where does a list item go when it is deleted using Server Object Model?

Assumptions: I have a custom SharePoint list with 2 items in it. In one case i delete one item from the list manually and check the recycle bin,here i find the deleted item. Now in the second case i ...
0
votes
1answer
1k views

How do I update a list item using REST and Data.js?

I want to write a simple SP hosted app that edits a single list item in a list in the app web. Getting the list item collection is fine. Then I want to pass the result to a function that changes the ...
0
votes
2answers
340 views

Update Editor (Modified by) for publising pages

I am trying to create about 1000 publishing pages using powershell. The powershell script reads data from a xml file. I have to update Modified By field for all newly created pages. I have used ...
0
votes
5answers
1k views

Unable to get values in Item Added event receiver

I have created an event receiver which will be executing after the item is added to the list. I want to make the sub site based on the values entered in the list. My event receiver code is: ...
0
votes
2answers
499 views

Save conflict when trying to update a listitem

In my SPItemEventReceiver I have two methods one ItemCheckedOut and one ItemUpdated. In the ItemCheckedOut I update one listitem column. In the other one I do some other updates to the listitem. ...
0
votes
2answers
110 views

How to Upload Documents using Visual Fox Pro

We have an application written in foxpro, part of the application is creating reports (basically excel and pdf files), i would like to add the capability of uploading those files to a sharepoint list, ...
0
votes
2answers
197 views

add SPListItem with more than one field of data

I want to add an item to a SharePoint task list, with data in the Title, AssignedTo, and Status columns. The code below adds the item with data in the Title column, but no data in the other columns. ...
0
votes
1answer
295 views

Proper way to evaluate/get status of boolean field when looping through SP List with code

What is the best way to do this when looping a list? I have tried to evaluate it with something like this but it wont let me evaluate bool as an "if" condition if (item["ShowTitle"] == true) //do ...
0
votes
1answer
239 views

Double value in URL from SPListItemCollection result

I have a basic list which I am using to generate a "Quick Links" menu WebPart. It looks ok but for some reason the URL field (of URL type) when rendered renders html that looks like this: <a ...
0
votes
1answer
306 views

How to change file in sharepoint library?

I have sharepoint documents library and I have wcf service from where i should download new version of document file on button click. So i got next method: public void UpdateFile(SPListItem ...
0
votes
1answer
1k views

How do I use a variable in CAML query to send approriate email

I have created two list. One is "Storage" the other is "Approvers" I am able to retrieve all values in the column 'System' in the "Storage" list by iterating through the column list, like so and ...
0
votes
3answers
2k views

Get Sharepoint data synchronously with JavaScript

I was wondering is there some way to get list items form SharePoint with JS synchronously. All methods I've found required to specify a callback method. As I am building a custom JS validation for ...
0
votes
1answer
644 views

Best way to check if SPListItem have been publish, on an ItemUpdate EventReceiver

I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate. Everytime an SPListItem is publish I want to execute my code. (Required check out and Content approval are ...
0
votes
1answer
306 views

Do you need to use the {} brackets when grabbing an field by the GUID

When trying to grab a field by guid, do you need to surround the guid with {}? E.g. field["{xxx343-xx-324-xxx}"] or field["xxx343-xx-324-xxx"]
0
votes
1answer
616 views

Is there a property to get all subitems/subfolders from a SPListItem?

I need to find out how many subitems and subfolders a SPListItem has. The fields ItemChildCount and FolderChildCount are no solution for me, because they only count the folder/item directly beneath ...
0
votes
1answer
218 views

SharePoint 2010 - Read list item from Central Adminstrator list

I have created list (say List1) on Central Administration Site. I would like to read the title value from that list programmatically. How can I do it? I don't want to hard code the URL of central ...
0
votes
2answers
3k views

Need Help - How to update listitem of type User in sharepoint 2010?

I am trying to update a list which is having User content type field, where I am saving users name selected from people picker. Now my requirement is to add/remove a particular person in that list ...
0
votes
3answers
50 views

OfType<SPListItem>() says SPListItemCollection does not contain a definition for OfType()

I'm using Linq to SharePoint rather than CAML to query list data from SharePoint. See the code I have written: SPList productsList = SPContext.Current.Web.Lists["Products"]; ...
0
votes
2answers
44 views

Redirect after deleting a list item

I have a requirement wherein I have to redirect the user to the homepage, after a list item is deleted. Right now, the corresponding list is shown after the deletion. How can I accomplish this? I ...
0
votes
2answers
61 views

Load more list items on scroll

I am showing the first 5 list items on the page (in one div). Div has vertical scroll bar. I want to show the remaining 5 items on when scroll goes down end. I am using CSOM to fetch list items. Any ...
0
votes
3answers
63 views

Print / display list items on page

I am using SP2010. Using client object model in the CEWP (Content Editor Web Part), I can give alert for each item title. But I want to print all list items on the page. I tried with document.write() ...
0
votes
1answer
22 views

Workflow queueing

I have a large list that needs to have every item in it updated nightly, with several fields recalculated and so forth. Currently it is updated en masse overnight by an application I wrote that is ...
0
votes
1answer
156 views

Unable to set TaxonomyFieldValueCollection to SPListItem

I have a taxonomy field which is muti-allow. I have placed a taxonomy picker control in the application page and the values which are entered in that control are to be set in the list. My code is as ...
0
votes
1answer
2k views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...
0
votes
2answers
96 views

Getting Item and value from list by Specific Data

I would like getting a specific item from a specific list but i don't have ID, just a field (column) value. Here's my list: On the site, i have only the name...i'd like to recover the paid leave ...
0
votes
1answer
88 views

Add additional user information to SPList as list column

I have a List Tickets with a field Client. This is a user from our AD and displays the name of the user. We now need to display the country and the location the user resides in to additional fields. ...
0
votes
1answer
1k views

How to read managed metadata value from SPListItem

I have a list in which there is one column which stores the Employee Department and it is of type Taxonomy field and it is stored in the user profile property. I want to get the display value of that ...
0
votes
1answer
642 views

The field you are trying to update may be read only error while adding item to list programmatically

I am adding a list item in from an application page which is redirected from web part page. My code is : protected void Page_Load(object sender, EventArgs e) { SPSite site = new ...
0
votes
2answers
488 views

ItemEventReceiver - ItemDeleting not working with a document library and referencing list

I have a custom list that has a GUID column which refers to the UniqueId of a document in a document library. Every time I upload a document, it should add an entry in this list and populate the ...
0
votes
1answer
177 views

Getting the properties of an item through web services

Is it possible to get the SPListItem.Properties property of an item through one of the out-of-the-box API web services in SP 2013?
0
votes
1answer
87 views

Best way to update 200 items on a list [closed]

Situation in a VS2010/SP2010 site: List A with main items List B with subitems, having a lookup column that points to List A ID There are about 200 subitems for each item The Page where users edit ...
0
votes
2answers
293 views

Inserting new list items into SQL

When I add new item into the list, I have to insert the items into the SQL database. How can I do it? Any clue is good for me.
0
votes
2answers
311 views

Populate list item from XML feed

How to create new list item using data from XML feed? Is it possible to handle multi line of text in XML feed?
0
votes
2answers
315 views

How to call a c# method in my XSL File

I have two lists Client and Project, each Client has from 0 to N Project stocked in his SPLookupField where multi values are allowed. And I created a new computed Column in the Client List where it ...