Announcement

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

    patch for getCellHoverDelay

    Hi, here is a patch for getCellHoverDelay to ensure that this.getField(colNum) is not null

    Code:
         if (window.isc &&  (isc.version.startsWith("v12.0")    )){
    
    
             isc.ListGrid.getPrototype().addProperties({
    
                 getCellHoverDelay : function (record, rowNum, colNum) {
                     if(this.getField(colNum)!=null){
                         fieldDelay = this.getField(colNum).hoverDelay;
                         if (fieldDelay != null) return fieldDelay;
                     }
                     return this.hoverDelay;
                 }
             })
    
         }

    #2
    How can you reproduce getting an invalid colNum here? What value do you see when it's invalid?

    Comment


      #3
      We just have exception handling that keeps catching this issue from our production users. I'm not entirely sure how it is happening but I think it is when we use the column chooser and remove columns and then hit Apply and the cursor is suddenly hovering over a column that has just been removed from view.

      Comment


        #4
        We've added a null check for the field to the method as requested back to SC 11.1p, and also a fixed a problem in related logic that resolves a field in the GridBody to a field in the ListGrid. It will be in the nightly builds dated 2019-08-22 and beyond.

        Comment

        Working...
        X