table views and relationship

I have two table views on one form (the second in a tab panel). The top one is related to the bootom one in a one2many relationship.

Then I do the following:

  • I add a new record to the top table via a button
  • I fill the fields with data without exiting the row
  • I add a new record to the bottom table via a button…

The result now is a non-related-table. When I exit the top record/row first before making the new related record there is no issue anymore…

This looks like a bug. I should think the relationship is there right after adding the record…

if you do a saveData() in the new script of the second button then everything is fine?

Can you send over a solution ?

Johan, thanks… This solves the issue!