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
1answer
2k views

ListAdded Event Receiver not Firing for List Instances

I have a List definition in Visual Studio which is instantiated using a List Instance. This list definition has an event receiver which overrides the ListAdded event. I am able to get the ListAdded ...
1
vote
1answer
3k views

SharePoint Document Library Item Level Permissions

Have a document library in MOSS 2007. Item-Level permissions are not surfaced in the default SharePoint UI for Document Libraries, however the WriteSecurity and ReadSecurity properties are available ...
1
vote
1answer
1k views

ItemUpdated firing twice

I am adding custom meta-data to item that user uploaded item["Title"] = "My Title"; item["Column1"] = "column1"; item.Update(); When I comment out the item.Update() then the itemUpdated event does ...
1
vote
1answer
56 views

Automatically Setting the Masterpage in Sharepoint 2013

I am trying to install our custom masterpage (and supporting files) as a feature which would automatically turn on and set the default masterpage to our custom one. When deploying in VS2012, it works ...
1
vote
1answer
23 views

Is there a good way to connect to a SQL Server using Windows authentication from a Sharepoint 2010 event hander?

Inherited some legacy code that makes use of SQL authentication which I want to eliminate. When I tried using Windows auth, the connection seemed to be getting created using ANONYMOUS LOGIN. is there ...
1
vote
0answers
78 views

Notifying a webservice about list update events

I have a custom webservice hosted in SharePoint that caches data from a certain list. It needs to update the cache every time the list is updated. It seems to me there are 3 ways this could happen: ...
1
vote
1answer
285 views

remote event receiver on sharepoint 2013 online does not working

I recently started to develop Sharepoint 2013 to my office 365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should listen ...
1
vote
1answer
106 views

How do I update or add field in a list item so that the value is a space character

I am building an event handler. When items in a library on one server farm are updated or deleted, I take that information and ammend a list that resides on another site. I require that one of the ...
1
vote
0answers
92 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
1answer
137 views

Update existing word document from SharePoint via code

I'd like to insert a line of text into an existing Word document that is stored in a document library. Would this be possible to do through an event or workflow? If so, how would I go about ...
1
vote
2answers
54 views

Event Handler on MenuBar

whats sharepoint renderingtemplate is and how can I use it to add event handler to "Respond to this survey" link button For last couple of days I have been researching on how to add some kind of ...
1
vote
1answer
615 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 ...
1
vote
2answers
160 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
1
vote
1answer
120 views

Disable save item button while save process is not completed

User clicks on Save Button and saving procedure can take "few" seconds. User can click again..that`s why i need to disable save button, how can i do this?
1
vote
1answer
284 views

workflowAssociation not displaying workflow

I have created a feature. In the FeatureActivated event I am creating some lists. I am then trying to attach a custom workflow to one of the created lists. However when I do this the workflow history ...
1
vote
0answers
311 views

Document library event receiver when creating documents

I created an event receiver that processes some information in docx files when uploaded to the library. I do this in ItemAdded event. Everything works fine when the file is uploaded. When the files ...
1
vote
0answers
179 views

Accesing Lookup Field values only works on Administrative user [closed]

I have SharePoint Foundation 2010 Installed as a Farm on a Windows Server 2008. Since it doesn't let you install it without Active Directory, I went ahead and installed AD also. After installation, I ...
1
vote
1answer
285 views

SPFile is empty the second time the logic is run

I'm developing event receivers in SharePoint 2010. I have a doc. library, when someone adds to this library, a infopath form must be filled out and saved. When the form is saved to the library, my ...
0
votes
3answers
2k 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, ...
0
votes
2answers
81 views

Spsecurity. RunWithElevated Privileges not working

This Code is working very fine with admin rights but when i tried using it with normal user didnt work. I have also provided user full control on the virtual directory folder. public override void ...
0
votes
2answers
132 views

On Check-in, how do I detect a new file

Right now I have a SPItemEventReceiver that overrides ItemCheckedIn. It checks out the file, creates/marks a hidden field, and checks it back in. The reason for setting a property on the file is to ...
0
votes
2answers
2k views

Error when using ItemAdded event handler to update columns on newly uploaded document

I have an ItemAdded event handler connected to a document library, in order to automatically populate certain fields when a new document is uploaded: public class AutoPopulateDocumentFields : ...
0
votes
4answers
405 views

SiteDeleting Event handler

I am writing a code which does a restore of site collection programatically. I am using Site Deleting Event handler. I need to take backup of individual Site, not the Site Collection. How should i ...
0
votes
1answer
652 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
0
votes
1answer
180 views

Timer on a SharePoint List

I came across a very interesting scenario I need a Timer for Item added Event receiver for a SharePoint List and this list is being added to hundred of Webs. Now each List needs a timer job, which ...
0
votes
2answers
2k views

SharePoint 2010 - How to remove Event Receivers from Content Types

I have a Content Database that contains Event Receivers referring to a Solution / Feature that was incorrectly removed. These Event Receivers are embedded in every Content Type in my Site Collection ...
0
votes
2answers
2k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
0
votes
3answers
797 views

Prevent Item Overwrite Event Receiver

I want to prevent users from overwriting items that have the same name. When users add items to a library there is a checkbox indicating files should be overwritten if they have the same name. In ...
0
votes
2answers
485 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
2answers
1k views

Populating Drop down on the basis of User Group

I am developing the SharePoint Portal in 2010 where i will be using a Dropdown with values in it. These Values will depend on the group to which the user belongs. For Eg. If Drop Values are A, B , ...
0
votes
2answers
403 views

Static members in SPItemEventReceiver Class

I have a class: public class MyEvents : SPItemEventReceiver And a static member in it: public static int i; I need to transfer data from ItemDeliting event handler to ItemDeleted. I'm going to ...
0
votes
3answers
296 views

How To attach an Event Reciever to a Specific List in SP2007

I'm having trouble binding my event receiver (ItemAdding) event to a specific list. I created a Feature Receiver and tried both the GUID and Name. But, I have another list that uses the same column ...
0
votes
2answers
442 views

Custom Event Receiver - Copy To sub Folder [closed]

I need to copy my files from one document library to another document library which reside on another site and Document library contains number folders and sub folders.. The same structure should be ...
0
votes
2answers
932 views

Problem renaming a file in document library programmatically

I want to use a FeatureEventReceiver to rename Home.aspx -> Old_Home.aspx. When i activate the feature rather than Home.aspx getting renamed it gets deleted/disappears (i.e. missing when i refresh ...
0
votes
2answers
801 views

Programmatically registering a Sharepoint 2007 event handler

I have an event handler for the ItemAdding event of a document library. However, I cannot get it to handle the event unless I register the event handler using the Sharepoint Event Handler Manager. ...
0
votes
2answers
483 views

hour glass or something like that during webprovisioned event receiver

After a site is provisioned my code is continue to run. Is there a way to put hour glass or some animated image until i hit the last line of the code? public override void ...
0
votes
1answer
976 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 ...
0
votes
3answers
964 views

Linkbutton OnClick event incorrectly firing on page load

My click events are firing on linkbuttons on page load, before the link has been clicked, any ideas? (This is in a Visual web-part hosted in SP2010) This is my code: <asp:LinkButton ...
0
votes
1answer
2k views

Get containing folder/list for SPFile item

I have an ItemAdded event receiver that is exporting files as they are added to a list. In my event receiver I want to find the containing folder of the item. This folder may be a SPFolder object or ...
0
votes
3answers
488 views

Error in deleting a SharePoint Discussion forum topic

I'm getting a "Cannot complete the action" error message when deleting posts from discussion forums on our sharepoint install. This happens to discussion forums at any level in any of the subsites. ...
0
votes
2answers
75 views

Redirect after deleting a list item

I have a requirement wherein I have to redirect the user to the homepage, after a list item is deleted. Right now, the corresponding list is shown after the deletion. How can I accomplish this? I ...
0
votes
1answer
65 views

Trying to populate HyperLink type list item value in Event handler

I am trying to populate SiteUrl field in itemAdded event, this code doesn't give me error but field is not get populated public override void ItemAdded(SPItemEventProperties properties) { ...
0
votes
1answer
84 views

Update Managed metadata column Values based on other Managed metadat column

I have two managed metadata columns :- Country --- America, India City --- Sydney, New York, Bombay, Pune. If I select America as Country I should only be able ...
0
votes
1answer
261 views

How to show a javascript alert and close the browser tab on button click [closed]

I have a web part with button that is clicked upon approval of a workflow. I want to add a JavaScript alert after performing all the button click c# code and then upon closing the alert the browser ...
0
votes
2answers
1k views

How to update calendar item created by an other list?

Appreciate any thoughts on this: A user edits an existing list item to pick a date to select a project deadline. A custom workflow, initiated by that item change, takes that date and project title ...
0
votes
1answer
4k 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
164 views

I loss the listitem which was added to list using Item Added Event Receiver

I am using this code to break the permission.But i loss the listitem after refresh the page.Plz help me.. public override void ItemAdded(SPItemEventProperties properties) { ...
0
votes
2answers
1k views

getting my Document's parent sharepoint Folder

I have a sharepoint document library containing documents and folders (the folders are newly introduced as a new content type derived from folder) and I'm having an event reciever on document added ...
0
votes
1answer
545 views

“Detected use of SPRequest for previously closed SPWeb object” within Event receiver but no error when run in test harness

I have a very strange issue which I cannot explain. We have and event receiver and within this we instantiate our own class that does all the work we need it to do. As part of this we pass in an SPWEB ...