ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.datamodel/AD Column
AD_Column
- Name:AD_Column
- Classname:ADColumn
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. |
AllowFiltering | No | CHAR (1) | If checked, the column will be filterable. By default every column is filterable. If it is unchecked, the column will not be filterable. |
AllowSorting | No | CHAR (1) | If checked, the column will be sortable. By default every column is sortable. If it is unchecked, the column will not be sortable. |
Allowed_Cross_Org_Link | No | CHAR (1) | By default references to other objects are only allowed in case the referenced object's Organization is in the referencing object's Organization's natural tree than the object.
When this flag is enabled, this default behavior can be overridden allowing to reference objects outside current's natural tree. Note this does not change the objects that can be referred from GUI, this constraint can only be programatically bypassed. |
AD_Element_ID | Yes | VARCHAR (32) | The System Element allows for the central maintenance of help, descriptions and terminology for a database column. |
AD_Callout_ID | Yes | VARCHAR (32) | The callout that will be fired when the content of a is modified. |
Callout | Yes | NVARCHAR (60) | Function Calls separated by semicolons; SE_/SL_/UE_/UL_ - 1st: System/User; 2nd: Enter/Leave; 3rd: _ Underscore, - then Function Name |
Is_Child_Property_In_Parent | No | CHAR (1) | In case of one to many references (foreing keys) this flag indicates whether a property will be created in the parent (target) entity. For example in OrderLine.order property, if this field is flagged, an Order.orderLineList property would be created. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
AD_Column_ID | No | VARCHAR (32) | Link to the database column of the table |
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. |
ColumnName | No | VARCHAR (40) | The Column Name indicates the name of a column on a table as defined in the database. |
IsDesencryptable | Yes | CHAR (1) | This option is deprecated. Instead one of the new references "Password (decryptable)" or "Password (not-decryptable)" should be used instead. |
DefaultValue | Yes | NVARCHAR (2000) | The defaults are evaluated in the order of definition, the first not null value becomes the default value of the column. The values are separated by comma or semicolon. a) Literals:. 'Text' or 123 b) Variables - in format @Variable@ - Login e.g. #Date, #AD_Org_ID, #AD_Client_ID - Accounting Schema: e.g. $C_AcctSchema_ID, $C_Calendar_ID - Global defaults: e.g. DateFormat - Window values (all Picks, CheckBoxes, RadioButtons, and DateDoc/DateAcct) c) SQL code with the tag: @SQL=SELECT something AS DefaultValue FROM ... The SQL statement can contain variables. There can be no other value other than the SQL statement. The default is only evaluated, if no user preference is defined. Default definitions are ignored for record columns as Key, Parent, Client as well as Buttons. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
Developmentstatus | Yes | VARCHAR (60) | Development Status defines the status of a table or a column. Ready means that this object is in use, Not Implemented Yet indicates that currently it is not in use but it is planned to be implemented and Deprecated are the objects that are going to be removed from the application in future versions. |
IsEncrypted | No | CHAR (1) | This option is deprecated. One of the new references "Password (decryptable)" or "Password (not-decryptable)" should be used instead. |
EM_OBUIAPP_Process_ID | Yes | VARCHAR (32) | Process to be executed by the button. There are 2 kinds of processes:
|
Entity_Alias | Yes | VARCHAR (2000) | The left part definition of a column in an HQL query. |
IsExcludeAudit | No | CHAR (1) | If the value is 'Y' ,then this column is excluded from audit. |
IsSelectionColumn | No | CHAR (1) |
If selected, this column will be used in the Search Window as an available filter criteria. |
Help | Yes | NVARCHAR (2000) | The Help field contains a hint, comment or help about the use of this item. |
IsIdentifier | No | CHAR (1) | The Identifier checkbox indicates that this column is part of the identifier or key for this table |
Imageheight | Yes | DECIMAL (10,0) | Height used in the "Image Size Values Action" field. If it is empty, it will not be taked into account. |
Imagesizevaluesaction | No | VARCHAR (60) | Action or restriction that will be performed in the uploaded image size using "Image Width" and "Image Height" values.
It does not apply to scalable vector graphics (svg). |
Imagewidth | Yes | DECIMAL (10,0) | Width used in the "Image Size Values Action" field. If it is empty, it will not be taked into account. |
Isautosave | No | CHAR (1) | If the value is 'Y' the autosave flag will be put in the form and the Autosave process will be triggered |
IsKey | No | CHAR (1) | The key column must also be display sequence 0 in the field definition and may be hidden. |
FieldLength | No | DECIMAL (10,0) | The Length indicates the length of a column as defined in the database. |
IsParent | No | CHAR (1) | The Parent checkbox indicates if this column is a link to the parent table. |
IsMandatory | No | CHAR (1) | The Mandatory checkbox indicates if the field is required for a record to be save to the database. |
ValueMax | Yes | NVARCHAR (20) | The Maximum Value indicates the highest allowable value for a field |
ValueMin | Yes | NVARCHAR (20) | The Minimum Value indicates the lowest allowable value for a field. |
AD_Module_ID | No | VARCHAR (32) | Indicates the module the element forms part of. |
Name | No | NVARCHAR (60) | 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. |
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. |
Position | Yes | DECIMAL | Determines the physical column position in database. It is a mandatory field which value is unique for all the columns within the same table. |
AD_Process_ID | Yes | VARCHAR (32) | The Process field identifies a unique Process or Report in the system. |
ReadOnlyLogic | Yes | NVARCHAR (2000) | Logic to determine if field is read only (applies only when field is read-write) |
AD_Reference_ID | No | VARCHAR (32) | The Reference indicates the type of reference field |
AD_Reference_Value_ID | Yes | VARCHAR (32) | The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. |
IsSecondaryKey | Yes | CHAR (1) | Is secondary key |
SeqNo | Yes | DECIMAL (10,0) | The Sequence indicates the order of records |
Sqllogic | Yes | VARCHAR (2000) | This field is used to define a computed column. A computed column is a column of a table which is computed using a sql expression and which does not exist explicitly in the database schema. More information can be found at http://wiki.openbravo.com/wiki/How_to_create_a_Computed_Column |
IsSessionAttr | Yes | CHAR (1) | Checking this field the data for this column will be stored as session attribute so its content will be accessible from other tab. |
AD_Table_ID | No | VARCHAR (32) | The Table indicates the table in which a field or fields reside. |
IsTransient | No | CHAR (1) | Mark if a column is transient and will be ignored when comparing data |
isTransientCondition | Yes | VARCHAR (2000) | Java expression that will be evaluated and if the result is false, the column will be marked as transient |
IsTranslated | No | CHAR (1) | The Translated checkbox indicates if this column is translated. |
IsUpdateable | No | CHAR (1) | The Updateable checkbox indicates if a field can be updated by the user. |
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. |
IsUsedSequence | No | CHAR (1) | Column which DB column name is "Value", can use automatic sequence numbers, to do so this check needs to be marked. When a "Value" column uses automatic sequence works in a similar way document number columns work: when user creates a new record the default value is based in the next available sequence number (based on the sequence for the table). |
ValidateOnNew | No | CHAR (1) | Indicates whether validations and callouts are executed when a new record is created. In general is should be set to Y. It makes sense to disable only in case there are callouts or validations associated to this column and it is known that when a new record is created they do not change any value; in this case this check allows to bypass their execution improving performance. |
AD_Val_Rule_ID | Yes | VARCHAR (32) | The Validation Rule indicates a unique validation rule. These rules define how an entry is determined to valid or invalid. |
VFormat | Yes | NVARCHAR (60) | Value Format is the format the value will be displayed with. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
AllowFiltering
- Physical column name: AllowFiltering
- Property Name: allowFiltering
- Reference: YesNo
- Default value: Y
AllowSorting
- Physical column name: AllowSorting
- Property Name: allowSorting
- Reference: YesNo
- Default value: Y
Allowed Cross Organization Reference
- Physical column name: Allowed_Cross_Org_Link
- Property Name: allowedCrossOrganizationReference
- Reference: YesNo
- Default value: N
Application Element
- Physical column name: AD_Element_ID
- Property Name: applicationElement
- Reference: OBUISEL_Selector Reference
- This column is a child for a business object (is Parent)
Foreign key column to AD_Element table, (column: AD_Element_ID)
Callout
- Physical column name: AD_Callout_ID
- Property Name: callout
- Reference: TableDir
Foreign key column to AD_Callout table, (column: AD_Callout_ID)
Callout Function
- Physical column name: Callout
- Property Name: calloutFunction
- Reference: String
Child Property in Parent Entity
- Physical column name: Is_Child_Property_In_Parent
- Property Name: childPropertyInParentEntity
- Reference: YesNo
- Default value: N
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@)
Column
- Physical column name: AD_Column_ID
- Property Name: id
- Reference: ID
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
DB Column Name
- Physical column name: ColumnName
- Property Name: dBColumnName
- Reference: String
- This column is part of the table's identifier
De-encryptable
- Physical column name: IsDesencryptable
- Property Name: deencryptable
- Reference: YesNo
- Default value: N
Default Value
- Physical column name: DefaultValue
- Property Name: defaultValue
- Reference: Text
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Development Status
- Physical column name: Developmentstatus
- Property Name: developmentStatus
- Reference: List
- Default value: RE
List values: Development Status
The allowed values for this list are:
- RE (Ready)
- NI (Not Implemented Yet)
- DP (Deprecated)
- CC (Custom Code)
Display Encription
- Physical column name: IsEncrypted
- Property Name: displayEncription
- Reference: YesNo
- Default value: N
EM_OBUIAPP_Process_ID
- Physical column name: EM_OBUIAPP_Process_ID
- Property Name: oBUIAPPProcess
- Reference: Table
Foreign key column to OBUIAPP_Process table, (column: Obuiapp_Process_ID)
Entity Alias
- Physical column name: Entity_Alias
- Property Name: entityAlias
- Reference: String
Exclude Audit
- Physical column name: IsExcludeAudit
- Property Name: excludeAudit
- Reference: YesNo
- Default value: N
Callout: SL_TableAudit
This column has a callout associated.
It is implemented by [1] Java Class.
Filter Column
- Physical column name: IsSelectionColumn
- Property Name: filterColumn
- Reference: YesNo
- Default value: N
Help/Comment
- Physical column name: Help
- Property Name: helpComment
- Reference: Text
Identifier
- Physical column name: IsIdentifier
- Property Name: identifier
- Reference: YesNo
- Default value: N
Image Height
- Physical column name: Imageheight
- Property Name: imageHeight
- Reference: Integer
Image Size Values Action
- Physical column name: Imagesizevaluesaction
- Property Name: imageSizeValuesAction
- Reference: List
- Default value: N
List values: Image Sizes Value Action
The allowed values for this list are:
- N (None)
- ALLOWED (Allowed - Exact size)
- ALLOWED_MINIMUM (Allowed - Minimum size)
- ALLOWED_MAXIMUM (Allowed - Maximum size)
- RECOMMENDED (Recommended - Exact size)
- RECOMMENDED_MINIMUM (Recommended - Minimum size)
- RECOMMENDED_MAXIMUM (Recommended - Maximum size)
- RESIZE_NOASPECTRATIO (Resize - Exact resize (without maintaining aspect ratio))
- RESIZE_ASPECTRATIO (Resize - Closest to the maximum size (maintain aspect ratio))
- RESIZE_ASPECTRATIONL (Resize - Closest to the maximum size only if larger image)
Image Width
- Physical column name: Imagewidth
- Property Name: imageWidth
- Reference: Integer
Isautosave
- Physical column name: Isautosave
- Property Name: isautosave
- Reference: YesNo
- Default value: Y
Key Column
- Physical column name: IsKey
- Property Name: keyColumn
- Reference: YesNo
- Default value: N
Callout: SL_Column
This column has a callout associated.
It is implemented by [2] Java Class.
Length
- Physical column name: FieldLength
- Property Name: length
- Reference: Integer
- Default value: 0
Link to Parent Column
- Physical column name: IsParent
- Property Name: linkToParentColumn
- Reference: YesNo
- Default value: N
Mandatory
- Physical column name: IsMandatory
- Property Name: mandatory
- Reference: YesNo
- Default value: N
Max. Value
- Physical column name: ValueMax
- Property Name: maxValue
- Reference: String
Min. Value
- Physical column name: ValueMin
- Property Name: minValue
- Reference: String
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
- Default value: 0
Foreign key column to AD_Module table, (column: AD_Module_ID)
It has a validation "Ad_Module_ID IsInDevelopment", with the following code
IsInDevelopment = 'Y' and type != 'T'
Name
- Physical column name: Name
- Property Name: name
- Reference: String
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Position
- Physical column name: Position
- Property Name: position
- Reference: Integer
Process
- Physical column name: AD_Process_ID
- Property Name: process
- Reference: TableDir
Foreign key column to AD_Process table, (column: AD_Process_ID)
Read Only Logic
- Physical column name: ReadOnlyLogic
- Property Name: readOnlyLogic
- Reference: Text
Reference
- Physical column name: AD_Reference_ID
- Property Name: reference
- Reference: Table
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
Reference Search Key
- Physical column name: AD_Reference_Value_ID
- Property Name: referenceSearchKey
- Reference: Table
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
It has a validation "AD_Reference Subreference", with the following code
AD_Reference.ParentReference_ID=@AD_Reference_ID@
OR (@AD_Reference_ID@ = '28' and AD_Reference.ParentReference_ID='17')
Secondary Key
- Physical column name: IsSecondaryKey
- Property Name: secondaryKey
- Reference: YesNo
- Default value: N
Sequence Number
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
Sqllogic
- Physical column name: Sqllogic
- Property Name: sqllogic
- Reference: Text
Stored in Session
- Physical column name: IsSessionAttr
- Property Name: storedInSession
- Reference: YesNo
- Default value: N
Table
- Physical column name: AD_Table_ID
- Property Name: table
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to AD_Table table, (column: AD_Table_ID)
Transient
- Physical column name: IsTransient
- Property Name: transient
- Reference: YesNo
- Default value: N
Transient Condition
- Physical column name: isTransientCondition
- Property Name: transientCondition
- Reference: Text
Translation
- Physical column name: IsTranslated
- Property Name: translation
- Reference: YesNo
- Default value: N
Updatable
- Physical column name: IsUpdateable
- Property Name: updatable
- Reference: YesNo
- Default value: Y
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)
Use Automatic Sequence
- Physical column name: IsUsedSequence
- Property Name: useAutomaticSequence
- Reference: YesNo
- Default value: N
Validate on New
- Physical column name: ValidateOnNew
- Property Name: validateOnNew
- Reference: YesNo
- Default value: Y
Validation
- Physical column name: AD_Val_Rule_ID
- Property Name: validation
- Reference: TableDir
Foreign key column to AD_Val_Rule table, (column: AD_Val_Rule_ID)
It has a validation "Validation in Columns", with the following code
type in ('S')
Value Format
- Physical column name: VFormat
- Property Name: valueFormat
- Reference: String
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- AD_COLUMN_ELEMENT_IDX Not Unique. Columns:
- AD_ELEMENT_ID
- AD_COLUMN_PROCESS Not Unique. Columns:
- AD_PROCESS_ID
- AD_COLUMN_TABLE Not Unique. Columns:
- AD_TABLE_ID
Check Constraints
These are the check constraints for this table:
- AD_COLUMN_ALLOWCROSSORG_CHK: ALLOWED_CROSS_ORG_LINK IN ('Y', 'N')
- AD_COLUMN_ALLOWFILTERING_CHK: ALLOWFILTERING IN ('Y', 'N')
- AD_COLUMN_ALLOWSORTING_CHK: ALLOWSORTING IN ('Y', 'N')
- AD_COLUMN_CHILDINPARENT_CHK: IS_CHILD_PROPERTY_IN_PARENT IN ('Y', 'N')
- AD_COLUMN_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- AD_COLUMN_ISAUTOSAVE_CHK: ISAUTOSAVE IN ('Y', 'N')
- AD_COLUMN_ISDESENCRYPTABLE_CHK: ISDESENCRYPTABLE IN ('Y', 'N')
- AD_COLUMN_ISENCRYPTED_CHK: ISENCRYPTED IN ('Y', 'N')
- AD_COLUMN_ISIDENTIFIER_CHK: ISIDENTIFIER IN ('Y', 'N')
- AD_COLUMN_ISKEY_CHK: ISKEY IN ('Y', 'N')
- AD_COLUMN_ISMANDATORY_CHK: ISMANDATORY IN ('Y', 'N')
- AD_COLUMN_ISPARENT_CHK: ISPARENT IN ('Y', 'N')
- AD_COLUMN_ISSELECTIONCOLUM_CHK: ISSELECTIONCOLUMN IN ('Y', 'N')
- AD_COLUMN_ISTRANSLATED_CHK: ISTRANSLATED IN ('Y', 'N')
- AD_COLUMN_ISUPDATEABLE_CHK: ISUPDATEABLE IN ('Y', 'N')
- AD_COLUMN_USEDSEQ_CHK: ISUSEDSEQUENCE IN ('Y', 'N')
![]() | Back to org.openbravo.model.ad.datamodel |