Skip to content
Snippets Groups Projects
Commit 1d3268e6 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

context_lib-definition: added standard address to person

parent bb23e4f7
No related branches found
No related tags found
No related merge requests found
......@@ -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([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment