View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/2.50/Developers Guide/Database Model/org.openbravo.model.ad.datamodel/AD Table

Contents

AD_Table

In Table table are stored all the tables used in the application. This data should be the same as the defined physically in the DB.

This table contains the following columns:

Name Nullable Data Type Description
AD_Table_ID NVARCHAR2(32)A dictionary table used for this tab that points to the database table.
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
CreatedBy NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
UpdatedBy NVARCHAR2(32)User who updated this records
Name NNVARCHAR2(60)A non-unique identifier for a record/document often used as a search tool.
Description YNVARCHAR2(255)A space to write additional related information.
Help YNVARCHAR2(2000)A comment that adds additional information to help users work with fields.
TableName NVARCHAR2(40)Name of the table in the database
Classname NVARCHAR2(60)x not implemented
IsView NCHAR(1)This is a view
AccessLevel NVARCHAR2(60)Indicates what type of data (in terms of AD_CLIENT and AD_ORG data columns) can be entered or viewed.
AD_Window_ID YVARCHAR2(32)A work area which can be used to create, view, edit, and process a record.
IsSecurityEnabled YCHAR(1)If security is enabled, user access to data can be restricted via Roles
IsDeleteable NCHAR(1)Indicates if records can be deleted from the database
IsHighVolume NCHAR(1)Use Search instead of Pick list
ImportTable YCHAR(1)Create Dictionary Columns of Table not existing as a Column but in the Database
IsChangeLog YCHAR(1)Maintain a log of changes
PO_Window_ID YVARCHAR2(32)Purchase Order Window
IsDefaultAcct YCHAR(1)Is default account
SQL_Record_Identifier YVARCHAR2(4000)SQL_Record_Identifier
Developmentstatus YVARCHAR2(60)Development Status
AD_Package_ID NVARCHAR2(32)Links a table to a package
Treetype YVARCHAR2(60)Element this tree is built on (i.e Product, Business Partner)
Acctdate_Column_ID YVARCHAR2(32)null
Acctclassname YVARCHAR2(1000)null
IsFullyAudited NCHAR(1)Maitain Audit Trail for this table

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

These are the indexes for this table (for each index there is a list of all the columns included within it):

Non Unique

Unique

top

Columns

Table

The Table indicates the table in which a field or fields reside.

top

Client

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@)

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)

top

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.

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

Foreign key column to AD_User table, (column: AD_User_ID)

top

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.

top

Description

A description is limited to 255 characters.

top

Help/Comment

The Help field contains a hint, comment or help about the use of this item.

top

DB Table Name

The DB Table Name indicates the name of the table in database.

top

Java Class Name

The classname is used when generating a representation of the table in java (the entity or business object). The classname is the simplename of the class (so without the package name). Often the AD_Table.name can be used here. The combination of classname and package needs to be unique.

top

View

This is a view rather than a table. A view is always treated as read only in the system.

top

Data Access Level

Indicates what type of data (in terms of AD_CLIENT and AD_ORG data columns) can be entered or viewed. We can classify data in 4 major categories:
- System (AD_CLIENT_ID=0, AD_ORG_ID=0) - system data (such as metadata for window, tab and field definition)
- Organization (AD_CLIENT<>0, AD_ORG_ID<>0) - data particular to an organization (such as sales orders)
- Client/Organization (AD_CLIENT<>0, AD_ORG_ID=anything) - data particular to an organization or shared among all organizations within one client
- Client (AD_CLIENT<>0, AD_ORG_ID=0) - data that is specific to a client but can be used by all organizations within that client

or All (AD_CLIENT=anything, AD_ORG_ID=anything)

List values: AD_Table Access Levels

The allowed values for this list are:

top

Window

Foreign key column to AD_Window table, (column: AD_Window_ID)

top

Security enabled

The Security Enabled checkbox indicates that user access to the data in this table can be restricted using Roles.

top

Deletable Records

The Deleteable Records checkbox indicates if a record can be deleted from the database. If records cannot be deleted, you can only deselect the Active flag

top

High Volume

The High Volume Checkbox indicates if a search screen will display as opposed to a pick list for selecting records from this table.

top

Create Columns from DB

If you have added columns in the database to this table, this procedure creates the Column records in the Dictionary. Please be aware, that they may deleted, if the entity type is not set to User.

top

Maintain Change Log

If selected, a log of all changes is maintained.

top

PO Window

Foreign key column to AD_Window table, (column: AD_Window_ID)


Reference Table AD_Window

top

Default Account

Is default account

top

SQL_Record_Identifier

SQL_Record_Identifier

top

Development Status

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.

List values: Development Status

The allowed values for this list are:

top

Data Package

Foreign key column to AD_Package table, (column: AD_Package_ID)


Validation Rule AD_Package_ID IsInDevelopment: AD_Package_ID IsInDevelopment. With the following code:

 
ad_module_id IN (SELECT ad_module_id FROM ad_module WHERE IsInDevelopment = 'Y')

top

TreeType

The Tree Type / Area field determines the type of tree this is. For example, you may define one tree for your Products and another tree for your Business Partners.

List values: AD_TreeType Type

The allowed values for this list are:

top

Acctdate_Column_ID

Foreign key column to AD_Column table, (column: AD_Column_ID)


Reference Table AD_Column date column With the following where clause:

 
AD_Column.AD_Reference_ID IN ('16', '15') AND AD_Column.AD_Table_ID=@AD_Table_ID@


top

Acctclassname

Java class name where the posting of table is developed

top

IsFullyAudited

If audit trail is maintained for a table, each modification performed to any record in this table will be tracked.

Do not forget to generate Audit infrastructure after selecting or deselecting a table to be audited.

Callout: SL_TableAudit

This element is linked to a callout.

It is implemented by org.openbravo.erpCommon.ad_callouts.SL_TableAudit Java class.

top

Related tables

Tables that link this table:

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Database_Model/org.openbravo.model.ad.datamodel/AD_Table"

This page has been accessed 4,203 times. This page was last modified on 2 July 2011, at 20:33. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.