Data Table Component - On Record Select Logic

Hi,

I’m adapting the “CRM” blueprint for my own use and using the Data Table Component to view a table, however I cannot figure out how to pass data to view a single record using “On Record Select”. In my app I’m using a clone of the “peopleUpdate” screen, which requires the objectId of the record and an “update” boolean.

The Data Table Component displays the records of the Employees database fine, but I cannot get the selected Employee record to appear in the update screen.

The existing Blueprint uses this logic (pictured), but it doesn’t seem to work from the Data Table Component when I swap “table container item Data” for “Selected Record” in the logic. Is there something I need to add to the “On Record Select” logic?

My pages are zsimpleEmployees for the Data Table and zEmployeeUpdate for the record view.

Thanks in advance.

Hello @Neil_Campbell,

It seems like your Data Table component from the zsimpleEmployees page uses the EmployeesView as a source. This View has next fields: First Name, Last Name, Position, Department, Phone, Email and Start Date, but not objectId.
So when you’re trying to get objectId for the selected record it is null. Please modify the EmployeesView by adding the objectId field.

Regards,
Olha

Thank you Olha - clearly I was looking in the wrong place!

Can you tell me if the Data Table Component can display JSON objects? It doesn’t seem to work for me - I just get empty results

Hello @Neil_Campbell,

the Data Table should display it, but can’t now. I’ve created an internal ticket (BKNDLSS-27613) in order to fix this.

Regards,
Stanislaw