Sharepoint event receiver itemupdating beforeproperties introduction text for dating sites

Posted by / 15-Sep-2019 03:04

Sharepoint event receiver itemupdating beforeproperties

Mainly my issue is that no matter which of the 2 events I override the countof the After Properties and Before Properties hash Tables is always 0....

So I'm trying to accomplish this kind of functionality on my Share Point 2010 list: I have a field of type choice in my list, which has 7 values and i want users not to be able to change the value of that field from values 2,3,4,5,6,7 to value 1.

webpart, event receive) only updated columns are present in that collection.

No value means that column value in the hash table was not available.

I have already attached list1 to aevent handler but I cannot recover both values to complete my task....

To achieve this I'll will need cath newand old values on the list Item which is being updated, to then find itsequivalent in list2 and proceed to update.

Afeter Properties[“User Field”] is “-1;#i:0#.w|domain\user1” Because its happening only when adding and modifying a user field using the New and Edit form it seems that the problem is with the Peaple Editor control.

For some reason it doesn’t work as well with claims based authentication as it does with classic authentication.

New value means that the correct value for the column was available.

Changed value means that the correct updated value was available.

sharepoint event receiver itemupdating beforeproperties-43sharepoint event receiver itemupdating beforeproperties-41sharepoint event receiver itemupdating beforeproperties-38

From the results it turns out that when getting the value of a user field from After Properties in Item Adding and Item Updating events the value is different when using the New and Edit form from the value when adding and updating the field pragmatically.