Again, you can build everything by hand, but the Wizard makes it easy. The fastest way to a master-detail relationship goes as follows:

Create the master as described above. Then repeat the Wizard, only select the master application as the module name. This will not create a new module, but append the code the existing one. After generating you have two separate forms on your screen, a panel with the master and a panel with the client. And two sets of table/datasource. By setting up the master source in the detail table you define the master-detail relationship. In short:


  • Select the DBTable referring to the detail.
  • Select the property ‘master data source’ and select the datasource of the master table.
  • Select the property ‘master data mapping’ and define the relationship: Click on the master key in the left panel, click on the key in the right detail panel. Now select the collect button (button with the down arrow). If your key is more complex then repeat these steps for each key. 
  • If  not already, set the caching property of the detail dataset to false.
  • Generate and run the application.