Tuesday, September 23, 2008

Formatting the Address base object in XAF

By default the base address object displays the FullAddress using the format:

County + State + Street + City + Zip

If your applications are going to be used outside US probably you may want to use another format like this for Spain:

Street + Zip + City + Country

This DevExpress KB article shows you how.

In a XAF web application I do it in the Session Start event:

protected void Session_Start(Object sender, EventArgs e)
{
//...

AddressImpl.FullAddressFormat = "{Street} {ZipPostal} {City}";

}

No comments: