Once the click triggers on the input, a modal dialog with the primary attributes from the relationship table will be shown. Once the row is selected, get the id of the element and add it to the input. The top of the table will also have a search for each column to find the element fasater (see devextreme tables/views as example)