当前位置:网站首页>Dynamics 365 find field filtering
Dynamics 365 find field filtering
2022-07-07 23:14:00 【zcy_ wxy】
With systemuser For example
addFilterToDisputeControl: function (groupAttrName, ownerAttrName) {
var viewDisplayName = groupAttrName;
var lookupControl = Xrm.Page.getControl(ownerAttrName);
var layoutXml = "<grid name='resultset' object='10013' jump='fullname' select='1' icon='1' preview='1'><row name='result' id='systemuserid'><cell name='fullname' width='300' /><cell name='businessunitid' width='300' /><cell name='scc_leadcount' width='300' /></row></grid>";
var id = leadForm.guid();
var entityName = "systemuser";
var filter = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>"
+ " <entity name='systemuser'>"
+ "<attribute name='systemuserid' />"
+ "<attribute name='fullname' />"
+ "<attribute name='businessunitid' />"
+ "<attribute name='scc_leadcount' />"
+" <filter type='and'>"
+" <condition attribute='scc_businessgroupid' operator='eq' uitype='scc_businessgroup' value='{0}' />"
+" </filter>"
+" <link-entity name='systemuserroles' from='systemuserid' to='systemuserid' visible='false' intersect='true'>"
+" <link-entity name='role' from='roleid' to='roleid' alias='ab'>"
+" <filter type='and'>"
+" <condition attribute='name' operator='eq' value='AR' />"
+" </filter>"
+" </link-entity>"
+" </link-entity>"
+" </entity>"
+"</fetch>";
var group = Xrm.Page.getAttribute(groupAttrName).getValue();
if (group) {
filter = filter.replace("{0}", group[0].id);
lookupControl.addCustomView(id, entityName, viewDisplayName, filter, layoutXml, false);
lookupControl.setDefaultView(id);
}
},
guid: function(){
function S4() {
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
}
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}Be careful :
1、entity Configured in attribute Include grid Property name configured in
2、 View names should preferably be different , View ID Must be different .
View in code ID The generation of is quoted from
边栏推荐
- UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
- 聊聊支付流程的设计与实现逻辑
- 网络安全-CSRF
- Inftnews | the wide application of NFT technology and its existing problems
- 2022 words for yourself
- Transform XL translation
- QT graphicsview graphical view usage summary with flow chart development case prototype
- ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
- Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
- 网络安全-安装CentOS
猜你喜欢

微信论坛交流小程序系统毕业设计毕设(4)开题报告

微信论坛交流小程序系统毕业设计毕设(1)开发概要

Wechat forum exchange applet system graduation design completion (8) graduation design thesis template

The wonderful relationship between message queue and express cabinet

Specific method example of V20 frequency converter manual automatic switching (local remote switching)

Transform XL translation

今日创见|企业促进创新的5大关键要素

DTC社群运营怎么做?

Wechat forum exchange applet system graduation design (2) applet function

Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
随机推荐
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
网络安全-CSRF
聊聊支付流程的设计与实现逻辑
opencv scalar传入三个参数只能显示黑白灰问题解决
[language programming] exe virus code example
Interview questions: how to test app performance?
消费品企业敏捷创新转型案例
USB (十七)2022-04-15
【刷题记录】3. 无重复字符的最长子串
One question per day - pat grade B 1002 questions
开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
网络安全-永恒之蓝
./ setup. Insufficient sh permission
数字藏品加速出圈,MarsNFT助力多元化文旅经济!
14、 Two methods of database export and import
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
ArcGIS: two methods of attribute fusion of the same field of vector elements
微信论坛交流小程序系统毕业设计毕设(3)后台功能
Circumvention Technology: Registry
2022 words for yourself