1. Do I understand correctly that you want to show a table view with columns from 2 different tables?
Important to know is how the two tables are related to each other. The most common way is to create a relation from table1 to table2. Create a form with datasource table1 and with the view-property set to "Table view". Then place a couple of fields from table1 on your form and a couple of fields from table2 using the relation table1_to_table2.
2. Create another form with datasource table1 but now with view set to "Record view" and put all the fields you want on there from table1 or using the relation. By default the two forms will share the same foundset, so you don't have to care about loading records. Now create a method on your first form that shows the second form:
- Code: Select all
forms.yoursecondform.controller.show();
You can attach that method for example to a button on your first form.
Does this answer your question?