Announcement

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

    ListGrid.editHilites - adv. rule not working

    Hi,
    I've just updated to SGWT Power 2.4. I' tried the new hilite editor, it's a great tool and it's working fine in standard mode but when I try to save an advanced rule it gives me back the following error:

    08:54:52.318 [ERROR] [pamp] 08:54:52.331:MUP3:WARN:Log:TypeError: this.getDataSource() is null
    FilterClause.getCriterion()
    FilterBuilder.getCriteria()
    AdvancedHiliteEditor.saveHilite()
    unnamed({Obj}, undef)
    StatefulCanvas.handleActivate(_1=>{Obj}, _2=>undef)
    StatefulCanvas.handleClick(_1=>{Obj}, _2=>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: 08:54:52.331:MUP3:WARN:Log:TypeError: this.getDataSource() is null
    FilterClause.getCriterion()
    FilterBuilder.getCriteria()
    AdvancedHiliteEditor.saveHilite()
    unnamed({Obj}, undef)
    StatefulCanvas.handleActivate(_1=>{Obj}, _2=>undef)
    StatefulCanvas.handleClick(_1=>{Obj}, _2=>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(NativeConstructorAccessorImpl.java:44)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:516)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:53)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
    at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1668)
    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(Thread.java:736)

    #2
    Seems to be fine in the Showcase. Note that a DataSource is required.

    Comment


      #3
      The datasource is correctly working. The listgrid is showing the records and the basic conditional hiliting doesn't give problems. Only the advanced doesnt' work.

      It's a standard sql datasource. Really I don't know where to start my debugging from.

      Comment


        #4
        Please start by showing us the DataSource and ListGrid definition.

        Comment


          #5
          Well,
          I checked the showcase and it seems to show the same behaviour.
          So probably I'm doing something wrong. When I click on save the application simply doesn't do anything.

          Same on my app but there I can see the error on the console (see the message above).

          I attach a shot taken from my trial on the howcase.
          I tried using firefox(3.5 and 3.6), chrome and explorer (8)
          Attached Files

          Comment


            #6
            Thanks for the bug report - this is fixed in the main codebase and will be in upcoming nightly builds

            Comment

            Working...
            X