Tagged Questions
1
vote
1answer
20 views
Delete List Items Using PowerShells with Date Filtering
I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had
[System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...
2
votes
2answers
57 views
Adding list item when user does not have permissions question
I am trying to programmatically add a list item to a SharePoint list. The code works fine when executed by a user with contribute permissions, but does not work when a user has view only. Funny thing ...
0
votes
2answers
19 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
0answers
35 views
Object refenrece not set to instance of an object - list template items
This may be a duplicate, because this error is pretty common in every part of sharepoint. However, the search function didn't find anything for my particular problem.
To the problem:
I have a List ...
0
votes
2answers
99 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
41 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
0answers
33 views
Access unable to update singular column in SP list
When I try use Access 2007 to update a linked SharePont table, Access tries to update the entire list rather then the column I specify in my query. Anyone else encounter this problem?
4
votes
1answer
956 views
SPList.Add() vs SPList.AddItem() SharePoint 2010
Using some test code i found out that SPList.AddItem() executes slight faster then SPList.Add() - does anyone know why is it so ?
DateTime start = DateTime.Now;
SPList ...
1
vote
1answer
672 views
SharePoint 2010 - get list item from search result
I'm using FullTextSqlQuery to search items on specific list. Query returns results properly. Now I'd like to get SPListItem from search results. As I searched Internet, I found couple of examples, but ...
2
votes
1answer
124 views
How to import one single row of data from excel to one list item in a SharePoint 2010 list?
I have a problem where we want users to attach a file to a new item and the SharePoint list will automatically read on row or column of data (maybe 20 cells-worth of data) and populate some additional ...
0
votes
1answer
121 views
How to delete a specific item from a list
I have writen the following code that should delete some items from a list on the current site, but it must contain some error and it currently doesen't work as expected.
protected void ...
0
votes
3answers
211 views
Change the value of Author field
I am copying over items from one list to another list.
After copying the "Author" field gets populated with "System Account" and so I wish to update some fields in the destination list as follows.
I ...
1
vote
1answer
306 views
Odd and Even list item color
i saw a sharepoint where its list item as a background color (blue) for odd list item number and another (white) for even numbers. I dont know where i can set this.
I looked into designer and i could ...
0
votes
1answer
1k views
How to retrieve all items from a list (with custom fields) by javascript object model
I need to get all my custom fields from my list by Javascript Object Model..
The code I wrote down is this:
var items;
$(document).ready(function () {
...
0
votes
1answer
144 views
How to Get List Values From Sharepoint 2007
I am looking for a way to get list values from SharePoint 2007. Right now I am using PowerShell, and have the following script:
#load Microsoft.SharePoint.dll
...
1
vote
0answers
629 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 ...
2
votes
2answers
463 views
Attach ListItem to TaskItem
I've created a custom approval worfkflow for an listitem. Now I need to see the values of the item in the taskitem. So I think one way would be to attach the ListItem to the TaskItem.
Does anybody ...
1
vote
1answer
192 views
Disable approvement for a single listitem
I am creating a custom list in Visual Studio 2010 for SharePoint 2010.
I want to set "approvement needed" for single listitems to false or disabled.
My intention is, that a element can be approved ...
1
vote
1answer
199 views
Checking if list exists client-side
I'm developing a Silverlight web part and can't use server-side objects like SPList. I normally get items from a list called "Locations" which has two fields - "Title" and "WOEID". The problem is I'd ...
2
votes
1answer
543 views
Updating a SPFieldMultiLineText field
I have an SPListItem. I have a field on the item of type SPFieldMultiLineText. How can update the value of that field?
1
vote
4answers
865 views
Returning a SPListItem in conjunction with RunWithElevatedPrivileges
* *Clarification. Application == Site Definition. Direct Database access is out the window **
I've created an application for SharePoint that utilizes some new approaches to coding List Access. I've ...
1
vote
0answers
210 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
538 views
Getting User details from field “AssignedTo” in a custom List
I have a Custom List, which have different fields, when I click on any user in field "assignedTo" it navigates me to another window and I can see user's Account, Name, email etc.
I am able to get all ...
0
votes
1answer
146 views
Getting Sharepoint Users and comparing them with SPList field
I have a Custom SPList that has a field "Assigned To", now I can add as many items as I want, and they can have same title and same User they are assigned to, but what I want is a script so that I ...
0
votes
2answers
820 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
631 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 ...
2
votes
1answer
880 views
How to read an User field value for a list item
I've got a content type that contains a filed of the type user. When I want to read the ListItem I just get a string containing the users name instead of a object which contains Name, Username, E-Mail ...
1
vote
3answers
920 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 ...
0
votes
2answers
691 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 : ...
7
votes
2answers
461 views
Is it possible to create a “Link to a Document” in a Document Library using a CAML Batch Command with UpdateListItems?
I have a Document Library in WSS 3 which has the "Link to a Document" content type enabled, and I want to use a batch command (via lists.asmx updatelistitems) to create a series of links. Here is the ...
1
vote
2answers
111 views
Modifying ID (index) of listitems
So I ran into a situation where I have two lists containing the same information but in different languages (don't ask me why they chose to do it this way).
Each item links through a workflow-created ...
2
votes
6answers
3k views
ArgumentException when trying to access SPListItem value
I have a tool to update all items in SP (link replacement). The tool works most of the time but sometimes it throws me an ArgumentException ("Value does not fall within the expected range.").
Here is ...

