[ 
https://issues.apache.org/jira/browse/OFBIZ-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057032#comment-13057032
 ] 

Sascha Rodekamp commented on OFBIZ-4270:
----------------------------------------

Hey Scott,

thanks for reviewing. 
First my fault with the 1s, defining the indicator field i only thought of 1s 
and 0s :-)

To clarify i added the "GeoWithState" Entity not for validating Postal 
addresses. The point is, for some countries we need this "depend state drop 
down" and for others not. In the assoc table is no clear identifier which could 
be used for this decision. I.E. when you choose GBR (which is divided into 
ENGL, NIRL, WALS, SCOT). The dependent drop down list should show all states 
and substates. But if you choose France it is not necessary display the states. 
For now the "GeoWithState" entity is only a helper entity to create the view 
which is used in the Java Code to filter the states and substates (for the 
countries where it is needed).
Another idea was to put this state list in a property file. But that isn's as 
fast as the entity solution.

I'm open for other ideas and further thoughts :)



> State dropdown only finds states and does not include county information
> ------------------------------------------------------------------------
>
>                 Key: OFBIZ-4270
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4270
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: SVN trunk
>            Reporter: Sam Hamilton
>            Assignee: Sascha Rodekamp
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4270-DependentDropdown.patch, 
> OFBIZ-4270-DependentDropdown.patch
>
>
> If you are on this page 
> https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/newcustomer select 
> USA from the country drop down and it will display all the USA states, 
> similarly it works just fine for Spain but if you try once again with either 
> United Kingdom or France it will show "No States/Provinces exist". 
> Both UK and France have Counties saved in the datamodel but the form does not 
> lookup in the correct location as they are not defined as State. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to