我将了解 Xrm.Page 对象层次结构
,其中包含 3 个对象。
1. 背景
2.数据
3.用户界面
是的!好的。但在给定的图表中 documentation , 有些子对象是蓝色的,有些是白色的。这是具体原因吗?为什么它们的颜色不同?这些对象或集合或其他什么? 有什么想法吗?
最佳答案
白色表示物体。蓝色表示 collections .
让我们举两个例子。
要获取实体记录的id
属性,必须使用实体对象的getId()
方法。
Xrm.Page.data.entity.getId()
Xrm.Page.data.entity
provides methods to retrieve information specific to the record displayed on the page, the save method, and a collection of all the attributes included in the form.
要获取实体记录的所有子属性,实体对象给出属性集合。传递名称并获取特定属性属性。
Xrm.Page.getAttribute(arg).getAttributeType()
The
Xrm.Page.data.entity.attributes
collection provides access to each entity attribute that is available on the form.
Xrm.Page.getAttribute
是访问Xrm.Page.data.entity.attributes
集合的快捷方式。
关于javascript - Xrm.Page 对象层次结构,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47786243/