Issues:
Changes in category effect custom filtering, then the lookup display on form will corrupt but when u click on lookup more its ok.
Script:
var filter = '';
function FilterListingViewCategory(Value) {
filter = "<filter type='and'>" +
"<condition attribute='statecode' operator='eq' value='0' />" +
"<condition attribute='vwlzs_category' operator='in'>" +
"<value>" + RegistrationId + "</value>" +
"</condition>" +
"</filter>";
preFilterLookupCategory(filter);
}
function preFilterLookupCategory(filter) {
Xrm.Page.getControl("vwlzs_aidcategorylk").addPreSearch(function () {
addLookupFilterCategory(filter);
});
}
function addLookupFilterCategory(filter) {
Xrm.Page.getControl("vwlzs_aidcategorylk").addCustomFilter(filter);
}
CRM 2013 Javascript Filter Custom Lookup View Field (PreFiltering Method)
Posted by Unknown at 1/13/2015 03:10:00 pm
Labels: CRM 2013, Javascript
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment