ERP/2.50/Developers Guide/Database Model/org.openbravo.model.ad.ui/AD Tab
AD_Tab
The Tab Tab defines each Tab within a Window. Each Tab contains a discrete selection of fields.
- Name:ADTab
- Classname:Tab
This table contains the following columns:
| Name | Nullable | Data Type | Description |
| AD_Tab_ID | N | VARCHAR2(32) | An indication that a tab is displayed within a window. |
| AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
| AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
| IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
| Created | N | DATE | The date that this record is completed. |
| CreatedBy | N | VARCHAR2(32) | User who created this records |
| Updated | N | DATE | x not implemented |
| UpdatedBy | N | VARCHAR2(32) | User who updated this records |
| Name | N | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
| Description | Y | NVARCHAR2(255) | A space to write additional related information. |
| Help | Y | NVARCHAR2(2000) | A comment that adds additional information to help users work with fields. |
| AD_Table_ID | N | VARCHAR2(32) | A dictionary table used for this tab that points to the database table. |
| AD_Window_ID | N | VARCHAR2(32) | A work area which can be used to create, view, edit, and process a record. |
| SeqNo | N | NUMBER(10, 0) | The order of records in a specified document. |
| TabLevel | N | NUMBER(10, 0) | Hierarchical Tab Level (0 = top) |
| IsSingleRow | N | CHAR(1) | Default for toggle between Single- and Multi-Row (Grid) Layout |
| IsInfoTab | Y | CHAR(1) | This tab contain accounting information |
| IsTranslationTab | N | CHAR(1) | This tab contains translation information |
| IsReadOnly | N | CHAR(1) | An object which may only be viewed, not edited. |
| AD_Column_ID | Y | VARCHAR2(32) | A link to the database column of the table. |
| HasTree | N | CHAR(1) | Window has Tree Graph |
| WhereClause | Y | NVARCHAR2(2000) | A specification of the SQL WHERE clause used for permanently filtering displayed data. |
| OrderByClause | Y | NVARCHAR2(2000) | A specification of the SQL ORDER BY clause used for a displayed default sort of records. |
| CommitWarning | Y | NVARCHAR2(2000) | A warning or information displayed when saving the record. |
| AD_Process_ID | Y | VARCHAR2(32) | A series of actions carried out in sequential order. |
| Processing | Y | CHAR(1) | A request to process the respective document or task. |
| AD_Image_ID | Y | VARCHAR2(32) | A visual picture used to describe an item. |
| ImportFields | Y | CHAR(1) | Create Fields from Table Columns |
| AD_ColumnSortOrder_ID | Y | VARCHAR2(32) | Column determining the order |
| AD_ColumnSortYesNo_ID | Y | VARCHAR2(32) | Column determining if a Table Column is included in Ordering |
| IsSortTab | N | CHAR(1) | The Tab determines the Order |
| Included_Tab_ID | Y | VARCHAR2(32) | Included Tab in this Tab (Master Dateail) |
| FilterClause | Y | NVARCHAR2(2000) | Filter clause |
| EditReference | Y | VARCHAR2(32) | The form referenced in the edition command |
| AD_Module_ID | N | VARCHAR2(32) | Module |
Other Info
Check constraints
These are the check constraints for this table:
- ADTAB_HASTREE_CHECK: HASTREE IN ('Y', 'N')
- ADTAB_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- ADTAB_ISINFOTAB_CHECK: ISINFOTAB IN ('Y', 'N')
- ADTAB_ISREADONLY_CHECK: ISREADONLY IN ('Y', 'N')
- ADTAB_ISSINGLEROW_CHECK: ISSINGLEROW IN ('Y', 'N')
- ADTAB_ISTRANSLATIONTAB_CHECK: ISTRANSLATIONTAB IN ('Y', 'N')
- ADTAB_NAME_CHECK: INSTR(NAME, TO_CHAR('_')) = 0
Indexes
These are the indexes for this table (for each idex there is a list of the columns included within it):
Non Unique
- AD_TAB_TABLE
- AD_TAB_WINDOW
Unique
- AD_TAB_KEY
- AD_TAB_WINDOW_NAME_UNIQUE
Columns
Tab
The Tab indicates a tab that displays within a window.
- Physical column name: AD_Tab_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Name
A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Help/Comment
The Help field contains a hint, comment or help about the use of this item.
- Physical column name: Help
- Property Name: helpComment
- Reference: Text
Table
- Physical column name: AD_Table_ID
- Property Name: table
- Reference: TableDir
Foreign key column to AD_Table table, (column: AD_Table_ID)
Window
- Physical column name: AD_Window_ID
- Property Name: window
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a buisiness object (is Parent)
Foreign key column to AD_Window table, (column: AD_Window_ID)
Sequence Number
The Sequence indicates the order of records
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_Tab WHERE AD_Window_ID=@AD_Window_ID@
Tab Level
Hierarchical level of the tab. If the level is 0, it is the top entity. Level 1 entries are dependent on level 0, etc.
- Physical column name: TabLevel
- Property Name: tabLevel
- Reference: Integer
Default Edit Mode
The Single Row Layout checkbox indicates if the default display type for this window is a single row as opposed to multi row.
- Physical column name: IsSingleRow
- Property Name: defaultEditMode
- Reference: YesNo
Accounting Tab
The Accounting Tab checkbox indicates if this window contains accounting information.
- Physical column name: IsInfoTab
- Property Name: accountingTab
- Reference: YesNo
Translation Tab
The Translation Tab checkbox indicate if a tab contains translation information.
- Physical column name: IsTranslationTab
- Property Name: translationTab
- Reference: YesNo
Read Only
The Read Only indicates that this field may only be Read. It may not be updated.
- Physical column name: IsReadOnly
- Property Name: readOnly
- Reference: YesNo
Column
- Physical column name: AD_Column_ID
- Property Name: column
- Reference: TableDir
Foreign key column to AD_Column table, (column: AD_Column_ID)
Validation Rule AD_Column must be in AD_Table: Table must be previously defined. With the following code:
AD_Column.AD_Table_ID=@AD_Table_ID@
Tree Included
The Has Tree checkbox indicates if this window displays a tree metaphor.
- Physical column name: HasTree
- Property Name: treeIncluded
- Reference: YesNo
SQL Where Clause
The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".
- Physical column name: WhereClause
- Property Name: sQLWhereClause
- Reference: String
SQL Order by Clause
The ORDER BY Clause indicates the SQL ORDER BY clause to use for record selection
- Physical column name: OrderByClause
- Property Name: sQLOrderByClause
- Reference: String
Confirmation Message
Warning or information displayed when committing the record
- Physical column name: CommitWarning
- Property Name: confirmationMessage
- Reference: Text
Process
- Physical column name: AD_Process_ID
- Property Name: process
- Reference: TableDir
Foreign key column to AD_Process table, (column: AD_Process_ID)
Validation Rule AD_Process Reports: null. With the following code:
AD_Process.IsReport='Y'
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Image
- Physical column name: AD_Image_ID
- Property Name: image
- Reference: TableDir
Foreign key column to AD_Image table, (column: AD_Image_ID)
Import Fields
Create Fields from Table Columns, this process will create the fields that don't exists in the tab but which exist in the correspondent table.
- Physical column name: ImportFields
- Property Name: importFields
- Reference: Button
Order Column
- Physical column name: AD_ColumnSortOrder_ID
- Property Name: orderColumn
- Reference: Table
Foreign key column to AD_Column table, (column: AD_Column_ID)
Reference Table AD_Column Integer With the following where clause:
AD_Column.AD_Reference_ID='11'
Validation Rule AD_Column must be in AD_Table: Table must be previously defined. With the following code:
AD_Column.AD_Table_ID=@AD_Table_ID@
Included Column
- Physical column name: AD_ColumnSortYesNo_ID
- Property Name: includedColumn
- Reference: Table
Foreign key column to AD_Column table, (column: AD_Column_ID)
Reference Table AD_Column YesNo With the following where clause:
AD_Column.AD_Reference_ID='20'
Validation Rule AD_Column must be in AD_Table: Table must be previously defined. With the following code:
AD_Column.AD_Table_ID=@AD_Table_ID@
Sequence Tab
The Tab determines the Order.
- Physical column name: IsSortTab
- Property Name: sequenceTab
- Reference: YesNo
- Default value: N
Included Tab
- Physical column name: Included_Tab_ID
- Property Name: includedTab
- Reference: Table
Foreign key column to AD_Tab table, (column: AD_Tab_ID)
Reference Table AD_Tab
Validation Rule AD_Tab in Window: null. With the following code:
AD_Tab.AD_Window_ID=@AD_Window_ID@
Filter Clause
Filter clause
- Physical column name: FilterClause
- Property Name: filterClause
- Reference: Text
Master Detail Form
- Physical column name: EditReference
- Property Name: masterDetailForm
- Reference: Table
Foreign key column to AD_Form table, (column: AD_Form_ID)
Reference Table AD_Form With the following where clause:
AD_Form.isActive = 'Y'
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
- Default value: @SQL=SELECT AD_MODULE_ID FROM AD_WINDOW WHERE AD_WINDOW_ID = @AD_Window_ID@
Foreign key column to AD_Module table, (column: AD_Module_ID)
Validation Rule Ad_Module_ID IsInDevelopment: AD_Module_ID IsInDevelopment. With the following code:
IsInDevelopment = 'Y'
Related tables
Tables that link this table:
- ADAlertRule.Tab
- ADAuxiliaryInput.Tab
- ADField.Tab
- ADModelImplementation.Tab
- ADTab.Included Tab
- ADTabTrl.Tab

