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/3.0/Developers Guide/Database Model/org.openbravo.model.ad.domain/ad ref 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.domain


Contents

ad_ref_tree

This table contains the following columns:

Name Nullable Data Type Description


AD_Ref_Tree_ID No VARCHAR (32)
AD_Client_ID No VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
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.
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.

Created No TIMESTAMP (7) The Created field indicates the date that this record was created.
Createdby No VARCHAR (32) The Created By field indicates the user who created this record.
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.
AD_Reference_ID No VARCHAR (32) The Reference indicates the type of reference field
AD_Table_ID No VARCHAR (32) The Table indicates the table in which a field or fields reside.
AD_Column_ID Yes VARCHAR (32) Link to the database column of the table
Whereclause Yes VARCHAR (2000) The Where Clause indicates the HQL (Hibernate Query Language) or SQL WHERE clause used for filtering data. In releases until and including 2.50 MP11 this field only accepts a HQL where clause (without the where keyword). In later releases for the AD dataset a SQL clause should be used, other datasets should use the HQL format.
Valuefield_ID Yes VARCHAR (32) The value of this field will be set in the foreign key column.
Displayfield_ID Yes VARCHAR (32) The value of this field will be displayed in the tree reference text input box.
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.
Whereclauserootnodes Yes VARCHAR (2000) By default the root nodes of the tree are those whose parent is null or 0. When the default case does not apply, a HQL where clause can be set to define which are the root nodes for this tree reference.
AD_Module_ID No VARCHAR (32) Indicates the module the element forms part of.

Columns

AD_Ref_Tree_ID



top


Client


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

top


Organization


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

top


Active



top


Creation Date



top


Created By


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

top


Updated



top


Updated By


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

top


Reference

Foreign key column to AD_Reference table, (column: AD_Reference_ID)

top


Table


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

top


Column


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@

top


HQL/SQL Where clause



top


Valuefield_ID


Foreign key column to ad_ref_tree_field table, (column: AD_Ref_Tree_Field_ID)

top


Displayfield_ID


Foreign key column to ad_ref_tree_field table, (column: AD_Ref_Tree_Field_ID)

top


Table Tree Category


Foreign key column to ad_table_tree table, (column: AD_Table_Tree_ID)

top


HQL Where Clause for Root Nodes



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


Other Info

Check Constraints

These are the check constraints for this table:

top

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

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

This page has been accessed 514 times. This page was last modified on 5 August 2014, at 13:58. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.