Base solution for your next web application
Open Closed

Linking between two related entities #8416


User avatar
0
alfar_re created

Hi,

I'm wondering how to do this. I have an entity called MyTenant, and another called NextOfKin. NextOfKin has MyTenant as a navigation property which means the Id on MyTenant is a foreign key on NextOfKin. Inside the MyTenant grid, I have added a link inside Actions and I'd like that if a user clicks on the link it opens a modal containing a list of NextOfKins associated with the MyTenant. Is there an easy way to do this?


2 Answer(s)
  • User Avatar
    0
    musa.demir created

    You should implement it yourself. As I understand your entities have one-to-one relationship.

    Steps to do it

    • List tenants with nextofkind id,
    • If your tenant has nextofkin show 'Next of Kin Detail' button.
    • when user click to button open modal which shows detail of nextofkin
  • User Avatar
    0
    alfar_re created

    Alright. I'm trying to follow the flow to implement correctly. Thank you for pointing out.