私の用語店を見つけることができません、すべての用語店は削除されました
-
10-12-2019 - |
質問
私は新しい用語ストアツリーを作成し、私のWikiページのマイカテゴリ列の中に、列をメタデータナビゲーションにリンクします。しかし、私のカテゴリ列に新しい値を割り当てて新しい用語を選択したい場合は、次のようにTERM STOREにアクセスできず、カテゴリ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();
}
}