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
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
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
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
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.
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