Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

addCustomFilter is lost when grid view is refreshed

$
0
0

I set up a filter as

function Form_OnLoad()
...
preFilterLookup();
..
}
function preFilterLookup() {
    Xrm.Page.getControl("a_team").addPreSearch(function () {
        addLookupFilter();
    });
}
function addLookupFilter() {
    var fetchXml = ".....";
    Xrm.Page.getControl("a_team").addCustomFilter(fetchXml);    
}


It gives me correct row results in the lookup view dialog, but filter is lost when I refresh the grid?


Why is happening this?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>