当前位置:网站首页>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
边栏推荐
- Network security CSRF
- 微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
- ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
- Wechat forum exchange applet system graduation design completion (4) opening report
- Binary tree
- Network security - joint query injection
- 14、 Two methods of database export and import
- Mitsubishi PLC SLmP (MC) protocol
- Some parameters of Haikang IPC
- Wechat forum exchange applet system graduation design (2) applet function
猜你喜欢
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
微信论坛交流小程序系统毕业设计毕设(5)任务书
聊聊 Dart 的空安全 (null safety) 特性
iNFTnews | NFT技术的广泛应用及其存在的问题
肠道里的微生物和皮肤上的一样吗?
Innovation today | five key elements for enterprises to promote innovation
Wechat forum exchange applet system graduation design (5) assignment
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
Wechat forum exchange applet system graduation design (2) applet function
UE4_UE5结合罗技手柄(F710)使用记录
随机推荐
二叉树(Binary Tree)
Personal statement of testers from Shuangfei large factory: is education important for testers?
Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
GEE(三):计算两个波段间的相关系数与相应的p值
Line test - graphic reasoning - 1 - Chinese character class
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
Talk about DART's null safety feature
What does the model number of asemi rectifier bridge kbpc1510 represent
Brush question 4
ArcGIS: two methods of attribute fusion of the same field of vector elements
[record of question brushing] 3 Longest substring without duplicate characters
网络安全-安装CentOS
14、 Two methods of database export and import
消息队列与快递柜之间妙不可言的关系
2021-01-12
UE4_UE5结合罗技手柄(F710)使用记录
Database daily question --- day 22: last login
网络安全-对操作系统进行信息查询
Mitsubishi PLC SLmP (MC) protocol
V20变频器手自动切换(就地远程切换)的具体方法示例