Itemupdating object

25-Jun-2017 16:20

I’ve based the code on Wictor’s excellent example with a couple of minor updates.Instead of hardcoding the name of the term store I’m getting the default keyword store associated with the site (this means we do not have to hardcode the name of the managed metadata service but you should check this works in all your environments).

As we added the Tax Catch All columns to our content type these will automatically be added to our list definition.

When we add either the site column or content type to a list the managed metadata field works and shows up in the search refinement panel (at least it did in my testing).

This is due to the fact that Share Point automatically wires some extra bits (shown below) when the field is added.

To recap on the previous post we are aiming to avoid the following problems when creating Share Point 2010 taxonomy fields through features: We found the first problem was due to a missing note field when creating a list definition that used the site column.

The second problem was due to the missing Tax Catch All and Tax Catch All Label columns and missing event receivers on the list definition.

As we added the Tax Catch All columns to our content type these will automatically be added to our list definition.When we add either the site column or content type to a list the managed metadata field works and shows up in the search refinement panel (at least it did in my testing).This is due to the fact that Share Point automatically wires some extra bits (shown below) when the field is added.To recap on the previous post we are aiming to avoid the following problems when creating Share Point 2010 taxonomy fields through features: We found the first problem was due to a missing note field when creating a list definition that used the site column.The second problem was due to the missing Tax Catch All and Tax Catch All Label columns and missing event receivers on the list definition.I’ve also created an example project that I’ve included at the end of the article if you want to see this working for yourself.