ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.domain/AD Ref Table
AD_Ref_Table
- Name:AD_Ref_Table
- Classname:ADReferencedTable
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | CHAR (1) | 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. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
AD_Display | No | VARCHAR (32) | The Display Column indicates the column that will display. |
IsValueDisplayed | No | CHAR (1) | The Display Value checkbox indicates if the value column will display with the display column. |
Hqlorderbyclause | Yes | VARCHAR (2000) | |
Hqlwhereclause | Yes | VARCHAR (2000) | By using this HQL filter, the user will never be able to see data that does not fit the criteria. The HQL where clause is added to the query to retrieve the data which is returned by the datasource |
AD_Key | No | VARCHAR (32) | The Key Column indicates that this the unique identifier of a record on this table. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
AD_Reference_ID | No | VARCHAR (32) | The Reference indicates the type of reference field |
OrderByClause | Yes | NVARCHAR (2000) | The ORDER BY Clause indicates the SQL ORDER BY clause to use for record selection |
WhereClause | Yes | NVARCHAR (2000) | 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". |
AD_Table_ID | No | VARCHAR (32) | The Table indicates the table in which a field or fields reside. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Displayed Column
- Physical column name: AD_Display
- Property Name: displayedColumn
- Reference: Table
Foreign key column to AD_Column table, (column: AD_Column_ID)
It has a validation "AD_Column must be in AD_Table", with the following code
AD_Column.AD_Table_ID=@AD_Table_ID@
Displayed Value
- Physical column name: IsValueDisplayed
- Property Name: displayedValue
- Reference: YesNo
- Default value: N
Hqlorderbyclause
- Physical column name: Hqlorderbyclause
- Property Name: hqlorderbyclause
- Reference: String
Hqlwhereclause
- Physical column name: Hqlwhereclause
- Property Name: hqlwhereclause
- Reference: String
Key Column
- Physical column name: AD_Key
- Property Name: keyColumn
- Reference: Table
Foreign key column to AD_Column table, (column: AD_Column_ID)
It has a validation "AD_Column must be in AD_Table", with the following code
AD_Column.AD_Table_ID=@AD_Table_ID@
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Reference
- Physical column name: AD_Reference_ID
- Property Name: reference
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
SQL Order by Clause
- Physical column name: OrderByClause
- Property Name: sQLOrderByClause
- Reference: Text
SQL Where Clause
- Physical column name: WhereClause
- Property Name: sQLWhereClause
- Reference: Text
Table
- Physical column name: AD_Table_ID
- Property Name: table
- Reference: Table
Foreign key column to AD_Table table, (column: AD_Table_ID)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Check Constraints
These are the check constraints for this table:
- AD_REF_TABLE_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- AD_REF_TABLE_ISVALUEDISPLA_CHK: ISVALUEDISPLAYED IN ('Y', 'N')
![]() | Back to org.openbravo.model.ad.domain |