Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
1answer
880 views

selected SPListItem in the current list

how to get the selected SPListItems in the current SPList ? I thought I would find a helping property like this: SPListItemCollection mySelectedItems = ...
0
votes
1answer
330 views

SPFieldCollection TryGetFieldByStaticName bug?

I had expected that if TryGetFieldByStaticName succeeds and returns a value, there would be an SPField in the item that has a static name equal to what I used in the TryGet... call, but no? I.e. can ...
0
votes
2answers
5k views

add value to text field in list with ItemAdded event receiver

i have a textfield in a list, that i want to fill with custom text when a item is being added. nothing happens when i try to debug it, the breakpoint in the method is never reached. Please can ...
0
votes
2answers
1k views

Move Existing SPListItem to an Existing SPFolder?

Is there a way to programmatically move an existing list item (SPListItem) to a folder or do I need to make a new item that is a duplicate of the list item in the folder in question and then delete ...
0
votes
1answer
277 views

DataformwebPart outside of List folder and ListItemID from another Query string parameter not working

I've tested this before, but I can't seem to get it to work again. I've got a Doc library with webpart pages. Create a new page and in SPD add a CustomListForm to a custom list in display mode. I ...
0
votes
3answers
1k views

Is it possible to determine if a given URL represents an SPListItem?

I am wondering if there is some sort of way to check a URL to see if it represents a list item before calling SPWeb.GetListItem that I haven't found. I have code that needs to retrieve a list item ...
0
votes
1answer
159 views

Pass an SPListItem into an external web service as a parameter?

Can you pass an SPListItem object as a parameter into a custom [WebMethod] deployed into SharePoint? I understand that it would be essentially disconnected from the the SharePoint context if it was, ...
0
votes
2answers
906 views

How to copy a Lookup field to another lookup field on another list?

I have this script which creates a new site (SPWeb), which is based on a template. I will the copy the data from the main list into the new list on the new site. Both list is based on the same ...
0
votes
2answers
580 views

Retrieve selected list item title

Is there a way to retrieve the selected list item title/name? For example if I click an item say "Distributor" in custom list, how can I get this title in a string or variable?
0
votes
1answer
3k views

Adding List Item Programmatically

I am working in SharePoint 2010.I am dynamically creating a list on FeatureActivation event. My list has following columns Title : Text , VisibleTo: User/People, Menu : Choice, Type : Choice. ...
0
votes
1answer
350 views

SharePoint OM wont' read item property

I have a list item with one field Classes which is a multiple choice lookup. I want to implement an ASPX page which contains a ListBox which is filled with values from the Classes field. The following ...
0
votes
2answers
2k views

How to get value from TexonomyField in Sequentail Workflow for Document Library?

I am create Sequential Workflow for document library in Visual Studio 2010 and also create Meta Data Column Field which field name is TexonomyType. first ways i get TexonomyField like this: ...
0
votes
1answer
1k views

Looking for a way to replace the File in an SPListItem

I have implemented a system for publishing documents from a document library to a Document Centre. This uses a Send To Connection set up with the "Move and leave a link" option. When this is used the ...
0
votes
1answer
2k views

Automate exporting SharePoint list 2010 items to Excel 2010

I found this Import Sharepoint List into Excel Using VBA Only that people have been successfully using to automate the exporting SharePoint 2010 list items to Excel 2010. Currently I m also using web ...
0
votes
2answers
4k views

How to get an SPListItem from a Search Query Programmatically

I'm querying my Search Server and getting some results... How can i get the SPListItem linked to that object? I tried with many ways, but every method fails.. Here's my code: string ...
0
votes
1answer
1k views

How to execute code for custom menu action?

I have a custom menu action, declared like this: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="ConvertListLevel" ...
0
votes
3answers
1k views

Sharepoint 2007 - Multiple Lines Text Size

I am using SharePoint List to capture values from the form. How many characters does multiple lines text field supports in sharepoint custom list? It asks me how many lines, while creating the ...
0
votes
1answer
1k views

get discussion message url

I have an own UI for discussion messages. The issue is the Url of the actual SPListItem doesn't help: SPListItem message = //get message var url = message.Url; //returns "/Lists/forum/hello/2.000" ...
0
votes
1answer
944 views

Microsoft.SharePoint.SPException: The security validation for this page is invalid

I used SharePoint Designer 2007 to make a Workflow that copy item of Calendar list to Contact list when I create a new item. Then I run my code that new item in Calendar list. Unfortunately, I get a ...
0
votes
1answer
33 views

SSOM Embed Code when inserting list item

Clicking this button in the list's ribbon, I can properly embed HTML so SharePoint doesn't strip anything out. I have some HTML that I need to insert into a list item field via C# code. How do I ...
0
votes
0answers
10 views

CSOM timeout when attaching file to list item

I am attaching files to list items and encounter the following error message: The operation has timed out. Looking at the files that throw this exception, I see that they range in size from ~7MB to ...
0
votes
0answers
6 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 ...
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
0answers
15 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 ...
0
votes
1answer
17 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
19 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
45 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
66 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
37 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 ...
0
votes
1answer
18 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 ...
0
votes
1answer
181 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
18 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
475 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 ...
0
votes
2answers
49 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
57 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
23 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
73 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
64 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
21 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 ...
0
votes
1answer
100 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
12 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 ...
0
votes
0answers
100 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
46 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
110 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
54 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 ...
0
votes
1answer
32 views

Change Document content type by link to document

I've a document library and i've to delete document to replace it by a link to an external url. So i thinked to add a content type "link to document" Make a script client to change content type of my ...