0
votes
1answer
34 views

Event receiver Causes Problem while adding items to a list

I have created Visual Web Part which adds items to a X list.But while adding item to it, I am getting the following error once Item.update() hits in Visual studio . is it because of Event Receiver ...
0
votes
0answers
67 views

Cant get items from external list

I have an External list based on an External Content Type that is connected to Dynamics CRM. In an event receiver (C#), I successfully get an SPList instance that is able to print the 'Title' and ...
1
vote
0answers
73 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
1answer
55 views

event handler properties call

I was reading this nice article about basic event handling in sharepoint http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough1/ but while doing the exercise a question arised: Why ...
0
votes
0answers
160 views

How to Retrieve List Item Using It's Field Name? - SharePoint

I have two contact lists in my site i.e. Contacts 1 and Contacts 2. I am creating "item added" event receiver on Contacts 1 that is whenever new entry is made to the Contacts 1 automatically it ...
0
votes
1answer
144 views

Programatically populate custom list column

I have a list definition project (schema.xml, etc.). I would like to create a computed column that's available for grouping, but not have the computed value from a CAML query, as it's going to be ...
0
votes
0answers
23 views

Site definition with workflow

i need advice on how to implement workflows inside a specific situation. We have a list of projects. When someone adds a new project we need to create a subsite for this project (with the proper ...
0
votes
0answers
104 views

Event-receiver ItemUpdating event not getting triggered when list item is updated from a designer workflow after a pause duration

I am having a Workflow and Event receiver attached to a custom list.The workflow is started from code, based on some condition satisfied.When the workflow is started it initially updates a Status ...
1
vote
0answers
55 views

Exchange event receivers of lists

Recently i faced an interview question for which i am unable to find a suitable answer. I was given a scenarion to implement, which goes like this. There are two event receivers Ea and Eb, these are ...
1
vote
2answers
303 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 ...
0
votes
0answers
113 views

Delete all list permissions and set Author as contributor (Event Receiver)

I wrote an Event Receiver on ItemAdded to automatically create a calendar (Template 106) from a ListItem (Title => Name of calendar). So far so good... Problem of all is, that I want to delete ALL ...
1
vote
2answers
1k views

Cannot associate event receiver with a particular document library

I am trying to develop an Event Receiver for a document library titled Temporary. I have modified the Elements.xml document to look like this: <?xml version="1.0" encoding="utf-8"?> ...
1
vote
3answers
2k views

Implement check-in check-out on list items?

I want to implement check-in/check-out functionality on a list in sharepoint 2010. What I want is, when a person is updating a list item, no one else shuld be able to edit that particular item and ...
1
vote
1answer
83 views

Event Handler before the item add screen pops up for updating choice list

I have a list person with items and one of those items is of the type "choice". For example: Name (text), City (text), Favorite Artists(choice list). Well I want to bind the title values of every ...
1
vote
2answers
2k views

Add Event Receiver on two custom lists?

So I have a question: I have an event receiver, that should be hired for a specific list. So I changed the ListUrl property on the elements.xml of the event receiver. But now I need the same event ...
0
votes
1answer
74 views

Adding EventReceiver to Dynamic List

I am trying to add a Event Receiver to a list that is dynamically created (by code). So i cannot add a event receiver on the list directly. I found a way to attach a Event Receiver to the list by ...
1
vote
1answer
92 views

List Event not Firing - Registered against List, Activated Feature

$web = Get-SPWeb "http://----/PWA/Test Project/" $list = $web.Lists["Risks"] $list.EventReceivers This shows 3 events; ItemAdded, ItemDeleted, ItemUpdated. Below is an example of one of them to show ...
0
votes
1answer
450 views

Help with Blog EventReceiver, not firing

Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
0
votes
1answer
242 views

List versioning detect field level changes

I need to detect changes with each on each item update, )but i don't want to use the before, after properties ) My question is: If i enable list versioning can i diff 2 versions to detect changes, ...
1
vote
0answers
855 views

List ItemUpdated Event not firing when updating item from code

I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
0
votes
1answer
309 views

Event Receiver Item Added for Multiple Files uploaded

I am trying to add few details for a item that is added to a list to SQL database table using a stored procedure, it works perfectly but when I upload multiple files it adds all of the items into the ...
0
votes
1answer
889 views

Event receiver for a custom List

I created a custom Event Receiver using WSP builder, and in elements.xml file i have given the ID of list which i find in elements.xml of List definition of particular list. I also activated the ...
4
votes
3answers
2k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
1
vote
3answers
1k views

Add item to list anonymously (not as anonymous user)?

I have a requirement that authenticated users should be able to anonymously add items to a list, i.e. they are authenticated but the Created By/Modified By field should not display their name. I could ...
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
1answer
4k views

properties.ListItem is NULL on item added Event Receiver?

The following articles... http://moonistahir.wordpress.com/2008/05/05/properties-listitem-in-itemadded-is-null-workaround-to-get-listitem/ ...
1
vote
1answer
62 views

SharePoint 2010 Restrict List Types by Role

We have a requirement that members of a specific group should only be allowed to create discussion forums while administrators should be able to create any type of list/library. Any advice on how to ...
2
votes
2answers
294 views

Requiring Event Receiver while creating new item

I have an event receiver(item adding,item added)..on a custom list..this event receiver creates an ID when a new item is created..so when i deactivate the event receiver and add a new item to the list ...
2
votes
1answer
905 views

Sending an email using sharepoint object model sharepoint 2010

i have been working on generating email in an event receiver using share point object model..i used the sputility.sendemail method..2 things are necessary in the email(email from and HTML body)..so i ...
2
votes
4answers
4k views

Item added or item edited Sharepoint 2010 event receiver

I am working on Sharepoint list form with 10 fields. The first time when I add the new item I fill in 8 values and id is generated. Next time I edit the form I fill in the one of the two remaining ...
1
vote
2answers
1k views

Accessing the Created By coloumn value in event receiver(item added) sharepoint 2010

Hi I am trying to access the created by coloumn in item added event reciever.But when i debug it shows null value...below is the code public override void ItemAdded(SPItemEventProperties properties) ...
0
votes
2answers
261 views

Event reciever (itemadded) sharepoint 2010

is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)
1
vote
1answer
1k views

Event Reciever run with elevated previledges

I created one event receiver and deployed it, but only users who are site collection admins are able to view this web part. I have included the SPSecurity.RunWithElevatedPrivileges but the same thing. ...
2
votes
2answers
775 views

Event Reciever on specific list in SharePoint 2010 working in dev environment but not in production

I have created an event receiver (on item adding) using VS2010 in SharePoint 2010 targeted to specific custom list which is a globally deployed in the production environment. This event receiver ...
1
vote
1answer
196 views

Event Reciever on Item created

I am working on creating a event reciever on a custom list .. my senario: I have a customizes newform.aspx and this form has a field called ticketID as hidden ..in the newform..so when a user creates ...