Unfetched attribute access error

I get the message “Unfetched attribute access error” on an edit screen. I have created a standard screen for an entity and this entity has a many-to-one relation to a status. My assumption is that it does not get the attributes from this related status entity. Should I have created a view for the main entity that includes the attributes of the related entities like status or are there other ways to resolve this? What is the preferred way?

Regards, Edwin.

Hi Edwin,
Exactly, you have to specify all required attributes (including related entities and their attributes) in a view that is used in the datasource of your screen.
A view is an only way to describe the graph of entities loaded from the database to the client tier.