当前位置:网站首页>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
边栏推荐
猜你喜欢
数据库每日一题---第22天:最后一次登录
海内外技术人们“看”音视频技术的未来
Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
iNFTnews | NFT技术的广泛应用及其存在的问题
Brush question 3
iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
JMeter-接口自动化测试读取用例,执行并结果回写
JMeter interface automated test read case, execute and write back result
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
十三、系统优化
随机推荐
Inftnews | the wide application of NFT technology and its existing problems
14、 Two methods of database export and import
十四、数据库的导出和导入的两种方法
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Wechat forum exchange applet system graduation design (5) assignment
Locate to the bottom [easy to understand]
Handling file exceptions
Network security - phishing
[record of question brushing] 3 Longest substring without duplicate characters
三菱PLC slmp(mc)协议
Introduction to anomaly detection
2021-01-11
OC variable parameter transfer
2022 words for yourself
定位到最底部[通俗易懂]
Advantages and disadvantages of rest ful API
JMeter interface automated test read case, execute and write back result
Dynamics 365 查找字段过滤
Redhat下安装fedora
Specific method example of V20 frequency converter manual automatic switching (local remote switching)