سؤال

لقد قمت بإنشاء شجرة مخزن مصطلح جديدة، داخل عمود الفئة الخاصة بي لصفحات Wiki الخاصة بي، أربط العمود على الملاحة الوصفية الخاصة بي.ولكن الآن عندما أرغب في تعيين قيمة جديدة لعمود الفئة الخاصة بي وحدد مصطلح جديد، لم أتمكن من الوصول إلى مصطلح مخزن المصطلح وتم تعطيل كولوم الفئة على النحو التالي: - أدخل وصف الصورة هنا

عندما أقوم بالوصول إلى خدمة الملاحة الوصفية، لم أستطع العثور على متجر الأجل القديم أكثر أيضا؟ أدخل وصف الصورة هنا

يمكن لأي نصيحة واحدة قد تسبب هذه السلوكية الشديدة؟ شكرا

هل كانت مفيدة؟

المحلول

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