Quantcast
Channel: features Work Item Rss Feed
Viewing all articles
Browse latest Browse all 20

Commented Issue: UniqueColumnPolicy - not working with Lookup fields (including users) [8838]

$
0
0
The UniqueColumnPolicy doesn't work with looup fields (including users) although these fields are listed in UniqueColumnSettings.ascx.
THis is because the CAML query created in Validation.cs only returns the ID as the value.
There is a simple way to avoid this: detecting if the field type is "User" or "Lookup" and if so, add the following attribute to the FieldRef node LookupId="TRUE".

You will find attachedd the updated Validation.cs (modifications are from line 101 to line 116)
Comments: ** Comment from web user: mcalicea **

How can I add this Validation.cs file to solution? I am new to features and was wondering if I have to replace the file and then load it to my Sharepoint collection or can I do it after its already deployed?


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images