When all table definitions and generation for form definitions for all main and subforms are done, this function is triggered. It goes trough the definitions and loads data for the form and subform in correct order and fills all into the form. When all data is loaded the actions are made connected to the buttons.