javascript - Xrm.Page 对象层次结构

标签 javascript dynamics-crm msdn dynamics-crm-2016 xrm

我将了解 Xrm.Page 对象层次结构,其中包含 3 个对象。

1. 背景

2.数据

3.用户界面

是的!好的。但在给定的图表中 documentation , 有些子对象是蓝色的,有些是白色的。这是具体原因吗?为什么它们的颜色不同?这些对象或集合或其他什么? 有什么想法吗?

enter image description here

最佳答案

白色表示物体。蓝色表示 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/

相关文章:

javascript - angular.copy() 不会破坏对模型的引用

javascript - 在模式关闭后捕获 Angular Bootstrap UI $uibModal 关闭事件

c# - 'where' 条件无效。实体成员正在调用无效的属性或方法

c++ - MSDN 示例 : The Open Dialog Box Not Compiling

azure - Azure 上的 Team Foundation Service 和 TFS 的缺点

javascript - 新的 Edge Indexeddb 错误的解决方法?

c# - 插件注册中未显示自定义工作流事件

javascript - 在 MS CRM 2013 中将字段设置为只读

c++ - 清理窗口套接字内部缓冲区

javascript - 创建对象时的_colorIndex和_symbolIndex