Struggling displaying data from multiple datasets on a dynamic page

Did you ever sort this out? I’m trying to do the same thing. There doesn’t seem to be a way of linking primary keys?