Dynamics-客户端开发常用参照


executionContext.getFormContext() getAttribute("")

获取:getValue()

设置:setValue()

是否必填:setRequiredLevel();//none、required、recommended

添加:addOnChange

移除:removeOnChange

提交:setSubmitMode("always");//always,never,dirty

精确度:setPrecision()

脚本添加onchange:addOnChange

脚本移除onchange:removeOnChange

主动触发onchange:fireOnChange 

是否有为保存修改:getIsDirty 

getControl("")

显隐:setVisible();//true、false

获取:getVisible

锁定:setDisabled();////true、false

获取:getDisabled

选项集选项清空:clearOptions()

选项集选项添加:addOption()

选项集选项移除:removeOption()

查找字段筛选:addPreSearch配合addCustomFilter

移除筛选:removePreSearch

 ui

 表单状态:getFormType()

表单onload添加:addOnLoad

表单onload移除:removeOnLoad

tabs addTabStateChange
removeTabStateChange
setFocus
setVisible
setLabel

窗体信息:formSelector.getCurrectItem().getLabel()

data

业务流程数据交互:process

entity 表单保存onsave添加:addOnSave
表单保存onsave移除:removeOnSave
逻辑名:getEntityName
记录ID:getId
attributes.forEach()
是否编辑过:getIsDirty
     Xrm  Navigation

 弹窗:openAlertDialog

是否:openConfirmDialog

错误:openErrorDialog

打开表单:openForm

web资源:openWebResource

 Utility.getGlobalContext()

应用程序的基本URL:getClientUrl()

进度框:showProgressIndicator

当前用户设置信息:userSettings

语言编码:languageId

用户主键:userId

用户名:userName

安全角色:securityRoles

roles

当前组织设置信息organizationSettings

组织语言编码:languageId

组织ID:organizationId

uniqueName


以上信息仅用于学习交流,如有错误欢迎指正;大佬勿喷,谢谢;