获取父术语以根据手动输入的子术语(Managed Metadata Termset)填充文档库列 [英] Get Parent terms to populate document library columns based on manually entered child term (Managed Metadata Termset)

查看:54
本文介绍了获取父术语以根据手动输入的子术语(Managed Metadata Termset)填充文档库列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在使用托管术语集来对设备ID进行分类。用户希望父节点 - 设备类和设备类别自动进入独立列。

Hi I'm using a Managed termset for a column to classify Equipment ID. The user wants the parent nodes - Equipment Class and Equipment Category automatically entered into independent columns.

以下术语术语示例:

推土机(设备类别)

     CAT D12(设备类)

     CAT D12 (Equipment Class)

             DZ001(设备名称)。

            DZ001 (Equipment Name).

因此,DZ001手动输入设备名称栏。 设备类和类别的相邻列将根据子项填充如下:

So DZ001 is entered manually into Equipment Name column.  Adjacent columns for Equipment Class and Category would be populated based on the child term as below:

任何人都知道如何做到这一点?

Anyone know how to do that?

推荐答案

您好,

根据您的要求,我了解设备类是家长,设备类别是术语集。

For your requirement, I understand Equipment Class is the Parent Term and Equipment Category is the Term Set.

在JSOM术语对象中,有两个名为"Parent"(设备类)和"TermSet"(设备类别)的属性将返回父项术语和术语集:

In JSOM Term Object , there is two property named "Parent"( Equipment Class) and "TermSet"(Equipment Category) which will return the parent term and Term Set:

SP .Taxonomy.Term.parent属性(sp.taxonomy)

SP.Taxonomy.Term.termSet属性(sp.taxonomy)

关于从Term Store阅读术语,请参阅代码演示下面:

About reading Term from Term Store, please refer the code demo below:

在SharePoint 2013中使用分类和JavaScript

获取Term对象后,可以使用两个pr上面的operties获取Class,Category,然后将值分配给列表新项目表单中的输入框。

Once getting the Term Object, you could use the two properties above to get the Class, Category and then assign value to the input box in list new item form.

谢谢

最好的问候


这篇关于获取父术语以根据手动输入的子术语(Managed Metadata Termset)填充文档库列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆