Entities with array/list attributes

0
What is the best way to define an entity with Array of values for an attribute as below TestEntity name (String) desc (String) types (String[])   Also want to know how do I populate values for such entities in Java action and return the values to app and show on page
asked
2 answers
0

Hi Mohan,

Here is the link to the runtime api documentation. 

https://apidocs.mendix.com/7/runtime/

 

What are you trying to accomplish? Any reason why you can't do what Ronald suggested, and use a microflow?

answered
0

You cannot use arrays/lista as attribute. Instead use associations in the domain model. It is just a one to many association between two entities which is conceptually the right way to model what you want to accomplish. Furthermore only use java as a last resort.

answered