I guess the problem is, that the DB connector returns a table just as SQL always does. Mendix interpretes this as list of objects (each line is an object, each column is an attribute). You first need to store the result in a single entity that has all the attributes (Make shure attribute names match result table column names). After the db call, you can now start to split that up into multiple entities if needed.
Excuse Asdreas,
How do I save the result of the microflow in an entity?
I've done the following ... I've created a non-persistent entity, a microflow with the non-persistent entity object, and a query (left join) that returns the result in a list of objects. And I use this microflow in a templateGrid.
This works for me. But I don't know how to load data into entities previously to use them as datasource. I mean, I don't know how to display the query result in an entity instead of a list.