Base solution for your next web application
Open Closed

Create enums from table fields #6415


User avatar
0
rbreton created

Hello everyone,

Please an example of how to build an enum by populating the data of a field in a database.

Thanks in advanced.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    rbreton created

    Hi @ismcagdas,

    For example, I need to show in the UI a combobox with the list of cities populated from city table . Additional that I can apply filters on the records to show.

    When creating or editing a record of the customer table I can assign the city that corresponds to it

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rbreton,

    You can find samples of this in AspNet Zero. For example, check Roles filter combobox on the user list page. You can use same combobox in the edit modal as well.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)