当前位置:网站首页>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
边栏推荐
- 网络安全-sqlmap与DVWA爆破
- Why does the market need low code?
- Binary tree
- One question per day - pat grade B 1002 questions
- Wechat forum exchange applet system graduation design completion (1) development outline
- Mitsubishi PLC SLmP (MC) protocol
- DTC社群运营怎么做?
- ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
- Understand the session, cookie and token at one time, and the interview questions are all finalized
- PMP project management exam pass Formula-1
猜你喜欢
海内外技术人们“看”音视频技术的未来
Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
消费品企业敏捷创新转型案例
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
七月第一周
Wechat forum exchange applet system graduation design completion (4) opening report
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
Are the microorganisms in the intestines the same as those on the skin?
DTC社群运营怎么做?
随机推荐
One question per day - pat grade B 1002 questions
开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
14、 Two methods of database export and import
Wechat forum exchange applet system graduation design (5) assignment
The wonderful relationship between message queue and express cabinet
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
力扣解法汇总648-单词替换
Unity dynamically merges mesh textures
海内外技术人们“看”音视频技术的未来
USB (十八)2022-04-17
Talk about the design and implementation logic of payment process
Inftnews | web5 vs Web3: the future is a process, not a destination
微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
Locate to the bottom [easy to understand]
Wechat forum exchange applet system graduation design completion (1) development outline
30讲 线性代数 第五讲 特征值与特征向量
Txt file virus
位运算(Bit Operation)
网格(Grid)
What does the model number of asemi rectifier bridge kbpc1510 represent