Summary
A warning-and-modal flow isn't working because the code checks
table1.selectedRow?.datato determine whether a table row has been selected, but that expression never returns a value.AI Response
In the current Table component,
selectedRowreturns the selected row's data object directly and is null/undefined when nothing is selected — there is no nested.datasub-property (that structure belonged to the classic Table component). Referencingtable1.selectedRow?.datatherefore always yields undefined, so the empty-selection branch never behaves as intended. Reference the row directly instead and test it for null, e.g.const row = table1.selectedRow; if (!row) { utils.showNotification({ title: 'No patient selected', description: 'Please select a patient from the table first.', notificationType: 'warning' }); } else { modalFrame3.show(); }. Confirm the exact shape by inspectingtable1.selectedRowin the state/left panel while a row is and isn't selected.Sources
Property 'selectedRow' doesn't work
Solved topic clarifying that the new Table component's selectedRow is referenced directly rather than through a nested property, which is the root cause here.
Table SelectedRow is not working
Solved report of selectedRow appearing not to work, with guidance on correctly accessing the selected row's values.
The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a
,
, or
. Or by marking this post as the "Solution"! Let us know if you have any feedback here. ![]()