Address Formatting - including Country

Did we ever manage to get to the point that $country could be used in an address format?  
Currently it appears they are linked to a State lookup but not directly available in the address archetype.

Cheers

Ben

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Address Formatting - including Country

There isn't a $country variable, but you can still include the country using a custom Address Format.

1. Go to Administration -> Lookups

2. Create a new Address Format

3. Enter a name. e.g. My Address Format

4. In the Single Line Format field enter:

concat(expr:concatIf($address, ', '),expr:concatIf(toUpperCase($suburb), ' '),expr:concatIf($state.code, ' '),$postcode, expr:concatIf(' ', openvpms:get(.,'state.target.source.name')))

5. In the Multi-line Format field enter:

concat(expr:concatIf($address, $nl),expr:concatIf(toUpperCase($suburb), ' '),expr:concatIf($state.code, ' '),$postcode, expr:concatIf($nl, openvpms:get(.,'state.target.source.name')))

6. Click OK

7. Go to Administration -> Organisation

8. Edit the Practice

9. In the Address Format field, select 'My Address Format' and click OK

Syndicate content