Announcement

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

    OperatorId.IN_SET

    How do you use the OperatorId.IN_SET in a datasource for a filterbuilder. I've tried both setValueMap(map) and setAttribute("value", list) with no luck.

    1. Version
    SmartGWT 2.2
    FireFox

    2. for a server-side problem, the complete logs generated during processing of the request;
    N/A

    3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);

    Code:
    10:28:56.754 [ERROR] [searchwidget] 10:28:56.754:WARN:FilterClause:isc_FilterBuilder_1_clause_isc_OID_0:buildValueItemList passed null operator
    com.smartgwt.client.core.JsObject$SGWT_WARN: 10:28:56.754:WARN:FilterClause:isc_FilterBuilder_1_clause_isc_OID_0:buildValueItemList passed null operator
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        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(Unknown Source)
    
    
    
    
    
    10:28:56.754 [ERROR] [searchwidget] 10:28:56.768:WARN:Log:TypeError: _2 is null
        FilterClause.buildValueItemList(_1=>{Obj},  _2=>null)
        FilterClause.updateFields()
        FilterClause.fieldNameChanged(=>{Obj})
        Class.invokeSuper(_1=>null,  _2=>"fieldNameChanged")
        Class.Super(_1=>"fieldNameChanged",  _2=>{Obj})
        unnamed({Obj})
        unnamed({Obj}, {Obj}, "itemType")
        FormItem.handleChanged("itemType")
        FormItem._updateValue("itemType")
        SelectItem.updateValue()
        SelectItem.changeToValue("itemType", true)
        SelectItem.pickValue("itemType")
        PickListMenu.itemClick({Obj})
        PickListMenu.recordClick({Obj}, {Obj}, 1, {Obj}, 0, "Item Type", "itemType")
        ListGrid.rowClick({Obj}, 1, 0)
        anonymous({Obj}, 1, 0)
        GridRenderer._rowClick(1, 0)
        GridRenderer.click({Obj}, undef)
        Canvas.handleClick({Obj}, undef)
        [c]EventHandler.bubbleEvent(_1=>{Obj},  _2=>"click")
        [c]EventHandler.handleClick(_1=>{Obj})
        EventHandler._handleMouseUp([object MouseEvent], undef)
        [c]EventHandler.handleMouseUp(_1=>[object MouseEvent])
        [c]EventHandler.dispatch(_1=>isc_c_EventHandler_handleMouseUp,  _2=>[object MouseEvent])
        anonymous([object MouseEvent])
        unnamed()
    com.smartgwt.client.core.JsObject$SGWT_WARN: 10:28:56.768:WARN:Log:TypeError: _2 is null
        FilterClause.buildValueItemList(_1=>{Obj},  _2=>null)
        FilterClause.updateFields()
        FilterClause.fieldNameChanged(=>{Obj})
        Class.invokeSuper(_1=>null,  _2=>"fieldNameChanged")
        Class.Super(_1=>"fieldNameChanged",  _2=>{Obj})
        unnamed({Obj})
        unnamed({Obj}, {Obj}, "itemType")
        FormItem.handleChanged("itemType")
        FormItem._updateValue("itemType")
        SelectItem.updateValue()
        SelectItem.changeToValue("itemType", true)
        SelectItem.pickValue("itemType")
        PickListMenu.itemClick({Obj})
        PickListMenu.recordClick({Obj}, {Obj}, 1, {Obj}, 0, "Item Type", "itemType")
        ListGrid.rowClick({Obj}, 1, 0)
        anonymous({Obj}, 1, 0)
        GridRenderer._rowClick(1, 0)
        GridRenderer.click({Obj}, undef)
        Canvas.handleClick({Obj}, undef)
        [c]EventHandler.bubbleEvent(_1=>{Obj},  _2=>"click")
        [c]EventHandler.handleClick(_1=>{Obj})
        EventHandler._handleMouseUp([object MouseEvent], undef)
        [c]EventHandler.handleMouseUp(_1=>[object MouseEvent])
        [c]EventHandler.dispatch(_1=>isc_c_EventHandler_handleMouseUp,  _2=>[object MouseEvent])
        anonymous([object MouseEvent])
        unnamed()
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
        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(Unknown Source)
    4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and
    N/A

    5. sample code.

    Code:
    DataSourceTextField itemTypeField = new DataSourceTextField("itemType",
    				"Item Type");
    itemTypeField.setValueMap("Dog", "Cat");
    itemTypeField.setValidOperators(OperatorId.IN_SET);

    #2
    The FilterBuilder doesn't currently have an interface for this operator. If it's important for your application, consider Feature Sponsorship as a means of having it added.

    Comment

    Working...
    X