How can I define address line labels in QAS Pro or Pro Web?

Document type: Tech doc  
Associated product(s): Product name: Pro Version: 4.0 + (more products)
Product name: Pro Web Version: 4.0 + Implementation: Web API

Views: 532  |  Created: 2 years agoLast updated: 2 years ago

How can I define address line labels in QAS Pro or Pro Web?

Summary

Output address lines can have associated labels – if a line is defined to contain a single, fixed element (e.g. Town), the label for this element is generated automatically. However, auto-formatted lines and lines with multiple elements do not have labels by default. This document describes how to define custom labels for these lines and how to override automatic labels.

Solution

This can be achieved by manually amending the qawserve.ini configuration file. For a particular address line, the tagging setting ‘T’ should be specified. This setting should be last, and thus after any object level tag codes.

In the example below, the first line of the address is labelled ’House Number & Street’, the third line ‘Town or City ‘, the fourth line ‘County’ and the fifth ‘Postal Code’.

The corresponding qawserve.ini, which was amended for that particular layout, contains the following settings:

GBRAddressLine1=W60,P11,S11,THouse Number & Street

GBRAddressLine2=W60

GBRAddressLine3=W60,L21,TTown or City

GBRAddressLine4=W60,L11,TCounty

GBRAddressLine5=W60,C11,TPostal Code

As well as being displayed in the Pro user interface, the labels can be retrieved as part of a formatted line in the Primary API for Pro and in Pro Web.

Was this document helpful?

What can we do to improve this information?