Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

Filtered Lookup with FetchXML

$
0
0

Hi everyone!

I 've used in the past fetchxml in order to presearch a lookup , however it doesn't seem to work on this case. I have a boolean Field Occupied and i want to get all map codes that are not occupied.

function preFilterLookup() {

Xrm.Page.getControl("ral_mapcode").addPreSearch(function ()

	{
     addLookupFilter();
   });
}
function addLookupFilter() {
       var fetchXml = "<filter type='and'><condition attribute='ral_occupied' operator='eq' value='" 'No' "' /></filter>";
		Xrm.Page.getControl("ral_mapcode").addCustomFilter(fetchXml);
    //}
}


I was wondering if need to change the value to False but that didn't work as well. Any ideas?


Viewing all articles
Browse latest Browse all 143529

Trending Articles



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