Tagged Questions
1
vote
2answers
86 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
3answers
55 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 ...
2
votes
2answers
168 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 ...
0
votes
1answer
125 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 ...
0
votes
1answer
386 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
131 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
201 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
39 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 ...
0
votes
2answers
131 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 ...
1
vote
3answers
176 views
Is it possible to add something to a list without trigging the ItemAdded event
I have a situation where I don't want to trigger the ItemAdded event if an item is added to a list via a workflow. Is it possible not to trigger this event?
1
vote
1answer
128 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
3answers
824 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
1answer
58 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 ...
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 ...
6
votes
1answer
425 views
Where to load data in the lifecycle of custom webpart
I have a webpart where I access a sharepoint list and render contents of that list.
At the moment I'm fetching the data in CreateChildControls().
When a button is clicked the data will be fetched ...
0
votes
1answer
415 views
Get the inserted values from inside a ItemAdding event
Is it possible to get the values that were inserted (to create an item in a list) from inside the ItemAdding event?
For ItemAdded the data is available in properties.ListItem, but for ItemAdding this ...
1
vote
2answers
526 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
2answers
69 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
0answers
480 views
ListInstance not firing all item event receivers [closed]
I have a feature that defines a number of list instances to provision whenever a new site is created using a particular site definition. The list template for one of these instances has an item event ...
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 ...
