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
0
votes
1answer
425 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
148 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
666 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)
{
...
0
votes
3answers
987 views
How do I start a workflow automatically when a Contributor attempts to delete an item?
Contributors have the Delete privilege.
In libraries and lists with Content Approval switched on, our policy is:
Contributors may not delete draft items submitted by other users.
Contributors may ...
0
votes
1answer
1k 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
2answers
770 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
709 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
2answers
295 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
769 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
276 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
2answers
550 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
643 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
405 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
754 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
761 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
3answers
409 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
52 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
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
97 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 ...
0
votes
1answer
110 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
1answer
485 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 ...
0
votes
3answers
243 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
1answer
478 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 ...
0
votes
1answer
160 views
Reporting Services Subscriptions doesn't fire Event Receivers
I have a SPItemEventReceiver on a SharePoint library which renames added files. Normally this works fine (Upload from website / WebDav).
There is also a report server subscription which drops pdf's ...
0
votes
1answer
135 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, ...
0
votes
1answer
205 views
ItemUpdated event handler not working
I added a ItemUpdated event handler so what happens is when I upload a document it uploads it and takes me straight to edit item page, where I can made changes. now if I make any changes to it, no ...
0
votes
1answer
185 views
Client Extranet with SharePoint 2010, how to prevent employees from giving clients permissions that would allow client to see all FBA users?
I am a development manager and one of the sys admin and I are trying to build a "Client Extranet", which is a fancy name for a SharePoint 2010 web application with sites that employees and clients can ...
0
votes
2answers
136 views
How to check if Item Deleted in a list was the last item (in a EVENT Receiver)
I want to check If deleted item is the Last Item deleted in the List in following method,
public override void ItemDeleted(SPItemEventProperties properties)
{
}
I know I can get web url using ...
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 ...
0
votes
2answers
353 views
Managed Client Object Model in Event Receiver - Event is not firing at all
When I use ClientContext context = new ClientContext("SITEURL"); in my event receiver, the event doesn't trigger at all.
So my question is can I use managed client object model in event receivers.
...
0
votes
2answers
3k views
How to move an item from custom list root location to sub folder programmatically?
How to move an item from custom list root location to sub folder programmatically (in Event Receiver (ItemAdded))?
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 ...
0
votes
2answers
485 views
Unable to use SPEmailEventReceiver
I'm attempting to create a SPEmailEventReciever on an Email enabled library...The problem is that intellisense is not showing that class for me, so I am unable to inherit from it.
MSDN shows it in ...
0
votes
1answer
363 views
Event receiver feature update
I am developing an event receiver in VS2010. To test the event receiver I deploy it to development using the functionality within VS 2010. This works without problems.
However my concerns start when ...
0
votes
1answer
337 views
Custom Event Handler to handle Emails in Project Server
I am working on writing an event handler that handles the OnSending event of Project Server in 2010. I am very new to writing event handlers in MS Project and require your help in getting started on ...
0
votes
1answer
827 views
Updating a record from an event receiver and a workflow
In my situation, I have records being added to a record center that are immediately declared as a record. There are some fields that are associated with these list items that I need to be able to ...
0
votes
1answer
299 views
Event handler running and activated but not receiving
I have installed an event handler to catch ItemAdded and change the content type if the item is a folder. I have installed and deployed this solution using a WSP and have activated it, but it doesn't ...
0
votes
1answer
1k views
Error loading and running event receiver Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver in Microsoft.SharePoint.Publishing
I am seeing the following error in my application log:
Error loading and running event receiver Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver in Microsoft.SharePoint.Publishing, ...
0
votes
2answers
1k views
Error Handling in Asynchronous Event Receivers
What are the best practices for error handling in Asynchronous Event Receivers? I'm currently writing an ItemAdded Event Receiver. The Status and ErrorMessage properties only seem to be relevant for ...
0
votes
3answers
2k 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 ...
0
votes
1answer
76 views
How to map workflow task to the originating workflow
I would like to fire an event when Workflow Task is completed and I would like to check the original item and workflow that created the task. But I cannot find any value among the Workflow task ...
0
votes
1answer
1k 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
1answer
181 views
what event reciever to overide for document lib when changing filename
I have a custom list which I have written a SPItemEventReciever for and it works.
But when I do the same for a document library it doesn't fire. Is there anything I have to do if it is a document ...
0
votes
3answers
1k views
Create subsite using custom site template programatically
I Have a requirement where when a list item is created , a new subsite sould get Created using custom site template.(MOSS 2007)
User should be able to select the custom template(present in site ...
0
votes
2answers
649 views
SPList.ContentTypes.EventReceivers returns NULL
I am trying to create a feature that uses the API for associating an ItemAdded event receiver to a Discussion List. I was associating the Event Receiver to the SPList, however, i don't want the event ...
0
votes
2answers
65 views
How to display and get the value chosen in an User field?
I'm very new at Sharepoint and I faced to a trick issue.
Here is the situation :
in an .aspx.cs file, I've created an EventHandler called btnValidate_Click, raised on a click on a button. In this ...
0
votes
3answers
56 views
On ItemUpdating modify property
I have an issue, with this event. What my purpose is: i want to update one of the properties based on few criterias, so i want do fill a field A if field A is empty and the field B is not empty and ...
0
votes
1answer
110 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 ...
0
votes
0answers
199 views
Event Receiver - How to set item value with the value from the existing item in the SAME list?
I have a business requirement to add a new version (revision) of the existing list item.
New list item should have this setting:
NewItem.ParentID=ParentItem.ID
...
0
votes
0answers
29 views
InfoPath Services - form changed event
We are using InfoPath services in our project. Sometimes there is need to change form schema, and it's done via InfoPath Designer. Form is also published from InfoPath Designer to SharePoint. When ...



