I am trying to Filter a lookup with related entities using the AddCustomView but my problem is i need to show more than one field in the lookup droplist
var layoutXml = "<grid name='resultset' object='9700' jump='name' select='1' icon='1' preview='1'>" +"<row name='result' id='entitlementid'>" +"<cell name='name' width='200' />" +"<cell name='cbi_project' width='125' />" +"<cell name='cbi_contratdeservice' width='125' />" +"</row></grid>";
var viewId = "{00000000-0000-0000-0000-000000000003}";
var viewDisplayName = "Filtre Droit";
//add filter
if (_formContext.getControl("entitlementid") != null) {
_formContext.getControl("entitlementid").addCustomView(viewId, "entitlement", viewDisplayName, fetchXml, layoutXml, true);
}here is how it shows

but i need to show it like other default views







