Data is displaying in subpanel and list view but not displaying in detail view

I created a new module and made a one-to-many relationship with the contact module.
In the contact subpanel fields data is displaying that I am saving using bean. In the Module list view data is also displaying. But in the detail view data is not showing, even I edit the record but the changes display in the subpanel and list view, not displaying in detail view.