Question

J'ai créé un nouvel arborescence de magasin, et dans ma colonne de catégorie pour mes pages Wiki, je relie la colonne à ma navigation de métadonnées.Mais maintenant, lorsque je souhaite attribuer une nouvelle valeur pour ma colonne de catégorie et sélectionnez un nouveau terme, je n'ai pas pu accéder au terme magasin et la catégorie Colum a été désactivée comme suit: - Entrez la description de l'image ici

Lorsque j'accède au service de navigation de métadonnées, je ne pouvais plus trouver le magasin de l'ancien terme? Entrez la description de l'image ici

Quelqu'un peut-il conseiller ce qui pourrait causer ce comportement étrange? Merci

Était-ce utile?

La solution

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();
    }
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top