我在我的wiki页面中创建了一个新的术语商店树,以及我的类别列中的Categor,我将列链接到我的元数据导航。但是现在当我想为我的类别列分配一个新值并选择一个新的术语时,我无法访问术语商店,类别colum被禁用如下: -

当我访问元数据导航服务时,我也找不到旧术语商店?

可以任何建议如何导致这个stange行为? 谢谢

有帮助吗?

解决方案

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归因
scroll top