Hi Isomorphic,
We have a case, where updating the DataSource cache would appear to be reverting our list grid sort, and causing a field state change event, and we are looking for some guidance on why this might be happening. I have captured the stack trace below. The documentation for the field state change handler claims, "Notification method executed when columns are resized or reordered, or fields are shown or hidden. Has no default implementation.", which is makes it unclear how such an event would be fired for a DataSource cache update.
Thanks
SmartClient Version: v10.1p_2016-04-08/Pro Deployment (built 2016-04-08)
We have a case, where updating the DataSource cache would appear to be reverting our list grid sort, and causing a field state change event, and we are looking for some guidance on why this might be happening. I have captured the stack trace below. The documentation for the field state change handler claims, "Notification method executed when columns are resized or reordered, or fields are shown or hidden. Has no default implementation.", which is makes it unclear how such an event would be fired for a DataSource cache update.
Thanks
SmartClient Version: v10.1p_2016-04-08/Pro Deployment (built 2016-04-08)
Code:
(Suspended (breakpoint at line 468 in XXXXXListGrid$8)) XXXXXListGrid$8.onFieldStateChanged(FieldStateChangedEvent) line: 468 FieldStateChangedEvent.dispatch(FieldStateChangedHandler) line: 111 FieldStateChangedEvent.dispatch(EventHandler) line: 1 FieldStateChangedEvent(GwtEvent<H>).dispatch(Object) line: 1 EventBus.dispatchEvent(Event<H>, H) line: 40 HandlerManager$Bus(SimpleEventBus).doFire(Event<H>, Object) line: 193 HandlerManager$Bus(SimpleEventBus).fireEvent(Event<?>) line: 88 HandlerManager.fireEvent(GwtEvent<?>) line: 127 TaskList(Widget).fireEvent(GwtEvent<?>) line: 129 GeneratedMethodAccessor83.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 497 MethodAdaptor.invoke(Object, Object...) line: 103 MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, BrowserChannel$Value[]) line: 172 BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer$SessionHandlerServer) line: 338 BrowserChannelServer.invokeJavascript(CompilingClassLoader, JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 219 ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line: 136 ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class<?>[], Object[]) line: 576 ModuleSpaceOOPHM(ModuleSpace).invokeNativeObject(String, Object, Class<?>[], Object[]) line: 284 JavaScriptHost.invokeNativeObject(String, Object, Class<?>[], Object[]) line: 91 Impl.apply(Object, Object, Object) line: not available Impl.entry0(Object, Object, Object) line: 356 GeneratedMethodAccessor43.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 497 MethodAdaptor.invoke(Object, Object...) line: 103 MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, BrowserChannel$Value[]) line: 172 BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer$SessionHandlerServer) line: 338 BrowserChannelServer.invokeJavascript(CompilingClassLoader, JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 219 ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line: 136 ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class<?>[], Object[]) line: 576 ModuleSpaceOOPHM(ModuleSpace).invokeNativeVoid(String, Object, Class<?>[], Object[]) line: 304 JavaScriptHost.invokeNativeVoid(String, Object, Class<?>[], Object[]) line: 107 DataSource.updateCaches(DSResponse) line: not available ClientUtils.updateDsCache(DataSource, DSOperationType, Record, XXXXXListGrid) line: 1795 ClientUtils.updateDsCache(XXXXXFormGenerator, DSOperationType, Record) line: 1765 ClientUtils$37.execute(DSResponse, Object, DSRequest) line: 1686 ClientUtils$3.execute(DSResponse, Object, DSRequest) line: 402 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 62 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 497 MethodAdaptor.invoke(Object, Object...) line: 103 MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, BrowserChannel$Value[]) line: 172 BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer$SessionHandlerServer) line: 338 BrowserChannelServer.invokeJavascript(CompilingClassLoader, JsValueOOPHM, String, JsValueOOPHM[], JsValueOOPHM) line: 219 ModuleSpaceOOPHM.doInvoke(String, Object, Class<?>[], Object[]) line: 136 ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class<?>[], Object[]) line: 576 ModuleSpaceOOPHM(ModuleSpace).invokeNativeObject(String, Object, Class<?>[], Object[]) line: 284 JavaScriptHost.invokeNativeObject(String, Object, Class<?>[], Object[]) line: 91 Impl.apply(Object, Object, Object) line: not available Impl.entry0(Object, Object, Object) line: 356 GeneratedMethodAccessor43.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43 Method.invoke(Object, Object...) line: 497 MethodAdaptor.invoke(Object, Object...) line: 103 MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, BrowserChannel$Value[]) line: 172 BrowserChannelServer.reactToMessages(BrowserChannelServer$SessionHandlerServer) line: 293 BrowserChannelServer.processConnection() line: 547 BrowserChannelServer.run() line: 364 Thread.run() line: 745
Comment