Announcement

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

    getHandle error when selectionType="checkbox"

    I keep getting this error when I have selectionType as checkbox. Could you give a possible reason why this happens? I can't reproduce it in just any listgrid.

    10:52:24.027:XRP5:WARN:Log:TypeError: this.getHandle().style is undefined
    Canvas._applyCursor("default")
    Canvas._updateCursor()
    Canvas.setCursor(_1=>"default")
    StatefulCanvas.setHandleDisabled(_1=>true)
    Canvas.setDisabled(_1=>true)
    Class.setProperties(=>{Obj})
    ListGrid.setFieldProperties(_1=>0, _2=>{Obj})
    ListGrid._dataArrived(0, 75)
    anonymous(0, 75)
    ResultSet._doneDataArriving(0, 75, false)
    unnamed({Obj}, [object Array], {Obj})
    [c]Class.fireCallback(_1=>{Obj}, _2=>"dsResponse,data,dsRequest", _3=>[object Array], _4=>{Obj}, _5=>undef)
    [c]Class.fireCallback(_1=>{Obj}, _2=>"dsResponse,data,dsRequest", _3=>[object Array])
    DataSource.fireResponseCallbacks({Obj}, {Obj}, {Obj}, {Obj})
    DataSource._completeResponseProcessing([object Array], {Obj}, {Obj}, {Obj}, {Obj})
    DataSource._handleSCServerReply({Obj}, [object Array], {Obj})
    [c]Class.fireCallback(_1=>{Obj}, _2=>"rpcResponse,data,rpcRequest", _3=>[object Array], _4=>{Obj}, _5=>undef)
    [c]Class.fireCallback(_1=>{Obj}, _2=>"rpcResponse,data,rpcRequest", _3=>[object Array])
    [c]RPCManager.fireReplyCallback(_1=>{Obj}, _2=>{Obj}, _3=>{Obj}, _4=>[object Array])
    [c]RPCManager.fireReplyCallbacks(_1=>{Obj}, _2=>{Obj})
    [c]RPCManager.performOperationReply(_1=>{Obj}, _2=>{Obj})
    RPCManager._performTransactionReply(1)
    [c]RPCManager.performTransactionReply(_1=>1, _2=>"//isc_RPCResponseStart-->[{data:[{cwPK_..."[ 63555], _3=>undef)
    anonymous(1, [object XMLHttpRequest])
    [c]Class.fireCallback(_1=>"isc.RPCManager.performTransactionReply(..."[ 67], _2=>"transactionNum,results,wd", _3=>[object Array])
    [c]Comm.performXmlTransactionReply(_1=>1, _2=>[object XMLHttpRequest])
    anonymous([object XMLHttpRequest])
    [c]Class.fireCallback(_1=>"isc.Comm.performXmlTransactionReply(1, ..."[ 56], _2=>"xmlHttpRequest", _3=>[object Array], _4=>[object Proxy], _5=>true)
    Comm._fireXMLCallback([object XMLHttpRequest], "isc.Comm.performXmlTransactionReply(1, ..."[ 56])
    unnamed([object Event])
    unnamed() @

    #2
    This error and stack trace look like we attempted to access the handle of a widget in the DOM but it hadn't been drawn so the handle was null.
    However the code path in question (the "_applyCursor()" method) already checks for the widget being un-drawn in the DOM, at least in the latest SmartClient codebase and so this shouldn't be happening.

    Not a lot we can do without more information here - if you can identify whats special about the grids where this occurs (and ideally get us a test case) we'll take a look.
    Also please post your SmartClient build version info where you're seeing this so we are looking at the right codebase.

    Thanks
    Isomorphic Software

    Comment


      #3
      Sorry for the late response. Here's the testcase. Looks like it is dependent on the screenReader mode.

      If you run the testcase, you will notice that the select all checkbox does not display properly. It looks like the image is missing or something. In FF 12, as soon as I click on the checkbox, firefox crashes (the window closes on its own).

      Code:
      isc.screenReader = true;
      
      isc.ListGrid.create({
          ID: "countryList",
          width:500, height:224, alternateRecordStyles:true,
          data: countryData,
          selectionAppearance:"checkbox",
          fields:[
              {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
              {name:"countryName", title:"Country"},
              {name:"capital", title:"Capital"},
              {name:"continent", title:"Continent"}
          ],
          selectionChanged: "selectedCountries.setData(this.getSelection())"
      })

      Comment


        #4
        This issue should now be resolved. Please try the next nightly build and let us know if you continue to encounter issues with it.

        Thanks
        Isomorphic Software

        Comment

        Working...
        X