Data from model using foreign key

I’ve got two models, Article and Order Row. The relationship is Article -> OrderRow is 1…n and OrderRow -> Article is 1. In my mobile view for the OrderRow Form, i can only access the Article id. How do I access model Article’s content(say other attribute data) using Article id?

In the image above, I want my article to read Pizza scone instead of the long id number being displayed. How do i access that attribute?

Hi Avinash,
To get the related Article record for OrderRow, you can preload the relation Article in orderRow. You can find preload relations section on form config view. You can then access article name as OrderRow.Article.Name

1 Like