Показать сообщение отдельно
Старый 25.06.2014, 05:22   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
mscrmblog: Disable Automatic Document Property Promotion on a List
Источник: http://mscrmblog.net/2014/06/25/disa...ion-on-a-list/
==============

So if you’ve come across the problem where users will download a document previously upload which has metadata tags against it, they will rewrite the whole document and upload but the old properties and metadata properties have been set from the last document.

Fortunately its a feature that can be disabled however not through the UI. This can be done either using SharePoint Manager or creating a feature in Visual studio which will update the property on the SPWeb.

The property is:

ParserEnabledMSDN link: http://msdn.microsoft.com/en-us/libr...erenabled.ASPX

You can also read up on Document Property Promotion and Demotion: http://msdn.microsoft.com/en-us/libr...ffice.14).aspx

In a simple feature you can disabled it using the following:

var web = properties.Feature.Parent as SPWeb;web.AllowUnsafeUpdates = true;web.ParserEnabled = false;web.Update();



Источник: http://mscrmblog.net/2014/06/25/disa...ion-on-a-list/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.