I have come across a similar issue. In my case the attributes that did not display in the datagrid were also from referenced entities. The datagrid was contained in a dataview with the datasource set to an association.
As a workaround, I found I could solve the issue by changing the datasource of the datagrid to Database, and using an xpath constraint using the reference and the currentObject, like
[Sales.MyTempSales_SalesCalls = '[%CurrentObject%]']
I hope this helps until they can fix this bug.
This has been open for three months now! When will this be fixed?
Could you file a ticket with a test project for this bug? Preferably in the Mendix 5.1.1 version so we can easily see the old correct behavior.
Could you please file a ticket for this with an attached testproject? More cases will provide more insight as some have different cases.
Is there a ticket registered? If yes, I would like to know the status. I'm having the same issues here.
When we removed all (1 in our case) calculated / virtual attribute from the datagrid with empty columns the issue was resolved and all columns display the data again. Have updated the service call.
We had a similar issue (when paging through grids references were not refreshed correctly) and reported this in the Beta stage of Mendix 5 so I have no ticket number of that. Our issue was solved in Mendix 5.4
Ticket 100002 was created for this issue and has been resolved in Mendix 5.6.0