I have a Record that I have manually created on the client side (new Record()), and have set a few attributes on it.
When I try to save it (using DataSource.addData, it throws an exception.)
When I try to analyze the contents of it (via SC.logEcho(record.getJsObj()), it throws a JS exception.
Here is the top part of the later exception:
com.google.gwt.core.client.JavaScriptException: (null): null
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.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.util.SC.logEcho(SC.java)
at com.nolmecolindor.indi.engine.client.ui.reports.ElementPresenter.save(ElementPresenter.java:423)
I know that the JavaScriptObject which the record.getJsObj() returns is not null, and if I call getAttributes() on the record, I can see that it has the intended attributes.
What could be wrong here?