Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033112 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2016-06-02 13:21 | 2016-08-01 18:06 | |||
Reporter | JONHM | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | normal | Resolution | no change required | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 42234 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033112: Filters not shown on a Query Only window when setting an HQL filter clause | |||||||
Description | Having a Query Only window based on AD_Audit_Trail_V table, the filters are not applied if is set an HQL filter clause, however, if we clear filters (by clicking the funnel icon), everything works correctly | |||||||
Steps To Reproduce | *** Setting the environment 1) First of all, as System Administrator, set the C_Order table as "Fully Audited" 2) Run the Update Audit Trail infrastructure process (Application Dictionary/Update Audit Trail infrastructure) 3) Create new records on "Sales Order" or delete them with the intention of inserting values in "Audit Trail" window. Once you have enough files, update the "event_time" column of some files in ad_audit_trail table using pgadmin. Set this records 30 days earlier. 4) Create a "Query Only" window based on AD_Audit_Trail_V table, and set the HQL filter clause like "eventTime >= now() - 20" (20 days) and the HQL Order By clause like "-eventTime". Add this window to the menu. *** Testing Go to new window and try to filter by some column, it shows message "No items to show". However, if we clear filters (by clicking the funnel icon), everything works correctly. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0088709) caristu (viewer) 2016-08-01 18:06 edited on: 2016-08-01 18:07 |
This is not an issue, in the HQL filter clause, when referring to properties of the entity shown in the tab then the alias e must be used. In this case, the where clause would be as follows: e.eventTime >= now() - 20 The following link[1] has been updated to remark the usage of this alias. [1] http://wiki.openbravo.com/wiki/How_to_Create_a_Window [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2016-06-02 13:21 | JONHM | New Issue | |
2016-06-02 13:21 | JONHM | Assigned To | => platform |
2016-06-02 13:21 | JONHM | File Added: FiltersNotApplied.mp4 | |
2016-06-02 13:21 | JONHM | OBNetwork customer | => Yes |
2016-06-02 13:21 | JONHM | Modules | => Core |
2016-06-02 13:21 | JONHM | Support ticket | => 42234 |
2016-06-02 13:21 | JONHM | Triggers an Emergency Pack | => No |
2016-07-15 08:41 | alostale | Relationship added | related to 0033476 |
2016-07-15 08:41 | alostale | Status | new => acknowledged |
2016-08-01 12:32 | caristu | Assigned To | platform => caristu |
2016-08-01 12:32 | caristu | Status | acknowledged => scheduled |
2016-08-01 14:21 | JONHM | File Added: errorTrace.txt | |
2016-08-01 18:06 | caristu | Review Assigned To | => caristu |
2016-08-01 18:06 | caristu | Note Added: 0088709 | |
2016-08-01 18:06 | caristu | Status | scheduled => closed |
2016-08-01 18:06 | caristu | Resolution | open => no change required |
2016-08-01 18:07 | caristu | Note Edited: 0088709 | View Revisions |
Copyright © 2000 - 2009 MantisBT Group |