Tagged Questions
2
votes
1answer
54 views
restore default incoming email settings
I wrote an email event receiver for a list, which overrode the default incoming email settings (I now only have an option to turn it on/off and set the email, and the rest is expected to be handled by ...
0
votes
1answer
1k views
Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object
i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error.
i have check on ULS Viewer. error ...
0
votes
1answer
254 views
Event Receiver CancelWithRedirectUrl issue with multiple selected list items
I've got my event receiver (itemdeleting) working almost exactly the way I'd like it to.
Upon certain conditions in the itemdeleting event, I am setting the status to CancelWithRedirectUrl and ...
0
votes
1answer
254 views
List Onload event
What I want to do:
I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
1
vote
3answers
175 views
Is it possible to add something to a list without trigging the ItemAdded event
I have a situation where I don't want to trigger the ItemAdded event if an item is added to a list via a workflow. Is it possible not to trigger this event?
0
votes
3answers
645 views
ItemAdding getting the file name of a document
I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
1
vote
3answers
1k views
Redirect from ItemAdded event
I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box.
...
0
votes
2answers
292 views
deploy a list with specific item-level permissions in ListAdded event receiver method
I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission.
To further ...
0
votes
3answers
898 views
Debugging sandboxed ItemUpdated event receiver - breakpoints not hit
I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
1
vote
3answers
519 views
Locked Row in database for key on Infopath Submission for Contribute Permission + below w/ Custom Event Reciever (ItemUpdating)
Basic Rundown of Process: I am creating a Process wherein an InfoPath form is Submitted to a Library, certain managers will then have the ability to change a drop-down to either Approved or Rejected, ...
0
votes
2answers
2k views
ItemAdding event not firing when submitting InfoPath form to form library
I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting.
ItemUpdating and ItemDeleting work as expected when debugging, but ...
1
vote
1answer
1k views
response redirect in event handler
I try to redirect user after edit a list to another page in site. So I write this code at the end of my item_updated list handler
Response.Redirect("http://www.somewhere.com");
I pretty sure that ...
0
votes
1answer
1k views
creating event handler feature - OnDeleting
I'm trying to create a sandboxed event handler feature to handle the OnDeleting event of a task list in SharePoint 2010. I followed Microsoft's instructions. When I deploy the event receiver from ...
1
vote
2answers
269 views
OnQuickLaunch property in ListAdded
For an event receiver, I want to execute some custom code when a list is added to my site. I want to use the OnQuickLaunch property of the list, but that doesn't seem to correspond to the "show on ...
1
vote
2answers
384 views
Stop SPFieldMultiLineText from updating when not changed
I have a list with the requirement to keep a history of a frequently updated multi-line status. Additional requirements are to not show history on New and Edit forms and Views, but to show the ...
4
votes
4answers
653 views
Web Template - Receivers Not Firing
I have a custom web template used to provision site collections that activates features with onet.xml and is deployed as a farm solution. I've tried both feature receivers and event receivers (on ...
1
vote
1answer
120 views
Best way to clean up production Site ListItem Versioning
I realized a minor flaw in my event receivers for a List with versioning enabled. I used the ListItem.Update() instead of ListItem.SystemUpdate(). In addition I did not use This.EventFire = false. ...
4
votes
3answers
5k views
How can I detect whether a specific column changed in an SPItemEventReceiver.ItemUpdated event (SP 2010)?
I've got some code I need to run in an ItemUpdated event receiver method, but only if the value in specific column changed during the update.
My initial thought is to also implement some code to grab ...
0
votes
1answer
732 views
Custom Alert Notification IAlertNotifyHandler Handler not firing
I'm trying to create a custom Alert Notification handler that implements IAlertNotifyHandler to intercept immediate alerts generated by changed to publishing pages.
I've followed this guide, and also ...
