Address layouts

How to select and edit address layouts

Address layout of single address

For each address, a special layout can be selected in Vertec. This is used to define how the relevant address should look when printing. The print view is visible on the right of each address:

When a new address is created, the default template of this address type (person, account, etc.) is automatically selected. If you want a different layout, you have two options:

  1. Right-click on View | Layout to open the window with the predefined layout templates. Choose one and click  Apply to select a suitable layout.
  2. Click on Layout. This shows the variable view, where you can manually adjust the layout. To adjust the address layouts, you can use OCL, framed in percent signs %%. You can also enter additional text manually, which is then shown 1:1.

Create and edit templates for layouts

Layout templates can only be edited by the administrator.

Click the New button in the Templates window or select an existing template and click on Edit. This takes you to the Template editor.

Give the template a name. We recommend you choose a name which clearly indicates which address type (account, person, contact, couple and, perhaps, simple address) this template can be selected for.

For each template, you can define whether it should be used as the default for an address type. Only one default can be defined per address type.

The individual fields of the address layout are inserted as OCL expressions. To be recognized as such, you must frame them with percentage signs %%.

Select the desired field from the available fields on the left and click on the button >>. The field is entered as a variable at the cursor position in the right field Address layout. You can also enter text manually. Use the appropriate OCL expressions, framed with %%. Any text that is entered without % signs is shown later in the layout 1:1 like this.

You can also enter OCL expressions in the Form of address and Salutation fields.  

Standard templates for address layouts, form of address and salutation

The following templates are supplied by default for new installations, starting with Vertec 6.8. These templates take into account the different languages and field configurations. If the gender is not specified as male or female, a gender-neutral salutation is used.

Account

Address layout
%name%
%supplement%
%streetaddress%
%zipcode% %city%
%country%
Form of address

For accounts, the form of address remains blank.

Salutation
%if language.asstring='DE' then 'Guten Tag'
else if language.asstring='FR' then 'Bonjour' 
else if language.asstring='IT' then 'Spettabile Ditta' 
else if language.asstring='EN' then 'To whom it may concern' 
else '' endif endif endif endif%

Contact

Address layout
%firma.name%
%person.firstname% %person.name%
%firstname% %name%
%supplement%
%streetaddress%
%zipcode% %city%
%country%
Form of address

If a person is linked, the form of address is applied from the person object.

%if person.notNull then person.formofaddress else
if gender = 'male' then
if language.asstring='DE' then 'Herr'
else if language.asstring='EN' then 'Mr'
else if language.asstring='FR' then 'Monsieur'
else if language.asstring='IT' then 'Signore'
else '' endif endif endif endif
else if gender = 'female' then
if language.asstring='DE' then 'Frau'
else if language.asstring='EN' then 'Ms'
else if language.asstring='FR' then 'Madame'
else if language.asstring='IT' then 'Signora'
else '' endif endif endif endif
else '' endif endif endif%

Salutation

If a person is assigned the letter title is adopted salutation the person object.

%if person.notNull then person.salutation else
if language.asstring='DE' then
if gender = 'male' then 'Sehr geehrter'
else if gender = 'female' then 'Sehr geehrte'
else 'Guten Tag' endif endif
else if language.asstring='FR' then
if gender = 'male' then 'Cher'
else if gender = 'female' then 'Chère'
else 'Bonjour' endif endif
else if language.asstring='IT' then
if gender = 'male' then 'Egregio'
else if gender = 'female' then 'Egregia'
else 'Buon giorno' endif endif
else if language.asstring='EN' then
if gender = 'male' then 'Dear'
else if gender = 'female' then 'Dear'
else 'Dear' endif endif
else '' endif endif endif endif + ' ' +
(if title='' then
if formofaddress='' then firstname else formofaddress endif
else
if language.asstring = 'DE' then
if formofaddress<>'' then formofaddress + ' ' + title else title endif
else title endif endif) endif% %name%

Person

Address layout
%firstname% %name%
%supplement%
%streetaddress%
%zipcode% %city%
%country%
Form of address
%if gender = 'male' then
if language.asstring='DE' then 'Herr'
else if language.asstring='EN' then 'Mr'
else if language.asstring='FR' then 'Monsieur'
else if language.asstring='IT' then 'Signore'
else '' endif endif endif endif
else if gender = 'female' then
if language.asstring='DE' then 'Frau'
else if language.asstring='EN' then 'Ms'
else if language.asstring='FR' then 'Madame'
else if language.asstring='IT' then 'Signora'
else '' endif endif endif endif
else '' endif endif%
Salutation
%if language.asstring='DE' then
if gender = 'male' then 'Sehr geehrter'
else if gender = 'female' then 'Sehr geehrte'
else 'Guten Tag' endif endif
else if language.asstring='FR' then
if gender = 'male' then 'Cher'
else if gender = 'female' then 'Chère'
else 'Bonjour' endif endif
else if language.asstring='IT' then
if gender = 'male' then 'Egregio'
else if gender = 'female' then 'Egregia'
else 'Buon giorno' endif endif
else if language.asstring='EN' then
if gender = 'male' then 'Dear'
else if gender = 'female' then 'Dear'
else 'Dear' endif endif
else '' endif endif endif endif% %if title='' then
if formofaddress='' then firstname else formofaddress endif
else
if language.asstring = 'DE' then
if formofaddress<>'' then formofaddress + ' ' + title else title endif
else title endif endif% %name%

Couple

Address layout
%personA.firstname% %personA.name%
%firstnameA% %nameA%
%personB.firstname% %personB.name%
%firstnameB% %nameB%
%supplement%
%streetaddress%
%zipcode% %city%
%country%
Form of address The FormOfAddress for couples belongs to the respective person and is either applied by the person or not entered. This means that the FormOfAddress for couples remains blank and is entered manually if necessary.  
Salutation

If persons are assigned, the salutation is applied over from the person objects. Without the person objects (i.e. if only names were entered on the couple), the gender of the addressees remains unknown and the salutation is gender-neutral. The salutation for couples is 2-line.

%if personA.notNull then personA.salutation else
if language.asstring='DE' then 'Guten Tag '
else if language.asstring='FR' then 'Bonjour '
else if language.asstring='IT' then 'Buon giorno '
else 'Dear ' endif endif endif + firstnameA + ' ' + nameA endif%
%if personB.notNull then personB.salutation else
if language.asstring='DE' then 'Guten Tag '
else if language.asstring='FR' then 'Bonjour '
else if language.asstring='IT' then 'Buon giorno '
else 'Dear ' endif endif endif + firstnameB + ' ' + nameB endif%

Simple address

Address layout
%firstname% %name%
%zuHanden%
%supplement%
%streetaddress%
%zipcode% %city%
Form of address
%if gender = 'male' then
if language.asstring='DE' then 'Herr'
else if language.asstring='EN' then 'Mr'
else if language.asstring='FR' then 'Monsieur'
else if language.asstring='IT' then 'Signore'
else '' endif endif endif endif
else if gender = 'female' then
if language.asstring='DE' then 'Frau'
else if language.asstring='EN' then 'Ms'
else if language.asstring='FR' then 'Madame'
else if language.asstring='IT' then 'Signora'
else '' endif endif endif endif
else '' endif endif%
Salutation
%if language.asstring='DE' then
if gender = 'male' then 'Sehr geehrter'
else if gender = 'female' then 'Sehr geehrte'
else 'Guten Tag' endif endif
else if language.asstring='FR' then
if gender = 'male' then 'Cher'
else if gender = 'female' then 'Chère'
else 'Bonjour' endif endif
else if language.asstring='IT' then
if gender = 'male' then 'Egregio'
else if gender = 'female' then 'Egregia'
else 'Buon giorno' endif endif
else if language.asstring='EN' then 'Dear'
else '' endif endif endif endif% %if title<>'' then
if language.asstring = 'DE' then
if formofaddress<>'' then formofaddress + ' ' + title else title endif
else title endif
else formofaddress endif% %if forattention<>'' then forattention else
if title<>'' then name else
if formofaddress='' then firstname + ' ' + name else name endif endif endif%

Address abroad

The post office recommends that you write the country of destination in French or English on the last line of the address. The ISO country code is now only to be indicated on the waybill for urgent shipments and parcel shipments.

Example:

1035 SE Amsterdam
Netherlands

Delete address layout

To delete an address layout template, select it in the template editor and click delete:

You should keep in mind the following:

  • Do not delete any address layout templates that have been defined as the default for an address type (see above).
  • Make sure that there is at least one template for each address type. Otherwise, new addresses do not have an automatic address layout.
  • Deleting the address layout template does not change the existing addresses. If you want to change the address layout of the current address, you can do so on the address as described here.

Block selection / editing of address layouts

You can control the processing of address information via user rights on the relevant attributes.

The selection of address layout templates and the editing of the layout can be controlled separately via the user rights. The user rights for this are linked to the Adresslayout.adresslayout member.

For example, if you do not want address administrators to be able to select a different address pattern or change the layout information themselves, you can revoke the write permission on this member.

Netherlands

United Kingdom