Generate a Model with value preloaded

0
Consider a scenario where i have list of values which i want to add to Model and later use those values in UI Dropdown. for ex. I have list of Cities and i want to store them in City Entity so later i can use the list of cities to show in dropdown. Something like SeedData in other programming languages. How can i do this ?
asked
2 answers
0

Create a microflow that creates all those objects. You could take a look in the Country Enumeration module for instance as an example.

https://marketplace.mendix.com/link/component/1775

 

Regards,

Ronald

 

answered
0

You can create a MF which creates all those objects.

The best thing to do is to call this MF as a SUB MF on the AfterStartUp MF. See this link on how to use the AfterStartup MF.

answered