Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024836Openbravo ERPA. Platformpublic2013-09-26 17:352013-10-18 12:30
caristu 
shankarb 
highminoralways
closedfixed 
5
pi 
3.0MP293.0MP29 
AugustoMauch
Core
No
0024836: Filter columns in query/list widgets
Filter columns is not working in query/list widgets if the @optional_filters@ clause is not present. This can lead the user to think that the filters for widgets are not working properly, because the "Can be filtered" checkbox are already marked.
As system admin:
1) Create a Query/List widget of HQL type, using the following clause in the [Query tab]:
select p.searchKey as value,
p.name as nombre
from Product p
2) Create two registers in the [Column] tab for both columns: value and name. Use the string reference and mark the "Can be filtered" checkbox for both.
3) In the Where Clause Left Part put p.searchKey and p.name respectively

As group admin
4) Go to the [Role] window and in the [Widget Access Tab] give permissions to the group admin role for the new widget
5) Add the widget to the workspace. Notice that the filters are not working.
The @optional_filters@ clause must be used in order to make the filters work. It would be nice to warn the user if the "Can be filtered" checkbox is marked for a widget column and the @optional_filters@ is not present in the query.
No tags attached.
related to defect 0024524 new dmiguelez @optional_filters@ widget clause. 
Issue History
2013-09-26 17:35caristuNew Issue
2013-09-26 17:35caristuAssigned To => AugustoMauch
2013-09-26 17:35caristuModules => Core
2013-09-26 17:35caristuTriggers an Emergency Pack => No
2013-09-26 17:35caristuIssue Monitored: networkb
2013-09-26 17:44caristuversion => pi
2013-09-26 17:44caristuTarget Version => 3.0MP29
2013-10-03 07:37shankarbAssigned ToAugustoMauch => shankarb
2013-10-15 09:04caristuProposed Solution updated
2013-10-15 09:06caristuRelationship addedrelated to 0024524
2013-10-15 09:11caristuSummaryFilter for string columns are not working in query/list widgets => Filter columns in query/list widgets
2013-10-15 09:11caristuDescription Updatedbug_revision_view_page.php?rev_id=5107#r5107
2013-10-15 16:12shankarbReview Assigned To => AugustoMauch
2013-10-15 16:15hgbotCheckin
2013-10-15 16:15hgbotNote Added: 0061681
2013-10-15 16:15hgbotStatusnew => resolved
2013-10-15 16:15hgbotResolutionopen => fixed
2013-10-15 16:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bd3f85609c8fb6caf61f3f8b8fb7008e731676a9 [^]
2013-10-15 16:31AugustoMauchIssue Monitored: AugustoMauch
2013-10-15 16:33AugustoMauchNote Added: 0061682
2013-10-15 16:33AugustoMauchStatusresolved => new
2013-10-15 16:33AugustoMauchResolutionfixed => open
2013-10-15 17:23hgbotCheckin
2013-10-15 17:23hgbotNote Added: 0061685
2013-10-15 17:23hgbotStatusnew => resolved
2013-10-15 17:23hgbotResolutionopen => fixed
2013-10-15 17:23hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/bd3f85609c8fb6caf61f3f8b8fb7008e731676a9 [^] => http://code.openbravo.com/erp/devel/pi/rev/e495c1a09754f6c33ed3961315c4b7828644b534 [^]
2013-10-16 19:47hudsonbotCheckin
2013-10-16 19:47hudsonbotNote Added: 0061755
2013-10-16 19:47hudsonbotCheckin
2013-10-16 19:47hudsonbotNote Added: 0061758
2013-10-18 12:30AugustoMauchNote Added: 0061800
2013-10-18 12:30AugustoMauchStatusresolved => closed
2013-10-18 12:30AugustoMauchFixed in Version => 3.0MP29

Notes
(0061681)
hgbot   
2013-10-15 16:15   
Repository: erp/devel/pi
Changeset: bd3f85609c8fb6caf61f3f8b8fb7008e731676a9
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Oct 15 19:43:58 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/bd3f85609c8fb6caf61f3f8b8fb7008e731676a9 [^]

Fixes Issue 0024836: Filter columns in query/list widgets

Added callout to show warning message when 'can be filtered' is selected for a column and the query hql does not contain @optional_filters@.

---
A modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/CheckOptionalFilterCallout.java
---
(0061682)
AugustoMauch   
2013-10-15 16:33   
The changeset [1] references the message "OBUIAPP_CheckOptionalFilters", which has not been included in the commit.

[1] https://code.openbravo.com/erp/devel/pi/rev/bd3f85609c8fb6caf61f3f8b8fb7008e731676a9 [^]
(0061685)
hgbot   
2013-10-15 17:23   
Repository: erp/devel/pi
Changeset: e495c1a09754f6c33ed3961315c4b7828644b534
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Oct 15 20:47:26 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e495c1a09754f6c33ed3961315c4b7828644b534 [^]

Fixes Issue 0024836: Added exported files

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_COLUMN.xml
A modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_CALLOUT.xml
A modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODEL_OBJECT.xml
A modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
---
(0061755)
hudsonbot   
2013-10-16 19:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/51315988909a [^]

Maturity status: Test
(0061758)
hudsonbot   
2013-10-16 19:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/51315988909a [^]

Maturity status: Test
(0061800)
AugustoMauch   
2013-10-18 12:30   
Code reviewed and verified in pi@eb0f3ecbdae4