ERP/2.50/Developers Guide/Database Model/org.openbravo.model.ad.domain/AD Reference
AD_Reference
The Reference Tab defines the references that are used to validate data
- Name:ADReference
- Classname:Reference
This table contains the following columns:
Name | Nullable | Data Type | Description |
AD_Reference_ID | N | VARCHAR2(32) | The data type of this field. |
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. |
ValidationType | Y | VARCHAR2(60) | Different method of validating data |
VFormat | Y | NVARCHAR2(40) | x not implemented |
AD_Module_ID | N | VARCHAR2(32) | Module |
IsBaseReference | N | CHAR(1) | Base Reference |
ParentReference_ID | Y | VARCHAR2(32) | Subreference's parent reference |
Model_Impl | Y | VARCHAR2(300) | Java class implementing Model. |
WAD_Impl | Y | VARCHAR2(300) | Java class implementing WAD |
UI_Impl | Y | VARCHAR2(300) | Java class implementing runtime UI. |
IsValueDisplayed | N | CHAR(1) | Displays Value column with the Display column |
Other Info
Check constraints
These are the check constraints for this table:
- AD_REFERENCE_ISACTIVE_CHECK: ISACTIVE 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):
Unique
- AD_REFEREMCE_KEY
- AD_REFERENCE_NAME
Columns
Reference
The Reference indicates the type of reference field
- Physical column name: AD_Reference_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
Validation Type
The Validation Type indicates the validation method to use. These include list, table or data type validation.
- Physical column name: ValidationType
- Property Name: validationType
- Reference: List
List values: AD_Reference Validation Types
The allowed values for this list are:
- D (DataType): DataType
- L (List Validation): List Validation
- S (Search Validation)
- T (Table Validation): Table Validation
Value Format
Value Format is the format the value will be displayed with.
- Physical column name: VFormat
- Property Name: valueFormat
- Reference: String
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
- Default value: @SQL=SELECT MAX(AD_MODULE_ID) FROM AD_MODULE WHERE ISDEFAULT='Y'
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'
IsBaseReference
Base References are the ones that can be directly applied to a column. Base references can define subreferences.
- Physical column name: IsBaseReference
- Property Name: isBaseReference
- Reference: YesNo
- Default value: N
ParentReference_ID
- Physical column name: ParentReference_ID
- Property Name: parentReference
- Reference: Table
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
Reference Table AD_Reference Data Types With the following where clause:
AD_Reference.IsBaseReference='Y'
Model_Impl
Java class implementing Model. It is the java class used to generate DAL classes.
- Physical column name: Model_Impl
- Property Name: modelImpl
- Reference: String
WAD_Impl
Java class implementing WAD
- Physical column name: WAD_Impl
- Property Name: wADImpl
- Reference: String
UI_Impl
Java class implementing runtime UI.
- Physical column name: UI_Impl
- Property Name: impl
- Reference: String
Displayed Value
The Display Value checkbox indicates if the value column will display with the display column.
- Physical column name: IsValueDisplayed
- Property Name: displayedValue
- Reference: YesNo
- Default value: N
Related tables
Tables that link this table:
- ADColumn.Reference
- ADColumn.Reference Search Key
- ADList.Reference
- ADModelImplementation.Reference
- ADProcessParameter.Reference
- ADProcessParameter.Reference Search Key
- ADReference.ParentReference_ID
- ADReferenceTrl.Reference
- ADReferencedTable.Reference
- ADSelector.Reference