diff --git a/process/Context_lib/process.js b/process/Context_lib/process.js index 15f89e3062e8334558b7707a2053df2efa50d7f2..4073611e2fb4a9c36f3758942d2630a08bfe32de 100644 --- a/process/Context_lib/process.js +++ b/process/Context_lib/process.js @@ -262,9 +262,16 @@ ContextUtils.getSelectMap = function() return { "Organisation": ContextSelector.create("ORGANISATION", "ORGANISATIONID", "NAME") ,"Person": ContextSelector.create("CONTACT", "CONTACTID") - .setTitleExpression(new ContactTitleRenderer(Contact.createWithColumnPreset()).asSql()) + .setTitleExpression(maskingUtils.concat([ + new ContactTitleRenderer(Contact.createWithColumnPreset()).asSql() + ,"' - '"//looks pretty bad; TODO: workaround till Lookups can be loaded over a link-entity; then use displayProc + ,"defaultAddress.ADDRESS", "defaultAddress.BUILDINGNO" + ,"' - '" + ,"defaultAddress.COUNTRY", "defaultAddress.ZIP", "defaultAddress.CITY" + ]," ")) .setJoinExpression("join PERSON on PERSON.PERSONID = CONTACT.PERSON_ID \n\ - join ORGANISATION on ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID") + join ORGANISATION on ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID\n\ + left join ADDRESS defaultAddress on defaultAddress.ADDRESSID = CONTACT.ADDRESS_ID") ,"Activity": ContextSelector.create("ACTIVITY", "ACTIVITYID", "SUBJECT") ,"Salesproject": ContextSelector.create("SALESPROJECT", "SALESPROJECTID") .setTitleExpression(maskingUtils.concat([