If you need to find out information about the currently opened form, such as table identifiers, flag, whether the form is displayed as an edit form or read-only record detail in the widget, or you need to read/change the model of the parent form, the doo.model.modelMetadata
property is designed for that.
doo.model.modelMetadata.currentForm
doo.model.modelMetadata.currentForm.level
doo.model.modelMetadata.currentForm.tableId
doo.model.modelMetadata.currentForm.tableInternalName
doo.model.modelMetadata.currentForm.tableName
doo.model.modelMetadata.currentForm.isWidget
doo.model.modelMetadata.parentModel
doo.model.modelMetadata.parentModel.modelMetadata