doo.model.modelMetadata

In this chapter, you will learn how to find out information about the currently open form.

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.

Properties

 

  • doo.model.modelMetadata.currentForm
    Metadata of the opened form (table ID and name, level of nesting).
     
  • doo.model.modelMetadata.currentForm.level
    Level of nesting in the hierarchy of open forms - the form at the first level has level = 1.
     
  • doo.model.modelMetadata.currentForm.tableId
    ID of the table to which the open form belongs.
     
  • doo.model.modelMetadata.currentForm.tableInternalName
    Internal name of the table to which the open form belongs.
     
  • doo.model.modelMetadata.currentForm.tableName
    Header of the table to which the open form belongs.
     
  • doo.model.modelMetadata.currentForm.isWidget
    Whether the script was called from a form detail as a widget.
     
  • doo.model.modelMetadata.parentModel
    Metadata of all hierarchically opened parent forms.
     
  • doo.model.modelMetadata.parentModel.modelMetadata
    Metadata of the parent form and its all hierarchically opened parent forms.