When the app first loads, this does not work. Regardless of what record hyperlink is clicked in the datatable, the first record is always retrieved and displayed in the form. Navigating back to the datatable and selecting subsequent records works as expected.
I think this is a bug whereby the first time the app loads, Datatable.Selected.ID will always be the first record in the collection regardless of the record that was selected. I am aware that the first record will be the default selected, but selecting a different record should change the value of Selected.ID