[英]Xrm.Page object hierarchy
I am going to understand the Xrm.Page object hierarchy
, that has 3 objects in it. 我将了解Xrm.Page object hierarchy
,其中包含3个对象。
1. Context 1.背景
2. Data 2.资料
3. UI 3.用户界面
Yes! 是! Good. 好。 But in the given diagram documentation , Some child objects are blue while some are white. 但是在给定的图表文档中 ,有些子对象是蓝色的,而有些是白色的。 Is it specific reason for that? 是特定原因吗? Why they are of different color? 为什么它们是不同的颜色? Are these Objects or Collections or something else? 这些是对象或集合还是其他? Any idea? 任何想法?
White denotes objects. 白色表示物体。 Blue denotes collections . 蓝色表示收藏 。
Let's take 2 examples. 让我们举两个例子。
To get id
property of entity record, have to use getId()
method of entity object. 要获取实体记录的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.data.entity
提供了一些方法来检索特定于页面上显示的记录的信息,保存方法以及表单中包括的所有属性的集合。
To get all the child attributes of entity record, entity object gives attributes collection. 为了获得实体记录的所有子属性,实体对象给出了属性集合。 Pass the name & get the particular attribute properties. 传递名称并获取特定的属性。
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.data.entity.attributes
集合提供对表单上可用的每个实体属性的访问。
Xrm.Page.getAttribute
is the shortcut for accessing Xrm.Page.data.entity.attributes
collections. Xrm.Page.getAttribute
是访问Xrm.Page.data.entity.attributes
集合的快捷方式。
I've found that the best way to work with the CRM Web Client Model, is to use this cheat sheet. 我发现,使用CRM Web客户端模型的最佳方法是使用该备忘单。 Its from 2015, but will be very applicable for everything up to 9. 从2015年开始,但将非常适用于9岁以下的所有人群。
http://crmunwrapped.blogspot.com/2015/03/crm-2015-client-api-cheat-sheet.html http://crmunwrapped.blogspot.com/2015/03/crm-2015-client-api-cheat-sheet.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.