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

Address added into Organisation and Person views

parent b6a2fc88
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,10 @@
<name>1b99eaf7-7ce7-4b7d-bb71-f21e6cae4417</name>
<entityField>STANDARD_PHONE_COMMUNICATION</entityField>
</neonTableColumn>
<neonTableColumn>
<name>4e9d69fc-a072-41b9-a089-0a9c5c1e37c2</name>
<entityField>ADDRESS_ID</entityField>
</neonTableColumn>
</columns>
</tableViewTemplate>
</children>
......
......@@ -32,6 +32,10 @@
<name>eb778e57-1f2d-436e-b22a-e92f7a190606</name>
<entityField>STANDARD_EMAIL_COMMUNICATION</entityField>
</neonTableColumn>
<neonTableColumn>
<name>27d03313-3ec6-438f-b79b-724369316ef3</name>
<entityField>ADDRESS_ID</entityField>
</neonTableColumn>
</columns>
</tableViewTemplate>
</children>
......
......@@ -30,6 +30,32 @@ AddressUtils.formatOneline = function (pCountry, pAddressLine, pBuildingNo, pZip
return StringUtils.concat(", ", [pCountry, pAddressLine, pBuildingNo, pZipCode, pCity]);
};
/**
* returns the formatted address by the ADDRESSID as one line
*
* TODO: Dummy method! Übernahme der Adresslib aus altem Basic
*
* @params {String} pAddressId ADDRESSID of the address which shall be loaded
*
* @return {String} formatted address
*/
AddressUtils.getFormattedOnlineAddressById = function(pAddressId)
{
var addrId = pAddressId;
var addr = "";
if (addrId)
{
var select = "select ADDRESS.COUNTRY, ADDRESS.ADDRESS, ADDRESS.BUILDINGNO, ADDRESS.ZIP, ADDRESS.CITY from ADDRESS ";
var addrData = db.array(db.ROW,
SqlCondition.begin()
.andPrepare("ADDRESS.ADDRESSID", addrId)
.buildSql(select));
addr = AddressUtils.formatOneline.apply(this, addrData);
}
return addr;
}
/**
* Returns the formatted standard address for the contact.
*
......
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