Thank You Atul,
I saw that the method "getAssociatedStateList()" doesn`t support German
states and that is the reason I asked.
The entries are already in the "dataGeoData_DE.xml" file. It seems that
"getAssociatedStateList()" use the "GeoAssocAndGeoTo" View Entity
and I don't know why the German States are not in this View Entity. Is
it possible to change this to show the German States in this View Entity
too? Temporally I did this in
"framework/common/webcommon/includes/states.ftl" :
<#assign states =
Static["org.ofbiz.common.CommonWorkers"].getStateList(delegator)>
<#list states as state>
<#if '${state.geoId}'?starts_with("DE-")>
<option
value='${state.geoId}'>${state.geoName?default(state.geoId)}</option>
</#if>
</#list>
Regards
Rudolf
Atul Vani schrieb:
Hi R.S.,
using this method "getAssociatedStateList()" should be appropriate
from the "CommonWorkers.java"
but seem like there's no supporting data of German States is present
either.
So, you will need to Edit ofbiz_trunk/framework/common/dataGeoData_DE.xml
and add entries like below for each State
<GeoAssoc geoId="DE" geoIdTo="DE-BW" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-BY" geoAssocTypeId="REGIONS"/>