Create list activity to return a list of objects but instead returns nothing

0
How can I use the create list activity to return a list of items to use in the list widget. For example I have a microflow, with only the “Create list” activity, at the end of it the list is returned…. In the list view, the microflow is called. The result on the page is a message “No items found”. This pretty much self explanatory that the “Create list” activity didn’t create anything. There is this documentation https://docs.mendix.com/studio-how-to/pages-how-to-configure-list and also https://docs.mendix.com/howto/logic-business-rules/working-with-lists-in-a-microflow I feel as though they are a touch half baked and no thorough example on how to generate the data. For example: In working with lists in a microflow documentation it states: 4. Add the following customer data to your app: 5. Add the following order data to your app: How exactly can the above two points be achieved for example if I wanted to use mockdata or whatever. How can create the data in the microflow so that I can populate the list in the List view?
asked
3 answers
1

You have to create objects and add them to the list. For example if you want a list of buildings, you can retrieve all the buildings, add them to the list, and return the list.

But if you want a better answer, maybe you can share a brief summery of what you're trying to achieve and some screenshots of your microflow.

answered
0

Hi Mathew,

The ‘Create List’ action just creates an empty list of the selected object. From your explaination I understand that you just used the ‘Create List’ action and returned it as it is. In order to return something, you need to populate the list first by creating objects of the specified entity and adding it to your created list using ‘Change List’ action activity.

I believe you just want to create mock data for your app. To do so you can create overview and new edit pages for the entity of which you want to create mock data for. The best way to create those pages would be to right click on your entity and Generate overview pages. Add the overview page to your navigation and you can then create data yourself over frontend.

answered
0

If one want a list of items. Create an entity with a 1 * relationship. For example a building with many departments.

Create this object in a microflow. and then create many items in a mocroflow with each item having an association to the parent building. 

This how things are in mendix. In terms of creating the departments alone as a collection, array. Don’t think that’s currently possible to achieve in mendix.

answered