Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020705Openbravo ERPA. Platformpublic2012-06-07 18:392012-09-25 12:11
mirurita 
alostale 
highmajoralways
closedduplicate 
20Community Appliance
pi 
 
AugustoMauch
Core
No
0020705: Filter class parameter is not sent to the backend when using selector magnifying glass icon (working fine with the picker)
When using the magnifying glass icon on the selector the information about the filter class defined in the selector is not sent to the backend.

When you use the picker or you type on the textbox the filter is getting applied.
1) Create a new preference
   - Org: *
   - Property: RM Allow Orphan Line
   - Value: Y
2) Logout and login again
3) Create a new Return from Customer
   - Org: F&B España - Región Norte
   - Business Partner: Alimentos y Supermercados, S.A
4) Click on Insert Orphan Line button
5) In the popup click on the picker for the Product selector
The request contains info about the filter class to apply
filterClass:org.openbravo.userinterface.selector.SelectorDataSourceFilter
Realize that the filter class defined for this selector is executed
org.openbravo.erpCommon.info.RMProductSelectorFilterExpression
and only products for Spain tree are displayed
6) Close the popup (because the result in in the cache)
7) Click again on Insert Orphan Line button
8) Click on the magnifying glass icon
Check the request, it does not have the filterclass info
DataSourceSevlet class on line 186 it does not have any value
on String filterClass = parameters.get(DataSourceConstants.DS_FILTERCLASS_PARAM);
As result the org.openbravo.erpCommon.info.RMProductSelectorFilterExpression
is not executed and all the products are displayed (without filtering).
When using the magnifying glass icon the filter class parameter should be sent.
No tags attached.
duplicate of defect 00215413.0MP17 closed shankarb Filter Expression does not work properly 
png FilterClass_picker.png (162,096) 2012-06-07 18:39
https://issues.openbravo.com/file_download.php?file_id=5283&type=bug
png
Issue History
2012-06-07 18:39miruritaNew Issue
2012-06-07 18:39miruritaAssigned To => alostale
2012-06-07 18:39miruritaFile Added: FilterClass_picker.png
2012-06-07 18:39miruritaModules => Core
2012-06-22 09:21alostaleTarget Version3.0MP13 =>
2012-09-25 12:03ioritzCiaRelationship addedduplicate of 0021541
2012-09-25 12:11AugustoMauchClosed by => AugustoMauch
2012-09-25 12:11AugustoMauchNote Added: 0052548
2012-09-25 12:11AugustoMauchStatusnew => closed
2012-09-25 12:11AugustoMauchResolutionopen => duplicate

Notes
(0052548)
AugustoMauch   
2012-09-25 12:11   
This seems to be the same issue as https://issues.openbravo.com/view.php?id=21541. [^] Even though the current issue is older, it is the one being rejected because 21541 comes from an OBNetwork customer.

Its fix will be included in MP17.