I’m new to backendless and really enjoying the learning experience. I’m building my first app and have hit a roadblock I can’t find a solution for. I have 2 tables - call them Clients and Contacts - where one client can have many contacts, but one contact can only have one client. I’ve created the relationship ok and the records display correctly in the Data module, but when I try to display the Contact details on a page that will include the Client name as well, I don’t know how to refer to the “One” (Client) side of the relationship. Here’s the visual schema:
but my problem is I don’t know how to refer to the Client info when I want to display it on a page:
I can refer to the child from the parent side no problems, but don’t know how to do it the other way around.
by @mark-pillerTopic 2799 was the one that helped me by pointing out I needed to reference the objectId component in my context - it wasn’t implied. For anyone else who might run into this, here is the solution that worked for me:
It wouldn’t work until I explicitly referenced objectId - I thought that the value of “selectedContact” would be sufficient because it was referencing a primary key, but I was wrong.