Hi Bas,
Is this in your admin model? I use the following in my model function called getForm($data = array(), $loadData = true).
// Get the form.
$form = $this->loadForm(
'com_mycomponent.transaction',
'transaction',
array('control' => 'jform',
'load_data' => $loadData )
);