Tagged Questions
0
votes
0answers
13 views
disabling multiple fiel upload on picture library
How can I make my library picture one to disable multiple picture upload at a time. only 1 at a time is nice. I tried but getting context as null. not sure how to improve it myself.
I also need this ...
0
votes
1answer
105 views
Why Item Updated and Item Added trigger together when we add a item to list (document library)
I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
1
vote
1answer
105 views
Possible to attach an event receiver to the list of user alerts?
There's seemingly loads of ways of overriding the OOTB e-mail notifications for creation and deletion of user alerts - can't you just attach an event receiver to the alerts 'list' (is it an SPList?) ...
2
votes
2answers
390 views
SPListItem.SystemUpdate(false) is still triggering alerts
Environment: SP2010 Enterprise, VS2012, c#, full server access
Simple question...
I'm using a console app to create sub-folders in a document library based on user input, then calling ...
1
vote
1answer
189 views
Event manager error after upgrading my WSP via Update-SPSolution
So I just deployed this .wsp to production and I've identified a tiny bit of logic that needs tweaking in an event receiver. I'm considering compiling a new .wsp package, and then running an ...
0
votes
1answer
186 views
Detected use of SPRequest for previously closed SPWeb object
I've got an event receiver that fails, seemingly inconsistently. I've checked the ULS logs and I can see the 90hv Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb ...
0
votes
2answers
66 views
Can we find out in Event Receiver group Users like in a CS file
In CS file I used this code and it's worked:
SPWeb site = SPContext.Current.Web;
int managerGroup = site.Groups["Właściciele witryny Main"].ID;
if ...
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
0answers
35 views
InfoPath sending a Values from Event Receiver to the InfoPath
I want to send a Values from Event Receiver of Vebpart to the Infopath form. How could I send Values and data from Event Receiver of Items Adding to the Infopath form which are on the site in this ...
1
vote
1answer
89 views
InfoPath, and Calling a instation of Template InfoPath from Event Receiver
I want to call a form of InfoPath from Event Receiver. How Could I set a field infopath a Values, from Event Receivers to sets a Values on infopath fields which could I Validate and show or hide a ...
0
votes
1answer
39 views
Connecting infopath with the data from the list
When I creating a infopath conected with list in creator from Microsoft InfoPath Designer the bookmark which called developer is hinding, and I can't editing or writing any of code. How could I ...
0
votes
1answer
67 views
How Could I edit InfoPath in Visual Studio
If I add infoPath from Infopath Designer its blocked me all the Modal Dialog fired from Event Receiver. I want to edit InfoPath form to don't block My Sharepoint Modal Dialog. Now no one dialog boxed ...
0
votes
1answer
232 views
Sharepoint modal popup don't shown when the Infopath form are on the site
I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal ...
0
votes
1answer
51 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
33 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
2answers
365 views
Best way of getting SPWeb in Event Receiver [Best Practices]
what would be the best way of getting SPWeb and List in context below, specially when list title can be different for different cultural websites,
private bool ...
0
votes
1answer
54 views
How we can update the sherepoint elements in event Receiver ItemUpdated or Item Updating, or add a column in ItemsAdded
I tried to do Cascade deleting in two of my colums. If I deleted in First List record i wated deleted all records at Secound List bounded with records from List One. I adding bounded data first in ...
0
votes
0answers
71 views
CAML Queries in event Receivers
How Can I grup by day elements, and add them only when I find out is sum of dates in one day don't higher then some of values, and if they are good add a elements, or if they aren't good dont add ...
0
votes
1answer
181 views
How to add in Event Receiver Items Deleting
How can I delete a elements in secound list bounded with secand list if I delete elements in first list.
I write a code, but i don't know how to delete a bounded item, please help:
public override ...
0
votes
0answers
46 views
How to delete in Event Receiver when I have got two lists
In Items Adding Event I write on field item ID by (ID + 1), and then I gets a current one which are now adding. And then i must delete like in delete cascade all elements in corelate secound list. In ...
0
votes
1answer
84 views
How to update existing record of list one of two in Event Receiver
I have got a problem how to update Secound list which is made by First list. All must be in Event Receiver. How Can I made difrent Event Receivers update to Diferent Lists Could You Help me with his. ...
0
votes
1answer
26 views
Is it posible to create a EventReceiver for opening a site?
I want to start an EventReceiver when a site or a list opens.
How can I do this? Is this possible?
0
votes
1answer
745 views
Event Receiver Item adding - How to get a user name?
At Event Receiver Item Adding I must add name of worker which is adding a items to the list.
Here is my code:
SPListItem item = lstOtherList.Items.Add();
item["Kontrakt"] = ...
1
vote
1answer
98 views
How to prevent alerts from SPEmailEventReceiver?
I have been struggling with a small but irritating problem for a while now and suddenly I ran out of ideas.
I have implemented an email event receiver in Sharepoint 2010. The event receiver creates ...
1
vote
1answer
64 views
Access exceptions when trying to add a content type to list
In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
1
vote
2answers
97 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 ...
0
votes
1answer
27 views
Possible to get a list of scheduleditems?
Is it possible to get a list of ScheduledItems from SharePoint in C# (event receiver)?
For example, I've created a ScheduledItem and called the .Schedule() method. I'd expect this ScheduledItem to ...
0
votes
1answer
673 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 ...
0
votes
1answer
119 views
Using an event receiver to validate a page
I need to evaluate certain properties of a page whenever it's being saved/published as part of a custom validation I need to implement.
I notice properties has both Cancel and ErrorMessage properties ...
3
votes
4answers
7k views
Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>
I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
1
vote
1answer
568 views
EventReciever to change permissions
I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing.
I have the following
...
1
vote
1answer
99 views
How to push a specific SPListItem through a workflow with code?
I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked).
Currently, I have an event receiver hooked ...
0
votes
2answers
60 views
Cyclic calling of event receivers
I have a Deleting Event Receiver, say, on list A. Also I have other Deleting Event Receiver on list B. There is a deleting method in both receivers, which deletes items of each other. So, when an item ...
4
votes
3answers
1k 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?
5
votes
1answer
342 views
Client Object Model SystemUpdate
I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist.
Another solution would be to disable the ...
2
votes
2answers
456 views
Sharepoint development without Visual Studio on server machine
Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine.
Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed.
I ...

