Non riesci a trovare il mio negozio Termine, tutto il negozio Termine è stato rimosso
-
10-12-2019 - |
Domanda
Ho creato un nuovo albero del negozio Termine e all'interno della mia colonna di categoria per le mie pagine wiki, collego la colonna alla mia navigazione dei metadati.Ma ora quando voglio assegnare un nuovo valore per la mia colonna della categoria e selezionare un nuovo termine, non sono stato in grado di accedere al word store e la categoria Colum è stata disabilitata come segue: -
Quando accedo al servizio di navigazione dei metadati, non ho trovato più anche il vecchio negozio di Termine?
Qualcun consiglio può che cosa potrebbe causare questo comportamento stagionato? Grazie
Soluzione
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();
}
}