You can only display one single Object of your entity in a dataview. If you want to show “all” question objects, you can only do this in a DataGrid, TemplateGrid or ListView.
If you want to show a single Object, you can do this in a dataview. You can retrieve it via an association from the object wrapped around your dataview (but this only works if the assiciation is 1-1 or *-1) or by doing it in a microflow. But you need to return one single object and not a list.
If you want to retrieve all questions from your database and display them in a data view widget in Mendix, you can follow these steps:
Create a Microflow:
Add a 'Retrieve' Action:
Configure the 'Retrieve' Action:
Create a Page:
Add a Data View Widget:
Configure Data Source:
Add Widgets to Display Questions:
Test:
Here's a brief outline of the steps in Mendix Studio Pro:
Create Microflow:
Add Retrieve Action:
Create Page:
Add Data View:
Configure Data Source:
Add Widgets:
Test:
Make sure that your microflow is correctly configured, and the attributes you want to display in the Data View are included in the microflow. If you encounter issues, check the console for any error messages that might provide insight into the problem.
Most easy way is to go to the Domain model, right click on the entity and ‘Generate overview pages’. That will give you pages Question_Overview and Question_NewEdit. The first will have a datagrid containing the answers.
NB. A Dataview that you mention, only shows one object of the entity.
i THink all the answers are correct