Representation of a list item within the SharePoint API.
0
votes
1answer
2k 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
214 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
797 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
596 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
1k 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
701 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
2answers
677 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
1answer
633 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
548 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
0answers
14 views
Retrieving the SPLookupFieldCollection with particular ID's
The situation is following:
I have this kind of string = 58;#value;#59;#value2;#60;#value3;....
So as you see this is just if i do:
SPFieldLookupValueCollection collection= new ...
0
votes
0answers
14 views
OnWorkflowItemChanged fire multiple times
I have been using a State Machine workflow (SharePoint 2010).
Workflow design
Main State:
The Main State does not update the item.
The Main State contains a OnWorkflowItemChanged.
When the item ...
0
votes
0answers
33 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
60 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
1answer
16 views
MOSS 2007 stripping out URL in SPListItem
We have a SharePoint List with a multi-line text column. In this column we have HTML code. When I retrieve the column in an SPListItem, the url is often stripped from the string.
If the SharePoint ...
0
votes
1answer
20 views
Dates and times in Properties vs Fields
I'm trying to roll my own archiver for SharePoint. I always try to let the underlying object serialize itself. Only when it fails do I try to use .ToString(). Anyway, while inspecting the Properties ...
0
votes
0answers
22 views
File in document library is missing SPListItem
I have a "Master Page Gallery" where I can get some files using myList.RootFolder.Files but they do not exisit in myList.GetItems()
Using powershell I have found the file has all valid data but no ...
0
votes
1answer
19 views
Set SPBuiltInFieldId.WorkflowInstanceID value
I start worklfow programmaticaly on SPListItem (custom ContentType).
When i try to save all fields but "WorkflowInstanceID", its ok. But,
item[SPBuiltInFieldId.WorkflowInstanceID] = ...
0
votes
2answers
54 views
How to display list item attachment to a user without permissions on the list
I have sharepoint list/library. Only admin user has permission on this list. Now i want to display attachment to all authenticated user in my custom web part. How can i achieve this functionality.? ...
0
votes
0answers
30 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?
0
votes
0answers
168 views
Updating SPListItem with all values in SPFieldLookupValueCollection
Hi I have a custom field from base type SPFieldLookup.
I am retrieving taxonomy fields from a another list and updating the current list items.
This works fine with single lookup values.
I am trying ...
0
votes
2answers
279 views
Sharepoint 2007 Powershell: $item.update() gives error that file has been modified
I am trying to programmatically update some metadata for a sharepoint item using powershell. Here is my code:
$web = getWebByURL("http://test-site/spadmin/")
$itm = $web.lists["Documents"].items[0]
...
0
votes
1answer
70 views
where i can find trace for item.systemupdate()
I am working on a project which was initially developed by someone else. few of my list items are getting updated but i am not getting anything in version history. I believe that some schedule job is ...
0
votes
1answer
210 views
Update custom property on listItem using -replace in powershell?
I have two different web application with one site collection each. One Site collection is privat and the other on is public inside the intranet. The public site links to the private site which link ...
0
votes
1answer
281 views
The SPListItem provided is not compatible with a Publishing Page
Whenever I try to save og check in mmy Home.aspx pagelayout welcome page I get
Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.
And this:
...
0
votes
2answers
343 views
Setting value for Taxonomy field produces Value does not fall within the expected range
I have a custom ASPX page where the user inputs data and clicks Save to add new item to the list. The field My Department is a Managed Metadata field (single choice). The user sets the value for this ...
0
votes
1answer
565 views
How to get Attachment URL Programatically From Sharepoint ListItem?
How to get Attachment Full URL Programatically From Sharepoint ListItem?
Explanation:
I have adding new item with attachment.
Now i have to bind that attachment link to grid.
When click on that link ...
0
votes
1answer
134 views
Parsing SPListItem is slower than parsing DataRow
I use a SPQuery to get a list of 100 items. I then loop round the list and get the values of the SPListItem
e.g. string name = mySPListItem["Name"].ToString(); (VERY SLOW)
This runs a lot slower ...
0
votes
0answers
87 views
Javascript and DateTime Field
I need to insert a new date in update in a my field.
There's some issus that is better that I know?
0
votes
3answers
903 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
3answers
197 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 ...
0
votes
1answer
135 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
1answer
127 views
Sharepoint List Event raised when a current view is changed
Is there a event which is raised when current view of a SharePoint list is changed. For example the current view displays all items in the list and now the user selects a different view say Added by ...
0
votes
1answer
137 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
...
0
votes
0answers
52 views
Possible to have multiple rating controls for multiple items on one page?
On my page I have a repeater - and I have a list of documents (list items) bound to this repeater. For each item bound, I would like to include to the OOTB SharePoint rating control. And, obviously, ...
0
votes
2answers
316 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
174 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
2answers
467 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
0answers
40 views
Submit data into repeating table in infopath to a sharepoint list [duplicate]
Possible Duplicate:
How to submit data from repeatable table in infopath form to a sharepoint list?
I am trying to solve this problem of pulling data into a repeating table, then having the ...
0
votes
1answer
144 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
0answers
336 views
SharePoint 2010 Announcement web part - truncate/char limit issue
There are old threads on this topic but most of them for MOSS or prior versions or without any resolutions. This thread is close but solution doesn't work for me. Feel free to forward any working ...
0
votes
1answer
486 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
0answers
255 views
How can i get item unique id in nintex? [closed]
I created a parent/child related structure using item Unique ID. I store parent item Unique ID in one of the columns of child item so i can find parent item in site collection just using Unique ID.
...
0
votes
1answer
286 views
Change a list item's “Manage Copies” destination URL programmatically
I'm trying to write a PowerShell script that goes through every item in a document library and updates the "Manage Copies" destination URL to a new location.
Is there any way to achieve this ...
0
votes
1answer
864 views
Summary Task in Task List - Display Name
Hello
I have a Task List, and I want to add items to it programaticaly in C#. I have a problem with adding a summary task. Now I figured out how to add such item:
var myList = ...
0
votes
1answer
247 views
Copying a document between libraries breaks QuickParts
I am copying a file between 2 libraries which contain the same fields. So basically the source library serves as a template library. After the file is copied i update the field values in the ...




