I can let the user key it all into one text field and they can then be responsible for international formats. Downside I lose visibility of things like Country and City from a systems point of view.
I can alternatively specify the various components of an address. Upside City and Country are visible. Downside is that it is hard to generate a letter with the address formatted.
My idea was to parse the address into a text block that the user doesn't see but gets used by queries etc.
My plan was to parse these in a field on the Country reference data and use EXEC_STRING and it works quite well except I don't seem to be able to use conditional statements in there. For example not all addresses might have a Line2, so if you just build up the block text as
Code: Select all
Address.Block=Address.Line1+CR()+Address.Line2+CR()+Address.City+' '+Address.PostCode+CR()+Address.Country
I could buy a plug in that does address parsing, but the cost of that was prohibitive (~$10k). Does anyone have any suggestions as to how to loop in conditional statements and EXEC_STRING?
The solution would need to be relatively straightforward - ie encapsulatable in a repeatable format which is why EXEC_STRING looked attractive.