Hi everyone.
I have a js code to create a filtered lookup and it is working well:
It's just a pre filter to show only entities "associated with the actual BPF step:
...
Xrm.Page.getControl("header_process_mypfx_salesstatus").addPreSearch(function () { fetchXml = "<filter type='and'><condition attribute='mypfx_relatedentity' operator='eq' value='" + entityName + "' /><condition attribute='mypfx_stepname' operator='eq' value='" + stepName + "' /></filter>"; Xrm.Page.getControl("header_process_mypfx_salesstatus").addCustomFilter(fetchXml); });
...
I have to change this to always show all possible options for this "mypfx_salesstatus" entity, even when a value is already selected. For example:
If there's no values at the lookup field, it's working fine:
But, after select one value and search for another value only one option appears:
it seams to have a "default filter" to look for entities where its name contains part of the string inside the lookup box and, only after that, it insert my custom filter.
How can i do that?
Thanks
*This post is locked for comments