Discussion:
Split Address
(too old to reply)
cardomjar
2010-09-22 14:33:03 UTC
Permalink
Hello,

¿Is there any way to split an Address?.
I mean, suppose you have the formated address field (with street name.
zipcode, city, state...) and you want to know the value of single address
element.

Example. Imagine the formated address is:

LUIS CHAMIZO, 16
06470 GUAREÑA
BADAJOZ
España

If you want to know the zip Code, it should return '06470'
If you want to Know the city, it should retun 'GUAREÑA'

I think the method should receive, at least, three parameters. Something like:

static str getAddress(Addressing _addressing, //
Formated address
AddressElement _addressElement, //
Element to retrieve
AddressFormatId _formatId) // ¿Where must we
look for?

.....


Any idea?
Thanks in advance

Carlos
SysProg
2010-09-22 19:53:04 UTC
Permalink
Ummmm.. These are broken out into seperate fields. Check table Address
Post by cardomjar
Hello,
¿Is there any way to split an Address?.
I mean, suppose you have the formated address field (with street name.
zipcode, city, state...) and you want to know the value of single address
element.
LUIS CHAMIZO, 16
06470 GUAREÑA
BADAJOZ
España
If you want to know the zip Code, it should return '06470'
If you want to Know the city, it should retun 'GUAREÑA'
static str getAddress(Addressing _addressing, //
Formated address
AddressElement _addressElement, //
Element to retrieve
AddressFormatId _formatId) // ¿Where must we
look for?
.....
Any idea?
Thanks in advance
Carlos
Loading...