Tag Info

New answers tagged

0

The root problem is that you need an information of the HTTP context from the inside of an ER (i.e. the UrlReferrer). HTTP context information is stored at the thread level... but if you use an asynchronous ItemAdded event, you run in a separate thread. Thus, one option may be to use ItemAdding or a synchronous ItemAdded. However, in case an item is added ...


0

Frustratingly simple... it took me a while but I got there thanks to this post: https://christopherclementen.wordpress.com/2012/04/30/get-field-value-during-an-event-handler/ I ended up using ItemAdded, but in order for it to add before the form loads I had to add: Synchronous <Receiver> <Name>EventReceiver1ItemAdded</Name> ...


0

That would be quite tricky. As the event receiver is independent entity. Maybe such scenario would work: 1. EventReceiver Triggers - does its job - and creates reload flag (a new property bag) 2. JavaScript on the page checks the property bag, when it sees that reload flag is true does refresh of the page. Hope that helps


0

Make sure that the event receivers exist in one of your project features. also make sure that this feature is activated on your website. Finally try to change the scope of the feature (I don't think it will work if the scope is "Web", try to make it "Site") P.S. You don't have to add code for testing writing to a list to show that it's running. You can just ...


0

public override void ItemAdded(SPItemEventProperties properties) { base.ItemAdded(properties); using (SPWeb web = properties.OpenWeb()) { try { SPFieldUrlValue urlValue = new SPFieldUrlValue(); urlValue.Description = "Description will appear ...



Top 50 recent answers are included