Не могу найти мой термин магазин, все термин хранилище было удалено

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/92058

Вопрос

Я создал новое дерево хранилища магазина, а внутри моей категории столбцу для моих страниц Wiki я связываю столбец к моей метаданной навигации.Но теперь, когда я хочу назначить новое значение для моей категории столбца и выбрать новый термин, я не смог получить доступ к хранилищу термина, и категория COLUM была отключена, как следует следующее: - Введите описание изображения здесь

Когда я получаю доступ к навигационной службе метаданных, я не мог найти магазин старого термина также? Введите описание изображения здесь

Может ли любой совет, что может вызвать это случайное поведение? Спасибо

Это было полезно?

Решение

The link between your field and the termstore is probably not correctly set.

In order to display the correct values, a termstore field (TaxonomyField) contains the id's of your termstore and termset you want to display. However this ID is different on every server. You need to make sure when using a TaxonomyField the field is configured with the correct id's on that server.

Here is some c# on how to do it. You can find the id's on the bottom of the property page of your termstore manager in SharePoint.

private void LinkMmdField(TaxonomyField field, LinkMmd linkinfo, TaxonomySession session)
{     
    TermStore termStore = session.TermStores[linkinfo.TermStoreName];
    Group group = termStore.Groups[linkinfo.TermGroupName];
    TermSet  termset = group.TermSets[linkinfo.TermSetName];

    if (termset != null)
    {
        field.SspId = termStore.Id;
        field.TermSetId = termset.Id;
        field.Update();
    }
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top