Grid Tutorial

hi! i'am at the 8. populate display section Step and i have this problem.

the sail interface is this:

{
a!columnsLayout(
columns: {
a!columnLayout(
contents: {
a!localVariables(
local!selection,
local!selectedEmployees,
{
a!gridField(
label: "Read-only Grid",
labelPosition: "ABOVE",
data: a!queryEntity(
entity: cons!EMPLOYEE_ENTITY,
query: a!query(
selection: a!querySelection(
columns: {
a!queryColumn(
field: "id"
),
a!queryColumn(
field: "firstName"
),
a!queryColumn(
field: "lastName"
),
a!queryColumn(
field: "department"
),
a!queryColumn(
field: "startDate"
)
}
),
pagingInfo: fv!pagingInfo
),
fetchTotalCount: true
),
columns: {
a!gridColumn(
label: "First Name",
sortField: "firstName",
value: fv!row.firstName
),
a!gridColumn(
label: "Last Name",
sortField: "lastName",
value: fv!row.lastName
),
a!gridColumn(
label: "Department",
sortField: "department",
value: a!richTextDisplayField(
value: {
a!richTextItem(
text: {fv!row.department},
color: if(fv!row.department="Sales", "SECONDARY", null),
style: {
"EMPHASIS"
}
)
}
)
),
a!gridColumn(
label: "Start Date",
sortField: "startDate",
value: fv!row.startDate,
align: "END"
)
},
pagesize: 5,
initialsorts: {
a!sortInfo(
field: "lastName",
ascending: true
)
},
selectable: true,
selectionvalue: local!selection,
selectionsaveinto: {
local!selection,
/* This save adds the full rows of data for items selected in the most recent user interaction to local!selectedEmployees. */
a!save(local!selectedEmployees, append(local!selectedEmployees, fv!selectedRows)),
/* This save removes the full rows of data for items deselected in the most recent user interaction to local!selectedEmployees. */
a!save(local!selectedEmployees, difference(local!selectedEmployees, fv!deselectedRows))
},
disablerowselectionwhen: fv!row.department="Sales",
validations: {}
)
}
)
},
width: "WIDE"
),
a!columnLayout(
contents: {
a!richTextDisplayField(
label: "Selected Employees",
labelPosition: "ABOVE",
value: a!forEach(
items: local!selectedEmployees,
expression: {
a!richTextIcon(
icon: "user-circle"
),
" "&fv!item.firstName &" "&fv!item.lastName&char(10)
}
)
)
}
)
}
)
}

  Discussion posts and replies are publicly visible