Using relationships in local variable

In my Appian Exercise, I have a interface where i'm getting a record of particular record type ("employee") using a rule and storing it in local variable.

a!localVariables(
local!employeeDetails: rule!EE Employee("1"),

i'm using this local variable in textfield. 

a!textField(
label: "Employee Department",
labelPosition: "JUSTIFIED",
value: local!employeeDetails[recordtype!EE Employee.relationships.EE Department.fields.departmentName],
characterLimit: 255,
readOnly: true
),

This large font coding is not fetching me value, giving null value

Please help

  Discussion posts and replies are publicly visible