質問

私は新しい用語ストアツリーを作成し、私のWikiページのマイカテゴリ列の中に、列をメタデータナビゲーションにリンクします。しかし、私のカテゴリ列に新しい値を割り当てて新しい用語を選択したい場合は、次のようにTERM STOREにアクセスできず、カテゴリCOLUMは無効になっていました。 - ENTER IMENTDESCRUストレーション

メタデータナビゲーションサービスにアクセスするとき、私はそれ以上古い用語ストアも見つかりませんでしたか? ENTER画像の説明

このスターンの行動を引き起こす可能性があるのはどんなアドバイスですか? ありがとう

役に立ちましたか?

解決

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