We are developing a master detail screen with 2 tables.
Table 1 is ObjectsList
Table 2 is ObjectsSchedule
SQL Query for Table 2 is
SELECT *
FROM Schedule
WHERE ObjectID = {{ ui.ObjectsList.selectedRow ? ui.ObjectsList.selectedRow.data.id : -1 }};
seledctedrow would be the selected row in ObjectsList
We get an error
{
name: “TypeError”,
message: “Cannot read properties of undefined (reading ‘selectedRow’)”
}
When we enter {{, on some screens it provides a pop up of variables for each component. On the screen we are on, it doesn’t.
Any ideas please on how to resolve this?
Many thanks
According to the error, the property ObjectList in the ui object is undefined. Meaning, at the time the action with this query ran, there was no component called ObjectList on the page. So, was the action called on the wrong page or maybe the name is misspelled?
Be careful not to use the Title of the table component but it’s name:
Here in the blue box
Here on top
If you think everything is correct and should work, if you could share more detailed how everything is set up we might spot the issue.
And about the {{ popup not appearing, specifically what screen or screens do not show the popup?