Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid.filterData throws JavaScript Exception

    If I run a filterData() on a treegrid with a client-only datasource I get the following Java Script exception:
    Code:
    00:00:30,290 [ERROR] Uncaught exception escaped
    com.google.gwt.core.client.JavaScriptException: (TypeError): _1 is undefined
      fileName: http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js
      lineNumber: 1424
      stack: isc_ResultTree_indexOf((void 0),0,9)@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1424 
    isc_GridRenderer__rowSelectionChanged((void 0),false)@http://127.0.0.1:8888/portal/sc/modules/ISC_Grids.js:705
    anonymous(null,true)@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:44 
    isc_Selection_selectList([object Array],true,(void 0))@http://127.0.0.1:8888/portal/sc/modules/ISC_Grids.js:241 
    isc_Canvas_selectRecords([object Array],true,(void 0))@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:3318 
    isc_Canvas_selectRecord(0)@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:3313 
    (0)@http://127.0.0.1:8888:190 
    @:0 
    ([object GWTJavaObject],131230,[object GWTJavaObject])@http://127.0.0.1:8888/portal/hosted.html?portal:56 
    ([object Object],(void 0))@http://127.0.0.1:8888:114 
    ((function () {var param = {parentNode: arguments[0]};var event = __gwt_makeJavaInvoke(1)(null, 16777252, param);__gwt_makeJavaInvoke(1)(selfJ, 131230, event);}),[object Object],[object Object])@http://127.0.0.1:8888:33 
    @:0 
    (null,27,(function () {var param = {parentNode: arguments[0]};var event = __gwt_makeJavaInvoke(1)(null, 16777252, param);__gwt_makeJavaInvoke(1)(selfJ, 131230, event);}),[object Object],[object Object])@http://127.0.0.1:8888/portal/hosted.html?portal:56 ([object Object],(void 0))@http://127.0.0.1:8888:15 
    isc_ListGrid__dataArrived([object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_Grids.js:1047 
    anonymous([object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:44 
    isc_ResultTree_loadChildrenReply([object Object],[object Array],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1398 
    isc_c_Class_fireCallback([object Object],"dsResponse,data,dsRequest",[object Array],[object Object],(void 0))@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:282 
    isc_Class_fireCallback([object Object],"dsResponse,data,dsRequest",[object Array])@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:376 
    isc_DataSource__completeResponseProcessing([object Object],[object Object],[object Object],[object Object],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:527 
    isc_DataSource__handleClientOnlyReply([object Object],[object Object],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:380 
    isc_c_Class_fireCallback([object Object],"rpcResponse,data,rpcRequest",[object Array],[object Object],(void 0))@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:282 
    isc_Class_fireCallback([object Object],"rpcResponse,data,rpcRequest",[object Array])@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:376 
    isc_c_RPCManager_fireReplyCallback([object Object],[object Object],[object Object],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1127 
    isc_c_RPCManager_fireReplyCallbacks([object Object],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1130 
    isc_c_RPCManager_performOperationReply([object Object],[object Object])@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1126 
    isc_c_RPCManager__performTransactionReply(10)@http://127.0.0.1:8888/portal/sc/modules/ISC_DataBinding.js:1122 
    isc_c_Class_fireCallback([object Object],(void 0),[object Array],[object Object],true)@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:282 
    isc_c_Timer__fireTimeout("$ir1107")@http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:1153 
    @http://127.0.0.1:8888/portal/sc/modules/ISC_Core.js?isc_version=7.1.js:1148
    
      	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195)
     	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
     	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
     	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
     	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
     	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     	at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     	at java.lang.reflect.Method.invoke(Method.java:597)
     	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
     	at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
     	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
     	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
     	at java.lang.Thread.run(Thread.java:619)
    The relevant code that is executed is as follows:
    Code:
            final FilterBuilder filterBuilder = new FilterBuilder();
            filterBuilder.setTopOperatorAppearance(TopOperatorAppearance.RADIO);
            filterBuilder.setMargin(5);
            filterBuilder.setPadding(5);
            filterBuilder.setBorder("2px solid lightgrey");
            filterBuilder.setDataSource(listing.getDataSource());
    
            IButton filterButton = new IButton("Filter");
            filterButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    listing.filterData(filterBuilder.getCriteria());
                    button.clearFilter().enable();
                }
            });
    where "listing" is a TreeGrid object.

    I am using GWT 2.0.4 and SmartGWT 2.2
Working...
X