Studio - selection country

I have a form with a field country (selection). I wan to display in the selection value the countries in Application config > Organisation > Terrories > Countries
How to do?

Welcome to Axelor Community
Enjoy the journey with us.

For your question, here I am assuming this country field is dummy field (Dummy means it’s not there in domain model of your form) you have added in your form.
So to make it referenced to Country domain model so that you will have its records in your field as a list,
you need to specify type="reference", target="com.axelor.apps.base.db.Country" & widget="many-to-one".
Something like
<field name="country" type="reference" target="com.axelor.apps.base.db.Country" widget="many-to-one" title="Country"/>

Thank you

It work!
thanks a lot !

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.