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.domain/AD Preference

Contents

AD_Preference

Defines preferences (default values) for a user.

This table contains the following columns:

Name Nullable Data Type Description
AD_Preference_ID NVARCHAR2(32)Personal Preference
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
AD_Window_ID YVARCHAR2(32)A work area which can be used to create, view, edit, and process a record.
AD_User_ID YVARCHAR2(32)An acquaintance to reach for information related to the business partner.
Attribute YNVARCHAR2(60)Name of the preference.
Value YCLOB(4000)Value assigned to the property
Property YVARCHAR2(60)Configuration Property to assign value
IsPropertyList NCHAR(1)Determines how the preference is defined: by Property or by Attribute.
VisibleAt_Client_ID YVARCHAR2(32)Defines Client visibility.
VisibleAt_Org_ID YVARCHAR2(32)Defines Organization visibility.
VisibleAt_Role_ID YVARCHAR2(32)Defines Role visibility.
Selected NCHAR(1)Selected property in case of conflict
AD_Module_ID YVARCHAR2(32)Module

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

Unique

top

Columns

Preference

Personal Preference, a default value that will be used by a user.

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

Window

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

top

Visible at User

The User identifies a unique user in the system. This could be an internal user or a business partner contact

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

top

Attribute

It is the name of a preference to assign a value. It is a free text name, as opposite as Property which is a selectable value from a list.

top

Value

It is the actual value that is assigned to the property at the defined level.

top

Property

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.

List values: Property Configuration

The allowed values for this list are:

top

Property List

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.

top

Visible at Client

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


Reference Table AD_Client

top

Visible at Organization

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


Reference Table AD_Org (all)

top

Visible at Role

Foreign key column to AD_Role table, (column: AD_Role_ID)


Reference Table AD_Role

top

Selected

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.

Callout: SL_Preference

This element is linked to a callout.

Checks there is only one selected preference for the current visibility.

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

top

Module

Foreign key column to AD_Module table, (column: AD_Module_ID)


Validation Rule Ad_Module_ID IsInDevelopment: AD_Module_ID IsInDevelopment. With the following code:

 
IsInDevelopment = 'Y' AND type != 'T'

top

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

This page has been accessed 1,898 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.