Displaying Relational Data in TextField

Hi,

I have a CActiveRecord EmployeeLeave with a foreign key as Employee Id . Now in the CActiveForm I want to display the value already saved but instead of displaying the Employee Id I want to display Employee Name which will come from Employee CActiveRecord. How Can I use textfield in ActiveForm to show relational data? If not textField than any other component which will display the value as Employee as a label?

First of all… take a read at the guide - Relational Active Record