Dynamics CRM 365 窗体的Lookup字段通过JS按照某个字段过滤数据

Dynamics CRM 365 窗体的Lookup字段通过JS按照某个字段过滤数据

function form_load() {
    Xrm.Page.getControl("new_remarktemplate").addPreSearch(addFilternew_remarktemplate);
}
function addFilternew_remarktemplate() { var conditionStr = "<condition attribute='new_remarktype' operator='eq' value='" + remarktype[0].id + "' />" var filterStr = "<filter type='and'>" + conditionStr + "</filter>"; Xrm.Page.getControl("new_remarktemplate").addCustomFilter(filterStr, "new_srv_remarktemplate"); }
原文地址:https://www.cnblogs.com/parkerchen/p/13525211.html