Hi R.S.,

When you will add the data mentioned
and re-install the data (or you can also use webtools' import facility),
the view entity will get populated automatically :)

--
Thanks & Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


R. S. wrote:
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"/>

Reply via email to