Tagged Questions
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
2answers
52 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
1answer
17 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
52 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 ...
1
vote
1answer
93 views
What is the difference? (Checked out files)
I am in the process of writing a powershell script to work with checked out files and I stumpled on this article: Find All Checked Out Files
My question is what is the difference between the two ...
0
votes
2answers
83 views
Adding extension methods to SharePoint types
Heads up, this is very much a beginner question.
My SharePoint experience is primarily with working with SharePoint designer and powershell.
I've never touched Visual Studio or anything to use custom ...
0
votes
1answer
209 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 ...
1
vote
1answer
341 views
Set data to Sharepoint Gridview from List and remove appropriate selected columns
I am using c# and I have a SPList with fields such Title and Translation. I want to set Word and Translation into SPGridview.
I can retrieve data from my List:
string translation = ...
2
votes
1answer
301 views
Parse pasted images from Outlook emails as attachments in Sharepoint list
I have a Sharepoint list with incoming email enabled, and an email event receiver to create items out of incoming emails. Once an email is received, it sends an email back to the sender with the ...
4
votes
0answers
74 views
Can you add comments to an append-only field in a list in Sharepoint 2010 using C#? [duplicate]
Possible Duplicate:
Can you programmatically add comments to an append-only comment field in a custom item list using C#?
Posted on stack exchange first, then I found this Sharepoint ...
2
votes
2answers
443 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
191 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
99 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 ...
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
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 ...
3
votes
1answer
203 views
Caching SPListItems with Permissions
I have a versioned list that I need to cache list items for.
The effect of which being:
If a user has permission to view non published items the cache can return the item pending approval.
...
1
vote
0answers
111 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. ...
4
votes
3answers
2k views
How to get SP.Folder for SP.ListItem in SharePoint 2010 JavaScript Client Object Model?
I have a custom button on ribbon for document library and need to disable it if current SPListItem is an empty folder.
To disable button I use EnabledScript attribute of CommandUIHandler. I can get ...
1
vote
2answers
335 views
ListItem Versioning Differences
Does anyone know how to programmatically determine if any non-system fields have changed between ListItem versions? I realize that I could iterate through the fields between each version and if I see ...
1
vote
6answers
2k 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 ...