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

ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.domain/AD Preference

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_Preference

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.

Attribute Yes NVARCHAR (60) A defined characteristic of a specific product.
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.
Inherited_From Yes VARCHAR (32) The role from which a permission has been inherited. If a permission has this field set it means that this is an inherited permission, an therefore that the role owner of the permission is able to access it because it inherits from the role defined in this field.
AD_Module_ID Yes VARCHAR (32) Indicates the module the element forms part of.
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_Preference_ID No VARCHAR (32) Personal Preference, a default value that will be used by a user.
Property Yes VARCHAR (60) It is the "Configuration Property" this record sets value to.

Configuration Properties are defined by modules with the purpose other modules are capable to assign them values.

IsPropertyList No CHAR (1) When this field is checked, the preference is defined by Property which is a selectable value from a drop down list. Properties are defined by modules.

In case the field is not checked, the preference is defined by Attribute, which is a free text name.

Value Yes CLOB A search key allows for a fast method of finding a particular record. If you leave the search key empty, the system automatically creates a numeric number originating from a document sequence defined in the "Document Sequence" window. The sequence naming convention follows a rule "DocumentNo_TableName", where TableName is the actual name of the database table (e.g. C_Order).

Usually, company's internal identifiers for various records (products, customers, etc) are stored here.

Selected Yes CHAR (1) In case of conflict (multiple values for a single property), this field must be checked for one of them in order to pick this one over the rest.
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_User_ID Yes VARCHAR (32) The User identifies a unique user in the system. This could be an internal user or a business partner contact
VisibleAt_Client_ID Yes VARCHAR (32) Defines which is the preference's visibility at client level. If this value is empty the preference will be visible from all Clients.
VisibleAt_Org_ID Yes VARCHAR (32) Defines which is the preference's visibility at Organization level. The preference will be visible from all organizations in the tree bellow this one. If this value is empty the preference will be visible from all Organizations.
VisibleAt_Role_ID Yes VARCHAR (32) Defines which is the preference's visibility at Role level. If this value is empty the preference will be visible from all Roles.
AD_Window_ID Yes VARCHAR (32) The Window field identifies a unique Window in the system.

Columns

Active



top


Attribute


top


Client


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

top


Created By


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

top


Creation Date



top


Inherited_From


Foreign key column to AD_Role table, (column: AD_Role_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


Organization


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

top


Preference



top


Property


List values: Property Configuration

The allowed values for this list are:

top


Property List



top


Search Key



top


Selected


Callout: SL_Preference

This column has a callout associated. Checks there is only one selected preference for the current visibility. It is implemented by [1] Java Class.

top


Updated



top


Updated By


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

top


User/Contact


Foreign key column to AD_User table, (column: AD_User_ID) It has a validation "System user if module", with the following code

@AD_Module_ID@ is null

or (@AD_Module_ID@ is not null and AD_User_ID = '0')

top


Visible at Client


Foreign key column to AD_Client table, (column: AD_Client_ID) It has a validation "System client if module", with the following code

@AD_Module_ID@ is null

or (@AD_Module_ID@ is not null and AD_Client_ID = '0')

top


Visible at Organization


Foreign key column to AD_Org table, (column: AD_Org_ID) It has a validation "System org if module", with the following code

@AD_Module_ID@ is null

or (@AD_Module_ID@ is not null and AD_Org_ID = '0')

top


Visible at Role


Foreign key column to AD_Role table, (column: AD_Role_ID) It has a validation "System role if module", with the following code

@AD_Module_ID@ is null

or (@AD_Module_ID@ is not null and AD_Role_ID='0')

top


Window


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

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.domain

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

This page has been accessed 6,558 times. This page was last modified on 28 August 2023, at 01:58. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.