0
votes
3answers
75 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
3k 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 ...
2
votes
2answers
346 views

Item Updated through different forms runs Item Updated event receiver

Simple but mind blowing question it is. Basically I am updating a specific list items through two different ways, one is using ASP.NET web forms and one is using default list forms provided by ...
1
vote
2answers
53 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
2answers
293 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.
0
votes
1answer
319 views

Elements of type 'Receivers' are not supported at the 'Site' scope. This feature could not be installed

I created a event receiver for survey list types "102" why I can't scope it as anything other then "Web" scoped. If its Microsoft's restriction only option I got is to add it to template and then save ...
1
vote
4answers
1k 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
2answers
143 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
177 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
222 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
48 views

how to check custom property of added Item

There is a boolean column I added to a custom list, but I also have a feature on this custom list so that when a Item is added i have to check if this column exists or not and then its value. now i ...
1
vote
1answer
352 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 ...
2
votes
1answer
106 views

Farm Based Custom Timer Job Feature

I am trying to create a custom timer job where feature is farm scoped and will run on a farm level, I am not able to find any decent tutorial that tells how to create a farm based custom timer job ...
0
votes
2answers
178 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
1answer
174 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
1answer
61 views

Limiting a List (Listview webpart) to a single User

I have a List Definition and I want to limit only 1 specific user to "add new items" to this list, oh by the way its a custom list definition, I was wondering what are the possible ways to accomplish ...
4
votes
4answers
3k views

SPItemEventReceiver ItemAdding - Differentiate between a file and a folder

I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this: if ...
2
votes
2answers
403 views

Pop-up on event handler in MOSS 2007?

I have written an event handler using ItemDeleting event , instead of showing default error page when user try to delete a document from document Library I want to show a warning message in Pop-up box ...
1
vote
2answers
266 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 ...
6
votes
2answers
3k views

SPItemEventReceiver ItemUpdating and BeforeProperties / AfterProperties

I've bound and ItemUpdating event to a document library of a MOSS publishing site, I’m then trying to compare the Before and After properties. When I amend the field in the UI I expect the two values ...
0
votes
1answer
197 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 ...
2
votes
1answer
858 views

ItemAdded Not Working

I’m trying to override the ItemAdded event handler for a Sharepoint 2007 document library. For some reason, it appears that the ItemAdded event is not firing. I can override the ItemAdding event no ...
2
votes
1answer
133 views

Event receiver will not change

I deployed an event receiver feature on a task list (it restricted access to the task for everyone except the assignee, among other things). Now the requirements changed, I commented out the ...
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
2k views

properties.Cancel = true not firing in ItemAdded event

I developed a custom event receiver class that overrides the ItemAdded method after the list item is added I want to make some checks and based on a certain condition I want to delete the added item. ...
2
votes
1answer
1k views

Execution order of event receivers and workflow on a list

Is it possible to know beforehand whether event receivers on a list will always execute before any workflows associated with that list?
0
votes
4answers
404 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 ...
1
vote
1answer
219 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". ...
2
votes
3answers
2k views

Problem with ItemAdded event handler

Event handler ItemAdded is working. However, the site does not refresh right away. I am populating some column when an item is added. The column shows up fine but it is empty. If I refresh (or hit ...
1
vote
5answers
1k views

How to use SP Service Account to add an item (with object model)?

I can add an item to SharePoint (with the object model) when I am logged in to SharePoint with an administrative account. However, if I change to another user who is NOT listed in the backend SQL ...
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
703 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 ...