I am using the SelfServicing model, and am having trouble figuring out how to follow the object tree to retrieve a child entity in a 1:n relationship.
Take the following example:
ProspectEntity:
PK - CustomerID
ProspectContactEntity:
PK - CustomerID, OrderID
I fetch the Prospect Entity, and fill a grid using the Prospect.ProspectContact collection. When a user clicks on a specific contact row, I want to then present them with the contact details.
I would like to be able to retrieve this object via the collection. How would I accomplish this?
I am currently creating a new Entity and fetching it using the CustomerID, and OrderID. My problem with this is when the user updates information in the "New" Entity, the collection no longer reflects the "current" entity. The only way I can find to reference an entity in the collection is by using Index. But information in the grid does not have an Index, so I don't have a way point back to the entity.
Thanks for the help, and sorry for what is probably and amateur question.