Notes |
|
|
The final Default Expression is: "The%"
Without the need of extra single quotes and/or scape characters. Remember that the default expression will be translated to HQL in the form:
property = default
In this case will be translated to: name = 'The%'
This is not the 'expected' behavior because to filter with % you need to use the _like_ operator, e.g. name like 'The%'
This initial implementation should only work with equals. If you want to use the _like_ operator, use the Filter expression at Selector level. |
|
|
(0029453)
|
hgbot
|
2010-07-21 19:06
|
|
|
|
(0029475)
|
hgbot
|
2010-07-22 17:01
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 27407b4c34b9870c86d14b5a84ee66750f0c4941
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Jul 22 17:00:28 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/27407b4c34b9870c86d14b5a84ee66750f0c4941 [^]
Fixes issue 14023: Removed qouting logic when dealing with string def. values
Removed the front-end logic to quote string default values, and just add the
default value to the request map. This rely on the backend code.
---
M web/org.openbravo.userinterface.selector/js/ob_selector_widget.js
---
|
|
|
(0029481)
|
hgbot
|
2010-07-22 18:17
|
|
|
|
(0029589)
|
hgbot
|
2010-07-27 13:12
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: f5fbce871181e897462cbfcab0dbfc21098cc6c3
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Tue Jul 27 13:11:06 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/f5fbce871181e897462cbfcab0dbfc21098cc6c3 [^]
Fixes issue 14023: Refactored default expression using action handler
- The default values are now calculated on each open selector request since it
could be using a session value
- Moved the logic to use Action handler
- Removed the logic to calculate the defaults values in the components since
it makes no sense
- Added formatDate and formatDateTime to the OB object to be able to format
dates: OB.formatDate(new Date()) - will give you today's date with the
default format used by the application
---
M src/org/openbravo/userinterface/selector/DefaultExpressionCallout.java
M src/org/openbravo/userinterface/selector/OBBindings.java
M src/org/openbravo/userinterface/selector/SelectorComponent.java
M src/org/openbravo/userinterface/selector/templates/selector.ftl
M web/org.openbravo.userinterface.selector/js/ob_selector_link_widget.js
M web/org.openbravo.userinterface.selector/js/ob_selector_widget.js
A src/org/openbravo/userinterface/selector/SelectorDefaultFilterActionHandler.java
---
|
|
|
(0029617)
|
hgbot
|
2010-07-27 18:04
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 46c743109767bf9b01e5decf8af3f15c4ab81c50
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Tue Jul 27 18:02:37 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/46c743109767bf9b01e5decf8af3f15c4ab81c50 [^]
Fixes issue 14023: Refactored the selector datasource filter
- The datasource filter applies a filter for the selector when using the
suggestion box
- Skips the default values when the properties come in the request
---
M src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
M web/org.openbravo.userinterface.selector/js/ob_selector_widget.js
---
|
|
|
(0029634)
|
hgbot
|
2010-07-28 10:37
|
|
|
|
(0029648)
|
hgbot
|
2010-07-28 17:18
|
|
|
|
(0029916)
|
hgbot
|
2010-08-12 13:49
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: fccddc83c82619bf9ae5b8971c163b44873c44df
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Aug 12 13:49:10 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/fccddc83c82619bf9ae5b8971c163b44873c44df [^]
Fixes issue 14023: Fixes NPE when having default at field without a filter
Fixes NPE when defining default expressions but without a filter expression in
the selector definition
---
M src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
---
|
|
|
(0029950)
|
hgbot
|
2010-08-13 10:10
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 039694384399006a4a16f1ed34605f41a4f04504
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Aug 13 10:10:02 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/039694384399006a4a16f1ed34605f41a4f04504 [^]
Fixes issue 14023: Fixes date formatting when fetching data
The QueryBuilder used by the json datasource service uses a fixed date format
dd-MM-yyyy, therefore the date format configured in the systems needs to
reformat the date values to match the QueryBuilder one.
Since OB.formatDate() uses SimpleDateFormat class and returns a String, the
current way to detect if a field property needs reformatting is through the
selector field name, it _must_ end with the word 'date' (ignoring case)
---
M src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
M web/org.openbravo.userinterface.selector/js/ob_selector_widget.js
---
|
|
|
(0029958)
|
hgbot
|
2010-08-13 16:22
|
|
|
|
(0030130)
|
hgbot
|
2010-08-18 18:20
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 27f84eda8dd91a94e5b63f7f28bd4ea3f06a9e6a
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Wed Aug 18 18:19:45 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/27f84eda8dd91a94e5b63f7f28bd4ea3f06a9e6a [^]
Fixes issue 14023: Refactored the Default/Filter expression handling
- Added new methods to the OBBindings: parseDate, and formatDate passing a
format as second parameter
- Refactored the filter and default expressions. Now the _where parameter is
modified when filtering data, and the result expressions are appended as
_and_
- Fixed issue of duplicated 'Yes' entry in boolean columns
- The popup window 'flags' its requests with a _requestType='Window'
- Evaluation of expressions on 'suggestion box searchable fields' is skipped
when using the suggestion box
---
M src/org/openbravo/userinterface/selector/OBBindings.java
M src/org/openbravo/userinterface/selector/SelectorConstants.java
M src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
M src/org/openbravo/userinterface/selector/SelectorDefaultFilterActionHandler.java
M web/org.openbravo.userinterface.selector/js/ob_selector_widget.js
---
|
|
|
(0030131)
|
hgbot
|
2010-08-18 18:23
|
|
|
|
(0030160)
|
hgbot
|
2010-08-19 17:09
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: a9884304fd4062bddbfa3b90fd370fed07024672
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Aug 19 17:08:18 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/a9884304fd4062bddbfa3b90fd370fed07024672 [^]
Fixes issue 14023: Removed logic to identify the type of result
- The result of the JS expression is added directly to the JSON object map so
the library needs to handle the data type of the object
---
M src/org/openbravo/userinterface/selector/SelectorDefaultFilterActionHandler.java
---
|
|
|
(0030373)
|
hgbot
|
2010-08-26 16:53
|
|
Repository: erp/mods/org.openbravo.service.json
Changeset: 4653df7f33e75285cb2aa376e292a78edb259fee
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Aug 26 16:52:42 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.service.json/rev/4653df7f33e75285cb2aa376e292a78edb259fee [^]
Issue 14023: Code clean up, removed unused constant
This constant was used to identify default values in request parameters, not
needed anymore, since all evaluation is made in the server side
---
M src/org/openbravo/service/json/JsonConstants.java
---
|
|
|
(0030375)
|
hgbot
|
2010-08-26 18:31
|
|
Repository: erp/mods/org.openbravo.userinterface.selector
Changeset: 3e63acf5ea992e5421f5ef6e95e69de85fc2a5ab
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Aug 26 18:31:28 2010 +0200
URL: http://code.openbravo.com/erp/mods/org.openbravo.userinterface.selector/rev/3e63acf5ea992e5421f5ef6e95e69de85fc2a5ab [^]
Issue 14023: Changed replace with replaceAll call, related to Issue 13945
The change is to sync the code with the QueryBuilder class, it should treat
all spaces as wildcard when using 'contains'
---
M src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
---
|
|
|
|
Marking as closed as specified testcase is now working fine and also all the other related issues (related to project default/filter expressions) are reviewed and closed now. |
|