ERP 2.50:Developers Guide/Database Model/org.openbravo.model.ad.ui/AD Field
AD_Field
The Field table defines the Fields displayed within a tab. Changes made to the Field Tab become visible after restart due to caching
- Name:ADField
- Classname:Field
This table contains the following columns:
Name | Nullable | Data Type | Description |
AD_Field_ID | N | VARCHAR2(32) | Any element which can be viewed, edited, or added to 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. |
IsCentrallyMaintained | N | CHAR(1) | A flag indicating that this label is managed in a central repository. |
AD_Tab_ID | N | VARCHAR2(32) | An indication that a tab is displayed within a window. |
AD_Column_ID | Y | VARCHAR2(32) | A link to the database column of the table. |
AD_FieldGroup_ID | Y | VARCHAR2(32) | A classification of similar fields. |
IsDisplayed | N | CHAR(1) | Determines, if this field is displayed |
DisplayLogic | Y | NVARCHAR2(2000) | A specification of statements which, when evaluated as false, cause the field to appear hidden. |
DisplayLength | Y | NUMBER(10, 0) | The number of characters that made be added to a specified field. |
IsReadOnly | N | CHAR(1) | An object which may only be viewed, not edited. |
SeqNo | Y | NUMBER(10, 0) | The order of records in a specified document. |
SortNo | Y | NUMBER(10, 0) | A means of sorting and ordering records in a window. |
IsSameLine | N | CHAR(1) | An indication that the field will display on the same line as the previous one. |
IsFieldOnly | Y | CHAR(1) | Label is not displayed |
IsEncrypted | N | CHAR(1) | An indication noting if the input box of a field will present full text or just asterisks. |
ShowInRelation | Y | CHAR(1) | Show in Grid View |
Isfirstfocusedfield | Y | CHAR(1) | Is First Focused Field |
AD_Module_ID | N | VARCHAR2(32) | Module |
Grid_Seqno | Y | NUMBER(10, 0) | Grid position |
Other Info
Check constraints
These are the check constraints for this table:
- AD_FIELD_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- AD_FIELD_ISCENTRALLYMAINTA_CHK: ISCENTRALLYMAINTAINED IN ('Y', 'N')
- AD_FIELD_ISDISPLAYED_CHK: ISDISPLAYED IN ('Y', 'N')
- AD_FIELD_ISENCRYPTED_CHK: ISENCRYPTED IN ('Y', 'N')
- AD_FIELD_ISFIELDONLY_CHK: ISFIELDONLY IN ('Y', 'N')
- AD_FIELD_ISREADONLY_CHK: ISREADONLY IN ('Y', 'N')
- AD_FIELD_ISSAMELINE_CHK: ISSAMELINE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- AD_FIELD_COLUMN
- AD_FIELD_TAB
Unique
- AD_FIELD_KEY
Columns
Field
The Field identifies a field on a database table.
- Physical column name: AD_Field_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
Central Maintenance
The Centrally Maintained checkbox indicates if the Name, Description and Help maintained in 'System Element' table or 'Window' table.
- Physical column name: IsCentrallyMaintained
- Property Name: centralMaintenance
- Reference: YesNo
- Default value: Y
Tab
- Physical column name: AD_Tab_ID
- Property Name: tab
- Reference: TableDir
- This column is a child for a buisiness object (is Parent)
Foreign key column to AD_Tab table, (column: AD_Tab_ID)
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@
Field Group
- Physical column name: AD_FieldGroup_ID
- Property Name: fieldGroup
- Reference: TableDir
Foreign key column to AD_FieldGroup table, (column: AD_FieldGroup_ID)
Displayed
If the field is displayed, the field Display Logic will determine at runtime, if it is actually displayed
- Physical column name: IsDisplayed
- Property Name: displayed
- Reference: YesNo
- Default value: Y
Display Logic
A specification of statements which, when evaluated as false, cause the field to appear hidden.
- Physical column name: DisplayLogic
- Property Name: displayLogic
- Reference: Text
Displayed Length
Display length is the size that will be appear for the field, it can be different that the actual size of the column (note that if it is bigger than the column the data will be truncated to the column size).
- Physical column name: DisplayLength
- Property Name: displayedLength
- Reference: Integer
- Default value: 0
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
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_Field WHERE AD_Tab_ID=@AD_Tab_ID@
Record Sort No.
The Record Sort No indicates the ascending sort sequence of the records
- Physical column name: SortNo
- Property Name: recordSortNo
- Reference: Integer
Display on Same Line
An indication that the field will display on the same line as the previous one.
- Physical column name: IsSameLine
- Property Name: displayOnSameLine
- Reference: YesNo
Display Field Only
The Field Only checkbox indicates that the column will display without a label.
- Physical column name: IsFieldOnly
- Property Name: displayFieldOnly
- Reference: YesNo
Display Encription
Display encryption - all characters are displayed as '*'. Data storage encryption (i.e. you will not be able to report the data via report tools) is set in the Column definition.
- Physical column name: IsEncrypted
- Property Name: displayEncription
- Reference: YesNo
Show in Grid View
When this field is set as 'Y' the field will be shown in the grid view (as well as in the form view), otherwise it only will be displayed in the form view.
- Physical column name: ShowInRelation
- Property Name: showInGridView
- Reference: YesNo
Is First Focused Field
When it is active this field will be focused by default when the tab is opened.
- Physical column name: Isfirstfocusedfield
- Property Name: isFirstFocusedField
- Reference: YesNo
- Default value: N
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
- Default value: @SQL=SELECT AD_MODULE_ID FROM AD_TAB WHERE AD_TAB_ID = @AD_Tab_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' AND type != 'T'
Grid Position
Position of the column in grid view. If there are fields shown in grid with this property set, they will be placed at first in grid ordered by this value, after them, the rest of fields ordered by their seqNo value.
- Physical column name: Grid_Seqno
- Property Name: gridPosition
- Reference: Integer
- Default value: @SQL=select case when max(grid_seqno) is null then null else max(grid_seqno)+10 end FROM AD_Field WHERE AD_Tab_ID=@AD_Tab_ID@ AND grid_seqno is not null