Hi R.S.,
those steps were just another method of adding data to the database,
of course you don't need to that explicitly,
it's done automatically by "ant run-install" (or any other command which
loads seed data) if you have added the data to "GeoData_DE.xml"
(or may be you want to add it any other data file of your project, just
for the sake of not editing OOTB files)
--
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, that works great. But what about the lines I added to the
"dataGeoData_DE.xml" file? Will they only be loaded when I run an
installation again?
The link
https://demo-stable.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=GeoAssocAndGeoTo
causes an error like
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://webtools/widget/EntityScreens.xml#FindGeneric]:
org.ofbiz.base.util.GeneralException: Error running Groovy script at
location
[component://webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy]
( ............
Best Regards,
Rudolf
Atul Vani schrieb:
Hi R.S.,
The deprecated warning is coz of "EntityExpr" you can use
"EntityCondition" instead.
About GeoAssocAndGeoTo, rel-optional is not something that would be
of help here. and with just the data loaded properly it should show up.
I tried it on demo-stable server and it works for me. you can verify
it from
https://demo-stable.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=GeoAssocAndGeoTo
just in case, if you need steps,
1. goto https://localhost:8443/webtools/control/EntityImport
2. paste the data below and hit 'Import Text button.
<GeoAssoc geoId="DE" geoIdTo="DE-BW" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-BY" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-BE" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-BR" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-HB" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-HH" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-HE" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-MV" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-NI" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-NW" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-RP" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-SL" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-SH" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-SN" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-SA" geoAssocTypeId="REGIONS"/>
<GeoAssoc geoId="DE" geoIdTo="DE-TH" geoAssocTypeId="REGIONS"/>
3. verify the data from
https://localhost:8443/webtools/control/FindGeneric?entityName=GeoAssocAndGeoTo