一、前台开发
1、首先要考虑把常用代码独立成一个公共js,然后在需要用到的时候引入。这样会更便于维护。当然,涉及到按钮的时候没有办法引入多个库,需要考虑使用额外方法。
常用的比如说:
锁定和释放窗体属性
复制代码
1
2
3
4
5
6
7
8
9
10
11
12/** * 锁定或解锁属性 * @param {any} attributeName */ lockOrUnlockControlByAttributeName: function (attributeName,lock) { let controls = Xrm.Page.getAttribute(attributeName).controls.getAll(); if (controls) { for (con of controls) { con.setDisabled(lock); } } }
获取选项集字段名称
复制代码
1
2
3
4
5
6
7
8
9
10
11/* * summary:前端获取选项集字段的名称 * author: * createTime: */ getOptionName:function (context, attributeName, value) { let val = value; if (val == null || val == undefined) { val = context.getAttribute(attributeName).getValue(); } let attrArray = context.getCon
最后
以上就是粗暴蛋挞最近收集整理的关于Dynamics 365 开发协作最佳实践思考一、前台开发二、插件开发的全部内容,更多相关Dynamics内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复