I need guidance re FieldPicker. I'd like to use a FieldPicker, not as an autochild of a ListGrid accessible by Context Menu, but as a "form" in a pane that is always visible side-by-side with the target ListGrid.
Issue #1: With Power Edition, the FieldPicker class is missing from the widgets package. It should appear next to FieldPickerWindow, but it doesn't.
SmartClient Version: v9.1p_2015-05-12/PowerEdition Deployment (built 2015-05-12)
However, the AdvancedFieldPicker Window does launch from the ListGrid Context Menu Item "Columns." So FieldPicker must be in there *somewhere* :)
Issue #2: With the 5.0 Eval Edition, the FieldPicker class is present. However, this attempt to use it in the most basic way blows up.
SmartClient Version: v10.0p_2015-05-12/EVAL Deployment (expires 2015.07.11_09.02.09) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)
The above code provokes the following error. Please advise, thanks.
==========
06:39:09.273 [ERROR] [builtinds] Unable to load module entry point class com.smartgwt.sample.client.DemoFieldPicker (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.FieldPicker::create()([]): Unable to get property '0' of undefined or null reference
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.widgets.FieldPicker.create(FieldPicker.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:542)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1519)
at com.smartgwt.sample.client.DemoFieldPicker.onModuleLoad(DemoFieldPicker.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Unknown Source)
---------
Browser is IE 11 32-bit
Issue #1: With Power Edition, the FieldPicker class is missing from the widgets package. It should appear next to FieldPickerWindow, but it doesn't.
SmartClient Version: v9.1p_2015-05-12/PowerEdition Deployment (built 2015-05-12)
However, the AdvancedFieldPicker Window does launch from the ListGrid Context Menu Item "Columns." So FieldPicker must be in there *somewhere* :)
Issue #2: With the 5.0 Eval Edition, the FieldPicker class is present. However, this attempt to use it in the most basic way blows up.
Code:
package com.smartgwt.sample.client; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.data.DataSource; import com.smartgwt.client.widgets.FieldPicker; import com.smartgwt.client.widgets.grid.ListGrid; import com.smartgwt.client.widgets.layout.VLayout; public class DemoFieldPicker implements EntryPoint { DataSource dsAnimals = DataSource.get("animals"); @Override public void onModuleLoad() { VLayout vLayout = new VLayout(); vLayout.setWidth100(); ListGrid listGrid = new ListGrid(dsAnimals); vLayout.addMember(listGrid); FieldPicker fieldPicker = new FieldPicker(); fieldPicker.setDataBoundComponent(listGrid); vLayout.addMember(fieldPicker); // this line provokes error shown below... vLayout.draw(); } }
The above code provokes the following error. Please advise, thanks.
==========
06:39:09.273 [ERROR] [builtinds] Unable to load module entry point class com.smartgwt.sample.client.DemoFieldPicker (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.FieldPicker::create()([]): Unable to get property '0' of undefined or null reference
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.smartgwt.client.widgets.FieldPicker.create(FieldPicker.java)
at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:542)
at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1519)
at com.smartgwt.sample.client.DemoFieldPicker.onModuleLoad(DemoFieldPicker.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:411)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:526)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
at java.lang.Thread.run(Unknown Source)
---------
Browser is IE 11 32-bit
Comment