我想要做的是将查找对话框更改为默认为查找对话框上的特定实体类型。
在 Connection 表单上,我检查了 record1id 实体类型并尝试在 record2id 上设置 defaulttype 属性
我通过以下方式最接近实现这一目标:
document.getElementById("record2id").setAttribute("lookuptypenames","incident:112:Case");
document.getElementById("record2id").setAttribute("lookuptypes","112");
document.getElementById("record2id").setAttribute("defaulttype","112"); // Case
Xrm.Page.getControl("record2id").setDefaultView("{9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59}");
上面将查找对话框类型选择限制为仅事件(不是我想要的,但我正在尝试一种“没有废话”的方法!)但即使我尝试将默认视图设置为其他内容,视图仍保持联系!
我基本上没有关于如何破解这个东西的想法,所以任何其他想法都会很棒。
谢谢