[Location] Missing Countries

[Location] Missing Countries

  
Forge Component
(8)
Published on 5 Jan by OutSystems Labs
8 votes
Published on 5 Jan by OutSystems Labs

Hi there,


We're using this component and we've found that some countries are missing, such as:

Code
Name
CountryDialCode
AF
Afghanistan

93

AQ
Antarctica

672

CU
Cuba

53

CW
Curacao

599

IR
Iran

98

IQ
Iraq

964

XK
Kosovo

383

LY
Libya

218

KP
North Korea

850

BL
Saint Barthelemy

590

MF
Saint Martin

590

SX
Sint Maarten

1-721

SS
South Sudan

211

EH
Western Sahara

212


It's possible to include this countries in the component?


Thanks,

Ricardo Brito


Hello,


The easiest way is to open the "Location" Plugin and change the Country Entity Expose Reading to No and do the same to CountryState. Then you publish. Now you can go to your application and refresh the dependencies. Now you can add Country and CountryState to the database.


Regards,

João Varela

Hi Ricardo,

To be honest with you, we don't intend this component to contain a comprehensive and up-to-date list of the countries in the world. That's why we designed it to be easily extensible by the user.

My recommendation would be that you add those countries to the Geo.xls resource file and run the bootstrap. Note the bootstrap won't do anything if the DB already has countries:



You can delete all records from the two entities, then run the bootstrap and everything should work as you'd expect.

We will still review our seed data, but I can't give you a timeline or commit to a new version.

Cheers,

Daniel