Event handlers is a program statement which is called from an event. The event can be a human striking a key on the keyboard or pushing a button on a web page

learn more… | top users | synonyms (1)

1
vote
2answers
991 views

How do I obtain the SPWorkflow object in the event receiver?

I have a workflow event receiver which is handling the WorkflowStarted and WorkflowCompleted events. I need to obtain references to the workflow list item and the workflow object to do some additional ...
1
vote
4answers
1k 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, ...
1
vote
1answer
2k 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 ...
1
vote
2answers
865 views

FeatureInstalled event receiver acessubg spweb

I am trying to add a propertie to a WebAplication on FeatureInstalled event receiver. public override void FeatureInstalled(SPFeatureReceiverProperties properties) { ...
1
vote
1answer
81 views

Sharepoint Foundation 2010 events

I have an installation of sharepoint foundation. I was wondering if I can catch the event where a folder is created in a document library to do some more actions in sharepoint foundation. Can I follow ...
1
vote
2answers
76 views

What is the recommended way of giving one Sharepoint user control over deletion of list items?

I have many (29) Sharepoint calendars, each with a separate owner. I would like to have anyone able to book an appointment in these calendars, but for deletion to be handled only by the calendar ...
1
vote
1answer
141 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. ...
1
vote
1answer
231 views

WebDeleting Event for New Sites created ? ?

I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted". ...
1
vote
1answer
719 views

Custom Field Control with TreeView with EventHandler issues

I have got a Custom Field Control in SP2007 (inheriting BaseFieldControl) with an ASP.NET TreeView control in the ascx. This works fine with checkboxes enabled so Users can select from the tree. But ...
1
vote
1answer
223 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
1
vote
4answers
2k views

Can we use SPUtility.Redirect with Item Added event handler

I want to redirect using to another page after item added, main point is to redirect user to another page on item adding(item should be added first) or item added. EDIT class ClassName: ...
1
vote
1answer
372 views

perform action on incoming mail

I need to perform simple decoding of .eml files and adding some contents from it to a list. I have already written the .eml decoding part and adding stuff from it to list, but i need to tell ...
1
vote
1answer
419 views

SPJobDefinition Execute Method isn't overriding

I built a custom Timer Job on activation I was able to debug it and it was going through Execute method I am overriding but suddenly its not overriding anymore. Code is here: public class ...
1
vote
3answers
2k 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. ...
1
vote
2answers
461 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
702 views

SharePoint 404 not found when canceling an item event

I have a SharePoint 2007 list with an event receiver, its logic is very simple: public override void ItemDeleting(SPItemEventProperties properties) { //Base event ...
1
vote
1answer
82 views

How to add XML file with event reciver

I am creating a event reciver for the list, for that i need to get some data from XML file. currently i have placed the xml file in my local system. Actually where do i need to add the xml file. Is ...
1
vote
2answers
1k views

Move a document from one library to another library using event receiver

Suppose one document is uploaded to the Shared Document library, I need to move the document to an other library say List. There I have to create a folder with the document name and needs to place the ...
1
vote
3answers
360 views

how can i know Items in Tasks list viewed by user(something like “Last Viewed” and “Last Viewed By”)?

for every list-item in Lists we have two columns or fields by the name of "Modified" and "Modified By". you got the idea, i wanna have two columns or fields for Tasks List by the name of "Viewed" and ...
1
vote
1answer
505 views

When/If/Where to call base event receivers

My questions are: Is it always necessary to call the parent (base) event receiver, assuming the event is to proceed to completion? I've recently learned that the base version cannot be called in ...
1
vote
2answers
881 views

How to order a group of web parts added dynamically?

Preface: I did not come up with this implementation, just dealing with it. I have a web part zone that gets 3 content editor web parts loaded into it dynamically through the feature receiver. The ...
1
vote
2answers
297 views

Debugging SP2007 Event Receiver in Visual Studio 2005

I am trying to debug an event receiver by attaching to the SP sites w3wp.exe process, however the breakpoints are not being hit, and VS2005 is telling me no symbols have been loaded. The Event ...
1
vote
3answers
3k views

Linkbutton onclick not working in a Visual Webpart

Im having issues with the onClick event on LinkButtons (possibly all controls) not working, in a Visual Webpart I am writing for SP2010. Simple example of what i am doing: public partial class ...
1
vote
2answers
2k views

How to deploy a sandboxed Event Receiver to SharePoint 2010 Foundation?

I am working on a test environment where is installed Windows Server 2008 R2, SharePoint Foundation 2010 and Visual Studio 2010. I have developed and debugged a new Event Receiver for a Document List ...
1
vote
2answers
928 views

Attaching an Event Handler to only one content type or list

Could someone help and explain how I can attach an event handler on a custom content type or a particular list? Currently, when I deploy my event handler as a feature and activate the feature, it is ...
1
vote
1answer
682 views

How do I create an event listener without using a feature?

I want to create an event listener for SharePoint. I need to do that without using a feature. Any ideas?
1
vote
3answers
22 views

ItemUpdated Event Handler after list item is Liked

I have a document library that upon an item being liked (updated) it adds an entry in to another list. Everything works fine except the new list item is being created by the System Account instead of ...
1
vote
2answers
49 views

How to get LookupValue in ItemUpdating

I have a custom EventHandler for ItemUpdating on a list which has a Lookup column. If I look in the properties.AfterProperties for the column in the ItemUpdating event I get the LookupId value but ...
1
vote
2answers
357 views

Change displayname of a List with event receiver

I need to change the displayname of a list using "ItemUpdating". The source of the new name is the "Title"-field of the item which fires the event. Is this possible? I tried it with: if ...
1
vote
1answer
463 views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
1
vote
1answer
117 views

Access a Sharepoint site from event handler

my problem is that I want to pop up a status bar in SP2010 after a File was uploaded via a single uploadform to a List. Found this in the net: ...
1
vote
2answers
385 views

Respond to survey button “Code Behind” Survey list

When any user clicks on "Responds to Survey" button/link I want to perform some operation using code behind but can't figure out how can I do it or which event handler can be used.
1
vote
2answers
1k views

How to deploy C# event receiver as a farm solution

I have a C# event receiver that utilizes the ItemUpdating event. The project was originally created as a Sandboxed solution and worked fine, however, due to limitations I've decided to switch over to ...
1
vote
2answers
210 views

SharePoint session events

I'm writing SharePoint webparts that are communicating with external system. Currently, on each request, a connection with system is made, user is authenticated and session is established - than ...
1
vote
1answer
209 views

Item Adding and Item Updating triggers on Item Add to list

my list triggers item added and then item updated when I add a list item, but then when i add list item it takes me to update item form, where it asks me to update item details, so if i click next, ...
1
vote
2answers
436 views

How to implement 'on document property update' logic?

I need a functionality in which something happens after the properties of a document in document library get updated. I need some kind of event to fire after the user clicks Save button in edit form. ...
1
vote
2answers
727 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 ...
1
vote
2answers
1k views

Cannot hit breakpoint for document library event receiver

Solution follows, I solved this problem: Good thing I figured out the issue after I've now wasted at least 6 hours debugging this issue. Turns out there's no VS bug, the only bug is that I am an ...
1
vote
1answer
1k views

Event receiver (type documents) fires for almost everything, including new usergroups, new sites etc

I have created an event receiver with the "documents" as templateid (101). <Receivers ListTemplateId ="101"> When I upload a document, the event gets fired. So no problem here. However the ...
1
vote
1answer
129 views

alternate access mappings and list event handlers

I have a tricky problem with list event handlers (item checking in).. I deployed a site level feature with itemcheckingin event for sharepoint 2010. If I access the sharepoint site using the url's ...
1
vote
1answer
106 views

Disable Web-scoped features on Web deletion

I have a SPWeb ( http://example.com/site ), created used a custom web template, with several features activated on its scope. When I delete the SPWeb it would be desirable that all the features ...
1
vote
1answer
906 views

How to make jQuery AJAX request with a HTTP Handler in SP10?

I'm developing a SP 2010 Visual Web Part that needs to load some data via AJAX. I found this very helpful article but I'm having some doubts about it. I have the Visual Web Part project, inside I ...
1
vote
2answers
386 views

BCS Security Access Using Secure Store in code question

I have Secure Store and also Kerberos setup on my development and production farms. I am using Event Receivers to access BCS data. I have verified that if I simply impersonate a user that has access ...
1
vote
1answer
525 views

Item Adding throws server error in '/' application

Here is my code. It works but also throws following error. public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); if (ValidFile(properties) == false) ...
1
vote
4answers
613 views

itemAdded event handler or javascript when a file size greater than 1MB

Easiest way to implement the 1mb limitation on file upload. Do I use event handler to take care of this or javascript? I can have the event handler ready as I have messed with it before. It is better ...
1
vote
1answer
120 views

Manifest file for registration of event handler in SP 2007

I'm trying to create a feature to register my event handler to a specific list. I'm building it like I would a normal feature. However, I'm not sure how to define my Elements file. The file for my ...
1
vote
2answers
575 views

Inside folder files are getting deleted in Sharepoint 2010

In a Document library I have a content type say "ABC" and I have added an eventhandler to it. I have itemdeleting so that user can not delete file for specific reason. Problem comes when user makes a ...
1
vote
1answer
425 views

Accessing Lookup Values fails with Exception when the connected user is not the SharePoint Site Collection administrator

In sharepoint 2010 Foundation, after we installed a simple event receiver that mainly runs when certain items are added/modified, we noticed, during manual testing, that if we logged in as a user ...
1
vote
1answer
485 views

“Cannot add file”-error when working with document library programmatically

I have two libraries, one with forms(xml) and one with a custom document content type. I have an event receiver ItemUpdated on the form library, which interprets the added/modified form, and creates ...
1
vote
1answer
1k views

Sharepoint 2010 Item Opened Event Receiver

I need to detect when a user opens a document in a specified list, and log their view in another list, however I see no method in SPItemEventReceiver for detecting such an event: ...