View source | Discuss this page | Page history | Printable version   

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.utility/ad table tree

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.utility


Contents

ad_table_tree

This table contains the following columns:

Name Nullable Data Type Description


AD_Table_Tree_ID No VARCHAR (32) Tree tables can define several tree structures. If a table tree structure is set in this field, the tab will include a tree view that will allow to browse the data hierarchically.
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.

Applywhereclausetochildnodes No CHAR (1) By default, the HQL where clause of the tab is applied to all nodes. If this checkbox is unset, then this where clause will be applied only to root nodes.
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.
Obserds_Datasource_ID Yes VARCHAR (32) Datasource used to feed the table
Hasmultiparentnodes No CHAR (1) If the data of the table cannot be strictly represented as a tree because each node can have several parents, this checkbox must be flagged.
Isordered No CHAR (1) The trees that use the ADTreeNode structure can be defined as ordered. In that case, the position of a node among its brothers is defined by a sequence number.
Isparentselectionallowed No CHAR (1) This property is used to define if non-leaf nodes are allowed to be selected in a tree reference.
Ismaintree No CHAR (1) A table can define several trees, but only one of them can be the main tree. The main tree is used when a node is added to the tree or removed from it. The add or remove methods of the datasource of the main tree will be executed when the node is created or deleted.

If one of the trees of a table uses the ADTree tree structure, that must be the main tree.

Linktoparentcolumn Yes VARCHAR (32) This field is only used in Link To Parent tables. This field represents the column that points to the node id of the row that represents the parent of a node
AD_Module_ID No VARCHAR (32) Indicates the module the element forms part of.
Name No VARCHAR (200) 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.
NodeDeletionPolicy No VARCHAR (60) It defines the behavior when a node item is deleted
Nodeidcolumn Yes VARCHAR (32) For Link to Parent tables: column that represents the id of the node. Usually the id column should be used.
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_Table_ID Yes VARCHAR (32) The Table indicates the table in which a field or fields reside.
Treestructure No VARCHAR (60) Three different tree structures are available:

- AD Tree Node: The information regarding the hierarchy of the data is stored in the ADTree and ADTreeNode tables. - Link to Parent in Table: This structure can be used when the informartion regarding the hierarchy of the data can be fetched from the own table. In this case, there has to be a column in the table that points to the row that represents the parent node of the record. - Custom: For other tree tables, a manual datasource can be defined

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.
Ishandlenodesmanually No CHAR (1) Tree node creation and deletion can be handled:

- Automatically: With an Openbravo handler that creates the tree node when a record is created, and deletes the tree node when the record is deleted. - Manually: With a custom trigger, event handler, etc. If this flag is checked the creation and deletion of tree nodes will be handled manually.

Columns

AD_Table_Tree_ID



top


Active



top


ApplyWhereClauseToChildNodes



top


Client


Foreign key column to AD_Client table, (column: AD_Client_ID)

top


Created By


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

top


Creation Date



top


Datasource


Foreign key column to OBSERDS_Datasource table, (column: Obserds_Datasource_ID)

top


HasMultiparentNodes



top


Is Ordered



top


Is Parent Selection Allowed



top


IsMainTree



top


Link to Parent Column


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

top


Module


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'

top


Name


top


Node Deletion Policy


List values: Node Deletion Policy

The allowed values for this list are:

top


NodeIdColumn


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

top


Organization


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

top


Table


Foreign key column to AD_Table table, (column: AD_Table_ID)

top


Tree Structure



List values: Tree Structures

The allowed values for this list are:

top


Updated



top


Updated By


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

top


handleNodesManually



top


Other Info

Indices

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

top

Check Constraints

These are the check constraints for this table:

top

Back button.png   Back to org.openbravo.model.ad.utility

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Database_Model/org.openbravo.model.ad.utility/ad_table_tree"

This page has been accessed 3,204 times. This page was last modified on 16 January 2023, at 02:24. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.