RE: Hidden Risk list fields reappearing

2012-03-08 Thread Brian Farnhill
I demo'ed something like this at Tech.Ed last year - we did it with a receiver for when the sites are created I'm pretty sure (I have an alarmingly short term memory sometimes). I don't have a good reason for why the template won't work for you, but this is a work around. Anyway, if you wanna

RE: Debug list item receiver event

2012-03-08 Thread Ishai Sagi
Lets start by using a proper value type and not a string for a user field. SPFieldUserValue is the type you should be building if I remember correctly. [Description: Description: Description: C:\Users\Brian\Pictures\EXD Logos\Extelligent logo no text.jpg]Ishai Sagi | Solutions Architect 0488

RE: Debug list item receiver event

2012-03-08 Thread Paul Noone
What do you mean if you remember correctly? :) Brian, nothing more in the ULS and my custom diagnostic in the catch isn't being triggered, which suggests it's not quite failing, or my logic is flawed? I'll try to step through and see where it's failing but hoped someone might have an example of

RE: Debug list item receiver event

2012-03-08 Thread Paul Noone
Hmm. I've had to revise and am now trying Ishai's method. Unfortunately I'm now getting a compile error due to the extension method. Extension method must be defined in a non-generic static class. And I can't make the class static because it derives from SPItemEventReceiver. :\ // Auto populate

Re: Debug list item receiver event

2012-03-08 Thread Chris Tomich
Hi Paul, You you could just place that extension method into it's own class and make that class static. Kind Regards, Chris Tomich Sent from my iPhone On 09/03/2012, at 6:58 AM, Paul Noone paul.no...@ceosyd.catholic.edu.au wrote: Hmm. I’ve had to revise and am now trying Ishai’s method.

Re: Hidden Risk list fields reappearing

2012-03-08 Thread Kirk Barrett
Thanks for the pointer to your demo code Brian. I had considered this approach and discussed it with the business owner for the system. If I can't find some way around the issue then this approach will have to do but the business owner's main concern with the feature receiver approach is that it