Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
1answer
5 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
25 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
28 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
11 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
35 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
32 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
31 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"); ...
0
votes
2answers
91 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
29 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
32 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
20 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
44 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
38 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
15 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
36 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
37 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
8 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
18 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
44 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
28 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
73 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
31 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
54 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
41 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
28 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
30 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 ...
1
vote
2answers
122 views

Basic question: Difference between List.items and List.ItemCount in SharePoint

Just for clarifying, I have written following two lines in Powershell script and see output as: $web = Get-SPWeb http://intranet; $list = $web.GetList("documents"); $items = $list.items; i see ...
0
votes
1answer
29 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 ...
0
votes
1answer
17 views

Delete document but keep meta

I've a document library with a lot of documents. The documents are in an other program and we 'd like remove the document from sharepoint and replaces by a link to the document in the other program. ...
0
votes
1answer
250 views

Get List Item Version History for each item if specific field was changed

I have a list that has versioning turned on. Three of the fields are multi-line text boxes which have appending turned on. I want to iterate thru each item in the version history and look for ...
1
vote
1answer
90 views

How to check if the workflow can be started on SPListItem?

I have created a custom action for starting the workflow on list item. When user selects the item, an item from ribbon is enabled to start the workflow directly on item. I have created on application ...
1
vote
0answers
28 views

Sharepoint creating poco class from listitem [closed]

Is there a free tool for creating POCO class from list item ?
1
vote
1answer
92 views

How to open SharePoint list row in own HTML page JavaScript?

I have a SharePoint-Hosted app with a survey with textareas and radio buttons. The textareas and radio buttons are connected with columns in a SharePoint list so the user is filling in all boxes and ...
1
vote
2answers
77 views

delete sp.listitem in client object

I've an issue to delete document in a document library. I did not get any exception but document is not getting deleted clientContext.Load(oldItem.File); oldItem.DeleteObject(); oldItem.Update(); ...
1
vote
0answers
38 views

how to add a link in a meta text multiline

I've a document library and inside a column multiline text. I've to set a link to an url. I've tried to set my item with. item["col"] = "<a href='myurl'>link</a>"; Sometime it works ...
0
votes
1answer
63 views

How to import term in TaxonomyHiddenList

As i'm in sharepoint 2010 and in sandbox solution, i can't use taxonomy field. I've created a new term store and i'd like import them in in the list TaxonomyHiddenList Like this, i'll be abble to do ...
0
votes
0answers
7 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
1
vote
0answers
33 views

Sharepoint 2010 Adjusting lists limits to recomendations

I have huge list, which has too much fields of same type (e.g., Date and Time fields limit in list is 8, of that type I have way more). If those those limits are exceeded, list item data will be saved ...
0
votes
0answers
69 views

How to get in a repeater itemtemplate the value of the property of a property, I name it subproperty?

I am using sp 2013. I am creating some visual webpart with a repeater. I have bind some data from a caml query. In these data there are items which have the property "File". Inside "File" there is a ...
0
votes
2answers
1k views

Update people or group field of sharepoint list C# code

I have a console app, it updates people or group field of sharepoint list. If the item["Approver"] value is a user value this app works fine. If the item["Approver"] value is a sharepoint group this ...
0
votes
2answers
466 views

Adding items to SP Folder inside document library

I have a folder inside a document library. Inside this folder I need to check the existence of a sub-folder and then, add a document and another folder to it programmatically. Lets say, my document ...
0
votes
2answers
199 views

REST API: Show each unique item only once while retrieving categories from a list

In my SP2013 environment I've a function which returns items from a list using REST. Let's say it only returns the items' category which is defined in the column "Category". It works just fine. Some ...
0
votes
0answers
16 views

Not able to debug events

I am trying to download file / items when they are uploaded / added by an external application to SharePoint Document library. I am able to debug ItemAdding Event, depending on condition ItemAdded ...
0
votes
2answers
187 views

Cannot update list item properties Server Object Model in context of SP, can update via CSOM

I am trying to update a SPListItem metadata properties after inserting this document into a document library. Fortunately though the CSOM, this is quite easy: private void ...
0
votes
2answers
195 views

item adding event receiver failes to trigger in bulk items inserting

Currently am developing an item adding event in event receiver for a custom list. The list is updated using datasheet view, usually by adding bulk items (ex : 50 items ) to list using datasheet view. ...
2
votes
0answers
75 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
4
votes
4answers
156 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 ...
0
votes
0answers
81 views

How can I return differences between versions and access properties that changed?

i have a list in SharePoint 2010 that has fields "title,count" .one of the fields (count) possible to change. I FROCE TO USE CSOM CLIENT SIDE OBJECT MODEL ... NO SHAREPOINT.DLL BUT ...
1
vote
4answers
223 views

Give permission to List item in Document Library

I want to restrict users to view list items which are not created by them. Example: If I create a list item in a document library, Only I can view it, others should not see that information) Is ...