Thank you both, Jaques and Pierre. I appreciate your help!! Regards, Peter
-----Mensaje original----- De: Jacques Le Roux [mailto:[email protected]] Enviado el: lunes, 08 de junio de 2015 3:43 Para: [email protected] Asunto: Re: RV: Geo Data Set for Chile Thanks Pierre, Committed at r1684105 Peter, Good luck with your endeavour with OFBiz, your picked the right project :) Jacques Le 08/06/2015 07:47, Pierre Smits a écrit : > Hi Peter, > > Following issue has been created to get this resolved in trunk: > https://issues.apache.org/jira/browse/OFBIZ-6476 > > Best regards, > > Pierre Smits > > *ORRTIZ.COM <http://www.orrtiz.com>* > Services & Solutions for Cloud- > Based Manufacturing, Professional > Services and Retail & Trade > http://www.orrtiz.com > > On Mon, Jun 8, 2015 at 3:21 AM, Peter Arnold <[email protected]> wrote: > >> Dear Jaques, >> >> Thank you very much for your help. I added the registry as per your >> proposal >> and now it works fine. >> Since I am still an OFBiz newb I will study your response in detail because >> I would like to understand how you found out that this was the missing bit. >> This will require me some time but will be helpful to overcome the >> difficulties I am still having with the system. >> >> As for providing Jira and patches: >> I have to ask you to be patient since I am not an IT engineer but have an >> entirely different background and at the moment I still don't know how to >> generate (and apply) patches. >> However, as soon as I resolve my start up difficulties (with Eclipse, >> OFBiz, >> Java, and so on) rest assured that I will try to contribute the part of my >> work which is of interest to this community. >> >> Peter >> >> -----Mensaje original----- >> De: Jacques Le Roux [mailto:[email protected]] >> Enviado el: sábado, 06 de junio de 2015 17:08 >> Para: [email protected] >> Asunto: Re: Geo Data Set for Chile >> >> Peter, >> >> Solution for you: >> It's obvious if you look at the getAssociatedStateList() service >> implementation (in Java). >> You need to provide a CountryAddressFormat for GeoAssocAndGeoToWithState to >> works well. >> Something like >> <CountryAddressFormat geoId="CHL" geoAssocTypeId="" >> requireStateProvinceId="" requirePostalCode="" postalCodeRegex="" >> hasPostalCodeExt="" >> requirePostalCodeExt="" addressFormat=""/> is enough >> >> All Devs, >> I went unnoticed (a bit by Adrian at >> https://issues.apache.org/jira/browse/OFBIZ-4270?focusedCommentId=13072722 >> ) >> but I think Sascha went a bit too far by forcing CountryAddressFormat into >> GeoAssocAndGeoToWithState which is used into getAssociatedStateList() at >> http://svn.apache.org/viewvc?view=revision&revision=1153402 >> >> 2 solutions: >> * relax this constraint (will work in all cases) >> * provide new CountryAddressFormat for contries missing (when we will add a >> new country could "break" again) >> >> Opinions? >> >> Jacques >> >> Le 05/06/2015 17:05, Jacques Le Roux a écrit : >>> I hope to have a look at your issue tomorrow... >>> >>> Jacques >>> >>> Le 02/06/2015 15:39, Peter Arnold a écrit : >>>> Hi All, >>>> >>>> >>>> I am working on a new customization for Chile based on OFBiz 14.12. >>>> >>>> >>>> I created a new Geo Data set for Chile containing so far the >>>> administrative regions. >>>> >>>> My data set looks as follows: >>>> >>>> >>>> <Geo abbreviation="CL-02" geoCode="CL-02" geoId="CL-AN" >>>> geoName="Antofagasta" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-09" geoCode="CL-09" geoId="CL-AR" >>>> geoName="Araucanía" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-15" geoCode="CL-15" geoId="CL-AP" >>>> geoName="Arica y Parinacota" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-03" geoCode="CL-03" geoId="CL-AT" >>>> geoName="Atacama" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-11" geoCode="CL-11" geoId="CL-AI" >> geoName="Aysén" >>>> geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-08" geoCode="CL-08" geoId="CL-BI" >> geoName="Biobío" >>>> geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-04" geoCode="CL-04" geoId="CL-CO" >>>> geoName="Coquimbo" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-06" geoCode="CL-06" geoId="CL-LI" >>>> geoName="Libertador General Bernardo O'Higgins" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-10" geoCode="CL-10" geoId="CL-LL" >>>> geoName="Los Lagos" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-14" geoCode="CL-14" geoId="CL-LR" >>>> geoName="Los Ríos" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-12" geoCode="CL-12" geoId="CL-MA" >>>> geoName="Magallanes" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-07" geoCode="CL-07" geoId="CL-ML" >> geoName="Maule" >>>> geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-RM" geoCode="CL-RM" geoId="CL-RM" >>>> geoName="Región Metropolitana de Santiago" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-01" geoCode="CL-01" geoId="CL-TA" >>>> geoName="Tarapacá" geoTypeId="STATE"/> >>>> >>>> <Geo abbreviation="CL-05" geoCode="CL-05" geoId="CL-VS" >>>> geoName="Valparaíso" geoTypeId="STATE"/> >>>> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-AN" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-AR" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-AP" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-AT" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-AI" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-BI" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-CO" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-LI" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-LL" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-LR" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-MA" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-ML" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-RM" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-TA" geoAssocTypeId="REGIONS"/> >>>> >>>> <GeoAssoc geoId="CHL" geoIdTo="CL-VS" geoAssocTypeId="REGIONS"/> >>>> >>>> >>>> When I set the country on following screen to Chile: >>>> >>>> https://127.0.0.1:8443/partymgr/control/editcontactmech?partyId=Compa >>>> ny >>>> <https://127.0.0.1:8443/partymgr/control/editcontactmech?partyId=Comp >>>> any&con >>>> tactMechId=9000> &contactMechId=9000 >>>> >>>> >>>> the dropdown for State/Province should show all Chilean regions. >>>> However currently no region is shown and the dropdowns only value is >>>> “No States/Provinces exist”. >>>> >>>> >>>> Does anybody have an idea why the dropdown is not populated with the >>>> regions created with above data set? >>>> >>>> >>>> I would appreciate your help on this issue. >>>> >>>> >>>> Regards, >>>> >>>> Peter >>>> >>>> >>>> >>>> >>>> >>>> --- >>>> Este mensaje no contiene virus ni malware porque la protección de avast! >> Antivirus está activa. >>>> http://www.avast.com >>>> >> >> --- >> Este mensaje no contiene virus ni malware porque la protección de avast! >> Antivirus está activa. >> https://www.avast.com/antivirus >> >> --- Este mensaje no contiene virus ni malware porque la protección de avast! Antivirus está activa. https://www.avast.com/antivirus
