Initialize the data of RecordDetail view.