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

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 82002

Latest Images

Trending Articles



Latest Images