ERP/3.0/Developers Guide/Database Model/org.openbravo.client.querylist/OBCQL Query Column
OBCQL_Query_Column
- Name:OBCQL_Query_Column
- Classname:OBCQL_QueryColumn
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. |
Can_Be_Filtered | No | CHAR (1) | This flag sets whether it is possible to filter the grid by this column or not on maximized view. To be able to filter it is also needed to set on the HQL Code where clause the display expression between @ symbols that will be replaced on execution by the filter clause in case it is being filtered or "1=1" when it is not.
For example: having the following HQL "select product.name as prodcutName from product". To be able to filter by product name it is needed to include a "where @productName@" in the where clause: "select product.name as prodcutName from product where @productName@" |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Clientclass | Yes | NVARCHAR (255) | |
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. |
Display_Expression | No | VARCHAR (255) | Alias of HQL query column to be shown |
Has_Link | No | CHAR (1) | Flag to set that the field of the grid will have a link |
Include_In | No | VARCHAR (60) | Sets the visibility of the column:
- Widget view, column is shown on all cases. - Maximized view, column is shown only in maximized view and included in the exported file. - Exported file, column is only included in the exported file. |
Link_Expression | Yes | VARCHAR (255) | Alias of the HQL Query column with the id required to built the link |
Name | No | NVARCHAR (60) | 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. |
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. |
OBCQL_Query_Column_ID | No | VARCHAR (32) | Column of the defined query that it is desired to be shown or exported |
AD_Reference_ID | No | VARCHAR (32) | The Reference indicates the type of reference field |
AD_Reference_Value_ID | Yes | VARCHAR (32) | The Reference Value indicates where the reference values are stored. It must be specified if the data type is Table or List. |
Seqno | No | DECIMAL (10,0) | The Sequence indicates the order of records |
Summarize_Type | Yes | VARCHAR (60) | Select the desired summarize option in case the column is numeric and it is desired to have the sum, average,.. |
AD_Tab_ID | Yes | VARCHAR (32) | The Tab indicates a tab that displays within a window. |
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. |
Whereclause_Left_Part | Yes | VARCHAR (255) | Left part of the where clause needed to filter by a value of this column on the maximized view. |
OBCQL_Widget_Query_ID | No | VARCHAR (32) | Identifies the HQL Query definitino of a widget class that implements the Query/List Superclass widget |
Width | No | DECIMAL (10,0) | Width of the column in percentage. If the sum of the widths is higher than 100 the grid will adapt the values. For example, 3 columns with 100 width will take 33% of the grid width each. |
Columns
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Can be filtered
- Physical column name: Can_Be_Filtered
- Property Name: canBeFiltered
- Reference: YesNo
- Default value: N
Callout: CheckOptionalFilterCallout
This column has a callout associated. Checks if the hql query enabled if can be filtered check box is selected in column tab It is implemented by [1] Java Class.
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Client Class
- Physical column name: Clientclass
- Property Name: clientClass
- Reference: String
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Display Expression
- Physical column name: Display_Expression
- Property Name: displayExpression
- Reference: String
Has Link
- Physical column name: Has_Link
- Property Name: hasLink
- Reference: YesNo
- Default value: N
Include In
- Physical column name: Include_In
- Property Name: includeIn
- Reference: List
- Default value: W
List values: Query/List Include in
The allowed values for this list are:
- W (Widget view)
- E (Exported file)
- M (Maximized view)
Link Expression
- Physical column name: Link_Expression
- Property Name: linkExpression
- Reference: String
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Query Column
- Physical column name: OBCQL_Query_Column_ID
- Property Name: id
- Reference: ID
Reference
- Physical column name: AD_Reference_ID
- Property Name: reference
- Reference: Table
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
Reference Search Key
- Physical column name: AD_Reference_Value_ID
- Property Name: referenceSearchKey
- Reference: Table
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
It has a validation "AD_Reference Subreference", with the following code
AD_Reference.ParentReference_ID=@AD_Reference_ID@
OR (@AD_Reference_ID@ = '28' and AD_Reference.ParentReference_ID='17')
Sequence Number
- Physical column name: Seqno
- Property Name: sequenceNumber
- Reference: Integer
Summarize Type
- Physical column name: Summarize_Type
- Property Name: summarizeType
- Reference: List
List values: Query/List Summarize type
The allowed values for this list are:
- avg (Average)
- sum (Sum)
- count (Count)
Tab
- Physical column name: AD_Tab_ID
- Property Name: tab
- Reference: TableDir
Foreign key column to AD_Tab table, (column: AD_Tab_ID)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Where Clause Left Part
- Physical column name: Whereclause_Left_Part
- Property Name: whereClauseLeftPart
- Reference: String
Widget Query
- Physical column name: OBCQL_Widget_Query_ID
- Property Name: widgetQuery
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to OBCQL_Widget_Query table, (column: OBCQL_Widget_Query_ID)
Width
- Physical column name: Width
- Property Name: width
- Reference: Integer
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- OBCQL_QRYCOL_WDGTQRY_IDX Not Unique. Columns:
- OBCQL_WIDGET_QUERY_ID
Check Constraints
These are the check constraints for this table:
- OBCQL_COLUMN_CANBEFILTERED_CHK: CAN_BE_FILTERED IN ('Y', 'N')
- OBCQL_COLUMN_WHERECLAUSE_CHK: CAN_BE_FILTERED = 'Y' AND WHERECLAUSE_LEFT_PART IS NOT NULL OR CAN_BE_FILTERED = 'N'
- OBCQL_QUERY_COLUMN_ACTIVECHK: ISACTIVE IN ('Y', 'N')
- OBCQL_QUERY_COLUMN_HASLINK: HAS_LINK IN ('Y', 'N')
![]() | Back to org.openbravo.client.querylist |