ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.ui/AD Window
AD_Window
The Window table defines each window in the system.
- Name:ADWindow
- Classname:Window
This table contains the following columns:
| Name | Nullable | Data Type | Description |
| AD_Window_ID | N | VARCHAR2(32) | A work area which can be used to create, view, edit, and process a record. |
| AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
| AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
| IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
| Created | N | DATE | The date that this record is completed. |
| CreatedBy | N | VARCHAR2(32) | User who created this records |
| Updated | N | DATE | x not implemented |
| UpdatedBy | N | VARCHAR2(32) | User who updated this records |
| Name | N | NVARCHAR2(60) | Alphanumeric identifier of the entity |
| Description | Y | NVARCHAR2(255) | A space to write additional related information. |
| Help | Y | NVARCHAR2(2000) | A comment that adds additional information to help users work with fields. |
| WindowType | Y | VARCHAR2(60) | Type or classification of a Window |
| IsSOTrx | N | CHAR(1) | An indication that a transfer of goods and money between business partners is occurring. |
| Processing | Y | CHAR(1) | A request to process the respective document or task. |
| AD_Image_ID | Y | VARCHAR2(32) | A visual picture used to describe an item. |
| IsDefault | Y | CHAR(1) | A value that is shown whenever a record is created. |
| AD_Module_ID | N | VARCHAR2(32) | Module |
| Isthreadsafe | N | CHAR(1) | If set, this check indicates that the window can be safely opened in more than one tab. |
Other Info
Check constraints
These are the check constraints for this table:
- AD_WINDOW_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
- AD_WINDOW_ISSOTRX_CHK: ISSOTRX IN ('Y', 'N')
- AD_WINDOW_ISTHREADSAFE_CHK: ISTHREADSAFE IN ('Y', 'N')
- AD_WINDOW_NAME_CHECK: (INSTR(NAME, (CHR(39))) = 0) AND (INSTR(NAME, TO_CHAR('_')) = 0)
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- AD_WINDOW_KEY
- AD_WINDOW_NAME
Columns
Window
The Window field identifies a unique Window in the system.
- Physical column name: AD_Window_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
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@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
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.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Name
The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Help/Comment
The Help field contains a hint, comment or help about the use of this item.
- Physical column name: Help
- Property Name: helpComment
- Reference: Text
Window Type
The Window Type indicates the type of window being defined (Maintain, Transaction or Query)
- Physical column name: WindowType
- Property Name: windowType
- Reference: List
- Default value: M
List values: AD_Window Types
The allowed values for this list are:
- M (Maintain)
- Q (Query Only)
- S (Single Record)
- T (Transaction)
Sales Transaction
The Sales Transaction checkbox indicates if this item is a Sales Transaction.
- Physical column name: IsSOTrx
- Property Name: salesTransaction
- Reference: YesNo
- Default value: Y
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Image
- Physical column name: AD_Image_ID
- Property Name: image
- Reference: TableDir
Foreign key column to AD_Image table, (column: AD_Image_ID)
Default
The Default Checkbox indicates if this record will be used as a default value.
- Physical column name: IsDefault
- Property Name: default
- Reference: YesNo
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
- Default value: @SQL=SELECT MAX(AD_MODULE_ID) FROM AD_MODULE WHERE ISDEFAULT='Y'
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'
Isthreadsafe
If set, this boolean indicates that the window can be safely opened in more than one tab. This is true basically when the window doesn't directly (ie. through one column set to 'store in session') or indirectly (ie. via a callout action) store information in the session.
- Physical column name: Isthreadsafe
- Property Name: isthreadsafe
- Reference: YesNo
- Default value: N
Related tables
Tables that link this table:
- ADMenu.Window
- ADPreference.Window
- ADTab.Window
- ADTable.PO Window
- ADTable.Window
- ADWindowAccess.Window
- ADWindowTrl.Window
