Announcement

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

    How to define multi select filter editor in a datasource.ds.xml?

    Hi,

    I try to define a multi select filter editor (without adding the possiblity to select multiple values in a value editor) in a datasource.ds.xml.
    E.g. take the #sql_basic_connector example from the EE showcase. By adding
    Code:
    <filterEditorType><FormItem multiple="true" constructor="SelectItem"></FormItem></filterEditorType>
    or
    Code:
    <filterEditorType><SelectItem multiple="true"></SelectItem></filterEditorType>
    to the definition of the "continent" field in worldDS.ds.xml, all I get is a
    Code:
    com.google.gwt.core.client.JavaScriptException: (TypeError) @com.smartgwt.client.widgets.BaseWidget::draw()([]): _1.startsWith is not a function
        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:571)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.smartgwt.client.widgets.BaseWidget.draw(BaseWidget.java)
        at com.smartgwt.sample.showcase.client.Showcase.onModuleLoad(Showcase.java:244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:406)
        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(Thread.java:724)
    This is how it should work imo according to the docs. Wrong syntax or bug?

    SmartClient Version: v8.3p_2013-09-25/PowerEdition Deployment (built 2013-09-25)

    Thanks,
    fatzopilot
Working...
X