Replacing hard coded data in a editable grid

Hi

Have been playing around with the editable grid used in:

https://docs.appian.com/suite/help/19.2/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html

I've a CDT called Employee with the same structure, and have created a constant for it, and also the following expression rule (called "EmployeeData") to return the data:

a!queryEntity(
entity: cons!EMPLOYEE_DSE,
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: "title"),
a!queryColumn(field: "phoneNumber"),
a!queryColumn(field: "startDate"),
}
),
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: 50
)
)
)

Am struggling to replace the hard coded data in the editable grid code, with the CDT though.  What do I need to put it in to replace the { hard coded data}?

Many thanks

David

  Discussion posts and replies are publicly visible