Xrm.Page.data.entity Properties and Methods
2014-08-30 07:40
295 查看
Xrm.Page.data.entity Properties and Methods
Xrm.Page.data.entity 属性和方法
attributes
The collection of attributes for the entity.
实体entity的属性的集合
getDataXml
Returns a string representing the xml that will be sent to the server when the record is saved
当一个记录被保存的时候,返回将要发生到服务器的xml数据
getEntityName
Returns a string representing the logical name of the entity for the record
返回string类型,实体entity的逻辑名称
getId
Returns a string representing the GUID id value for the record
返回string类型,返回当前记录的guid
getIsDirty
Returns a Boolean value that indicates if any fields in the form have been modified
返回bool类型,如果在窗体上面的任何字段发生的更改,就返回bool
OnSave
Use the addOnSave and removeOnSave methods to add or remove event handlers to the save event
使用addOnSave和removeOnSave事件,当发生保存的时候,执行操作
getPrimaryAttributeValue
Gets a string for the value of the primary attribute of the entity
返回string类型,实体的主字段名称
save
Saves the record with the options to close the form or open a new form after the save is completed
保存记录,有关闭窗体和打开新建记录的选择方式
Lookup control methods and events
查找字段的方法和事件
Xrm.Page.getControl(arg).addCustomFilter(filter, entityLogicaName)
Use add additional filters to the results displayed in the lookup.
Each filter will be combined with any previously added filters as an ‘AND’ condition.
添加查询条件,添加的条件用and连接
例子:
<filter type="and">
<condition attribute="address1_city" operator="eq" value="Redmond" />
</filter>
Xrm.Page.getControl(arg).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault)
Adds a new view for the lookup dialog box
添加一个新的查询窗体
Xrm.Page.getControl(arg).getDefaultView()
Returns the Id value of the default lookup dialog view
返回默认视图的guid
Xrm.Page.getControl(arg).setDefaultView(viewGuid)
Sets the default view for the lookup control dialog
设置查找控件的默认视图
Xrm.Page.getControl(arg).addPreSearch(handler)
Use this method to apply changes to lookups based on values current just as the user is about to view results for the lookup
添加查询事件之前的方法
Xrm.Page.getControl(arg).removePreSearch(handler)
Use this method to remove event handler functions that have previously been set for the PreSearch event
删除用PreSearch添加的操作
Xrm.Page.data.entity 属性和方法
attributes
The collection of attributes for the entity.
实体entity的属性的集合
getDataXml
Returns a string representing the xml that will be sent to the server when the record is saved
当一个记录被保存的时候,返回将要发生到服务器的xml数据
getEntityName
Returns a string representing the logical name of the entity for the record
返回string类型,实体entity的逻辑名称
getId
Returns a string representing the GUID id value for the record
返回string类型,返回当前记录的guid
getIsDirty
Returns a Boolean value that indicates if any fields in the form have been modified
返回bool类型,如果在窗体上面的任何字段发生的更改,就返回bool
OnSave
Use the addOnSave and removeOnSave methods to add or remove event handlers to the save event
使用addOnSave和removeOnSave事件,当发生保存的时候,执行操作
getPrimaryAttributeValue
Gets a string for the value of the primary attribute of the entity
返回string类型,实体的主字段名称
save
Saves the record with the options to close the form or open a new form after the save is completed
保存记录,有关闭窗体和打开新建记录的选择方式
Lookup control methods and events
查找字段的方法和事件
Xrm.Page.getControl(arg).addCustomFilter(filter, entityLogicaName)
Use add additional filters to the results displayed in the lookup.
Each filter will be combined with any previously added filters as an ‘AND’ condition.
添加查询条件,添加的条件用and连接
例子:
<filter type="and">
<condition attribute="address1_city" operator="eq" value="Redmond" />
</filter>
Xrm.Page.getControl(arg).addCustomView(viewId, entityName, viewDisplayName, fetchXml, layoutXml, isDefault)
Adds a new view for the lookup dialog box
添加一个新的查询窗体
Xrm.Page.getControl(arg).getDefaultView()
Returns the Id value of the default lookup dialog view
返回默认视图的guid
Xrm.Page.getControl(arg).setDefaultView(viewGuid)
Sets the default view for the lookup control dialog
设置查找控件的默认视图
Xrm.Page.getControl(arg).addPreSearch(handler)
Use this method to apply changes to lookups based on values current just as the user is about to view results for the lookup
添加查询事件之前的方法
Xrm.Page.getControl(arg).removePreSearch(handler)
Use this method to remove event handler functions that have previously been set for the PreSearch event
删除用PreSearch添加的操作
相关文章推荐
- CRM 2013 系统设置新功能一:界面自动保存 及 SDK 中 Xrm.Page.data.entity.save
- Database Testing – Properties of a Good Test Data and Test Data Preparation Techniques
- [Nuxt] Display Vuex Data Differently in Each Page of Nuxt and Vue.js
- Optimizing Data Access and Messaging-Performing Entity Group Transactions
- HTML DOM Properties and Methods
- Properties, methods and events
- Difference between LINQ to SQL and LINQ to Entity(DataContext and DbContext)
- RenderBody, RenderPage and RenderSection methods in MVC 3
- Using PageMethods to access Session data
- Export Grid Data To Excel In Advance Kendo UI Using MVC WEB API And Entity Framework
- Craw the data of the web page and parse to pdf
- Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
- Machine Learning and Data Mining for Computer Security: Methods and Applications
- Lerning Entity Framework 6 ------ Inserting, Querying, Updating, and Deleting Data
- Professional JS(5.5.5-function properties and methods&&5.6primitive wrapper type)
- SQL Server 2008 Data Types and Entity Framework 4
- Data Mining Methods and Models
- Objective-C Primer(2)Private Methods and Class Properties
- EMCDS认证学习笔记-Module5 Data Science Theory and Methods
- Microsoft.XMLDOM(XMLDOM)对象的属性和方法(Methods and properties of Microsoft.XMLDOM)