Smartgwt version: 2.3
Browser: occurs in firefox (3.6.12) and in internet explorer 8
Sample code:
1. Use a databound none clientonly datasource with a DataSourceDateTimeField
2. Select the field in Filterbuilder
3. Select operator between
4. Parameter 1 use an absolute date (03/03/2010), Parameter 2 use a relative date (yesterday).
When you apply the filter an exception is thrown:
Observations:
* The other way around it works, i.e. parameter 1 is a relative date, parameter 2 is a absolute date.
* Using 2 absolute dates it works
* Using 2 relative dates it works
Browser: occurs in firefox (3.6.12) and in internet explorer 8
Sample code:
1. Use a databound none clientonly datasource with a DataSourceDateTimeField
2. Select the field in Filterbuilder
3. Select operator between
4. Parameter 1 use an absolute date (03/03/2010), Parameter 2 use a relative date (yesterday).
When you apply the filter an exception is thrown:
Code:
10:19:35.323 [ERROR] [gwt_fida] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (TypeError): _2 is undefined fileName: http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Forms.js lineNumber: 2939 stack: isc_c_RelativeDateItem_getRelativeDateParts((void 0))@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Forms.js:2939 isc_c_RelativeDateItem_getAbsoluteDate((void 0),[object Date])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Forms.js:2937 isc_DataSource_mapRelativeDate([object Object],[object Date])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:321 isc_DataSource_convertRelativeDates([object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:316 isc_RestDataSource_transformRequest([object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:2098 ([object GWTJavaObject])@http://fida.sentwaninge.local:8888:603 @:0 ([object GWTJavaObject],4653280,[object GWTJavaObject])@http://fida.sentwaninge.local:8888/gwt_fida/hosted.html?gwt_fida:56 ([object Object])@http://fida.sentwaninge.local:8888:507 ((function (dsRequest) {var jObj = this.__ref;if (jObj === undefined) {jObj = $wnd.isc.DS.get(this.inheritsFrom).__ref;}var dsRequestJ = __gwt_makeJavaInvoke(1)(null, 4456569, dsRequest);var data = __gwt_makeJavaInvoke(1)(jObj, 4653280, dsRequestJ);if (__gwt_makeJavaInvoke(1)(null, 4653274, data)) {data = __gwt_makeJavaInvoke(0)(data, 4259871);} else if (__gwt_makeJavaInvoke(1)(null, 4653275, data)) {data = __gwt_makeJavaInvoke(1)(null, 196639, data);}return data;}),[object Object],[object Object])@http://fida.sentwaninge.local:8888:29 @:0 (null,65560,(function (dsRequest) {var jObj = this.__ref;if (jObj === undefined) {jObj = $wnd.isc.DS.get(this.inheritsFrom).__ref;}var dsRequestJ = __gwt_makeJavaInvoke(1)(null, 4456569, dsRequest);var data = __gwt_makeJavaInvoke(1)(jObj, 4653280, dsRequestJ);if (__gwt_makeJavaInvoke(1)(null, 4653274, data)) {data = __gwt_makeJavaInvoke(0)(data, 4259871);} else if (__gwt_makeJavaInvoke(1)(null, 4653275, data)) {data = __gwt_makeJavaInvoke(1)(null, 196639, data);}return data;}),[object Object],[object Object])@http://fida.sentwaninge.local:8888/gwt_fida/hosted.html?gwt_fida:56 ([object Object])@http://fida.sentwaninge.local:8888:53 isc_DataSource_getServiceInputs([object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:365 isc_DataSource_sendDSRequest([object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:594 isc_DataSource_performDSOperation("fetch",[object Object],[object Object],[object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:578 isc_DataSource_fetchData([object Object],[object Object],[object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:555 isc_ResultSet_fetchRemoteData([object Object],0,75)@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:1250 isc_ResultSet__fetchRemoteData()@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_DataBinding.js:1245 isc_c_Class_fireCallback("$39w",(void 0),[object Array],[object Object])@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Core.js:293 isc_c_Class__fireActionsOnPause()@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Core.js:300 isc_c_Class_fireCallback([object Object],(void 0),[object Array],[object Object],true)@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Core.js:293 isc_c_Timer__fireTimeout("$ir4966")@http://fida.sentwaninge.local:8888/gwt_fida/sc/modules/ISC_Core.js:1181
* The other way around it works, i.e. parameter 1 is a relative date, parameter 2 is a absolute date.
* Using 2 absolute dates it works
* Using 2 relative dates it works
Comment