Announcement

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

    dropCacheOnUpdate and ResultSet.getRange()

    Hi there,

    I have a Datasource where I've set dropCacheOnUpdate="true" because we kept having issues with synchronizing the cache between multiple grids. And, dropCacheOnUpdate seems to have resolved those issues.

    However, in editComplete, I was calling resultSet.getRange() in order to do some calculations and that is now giving me the array with "loading" markers. I tried using dataArrived() instead but dataArrived is not firing in response to a call saveAllEdits() as editComplete does. So, any ideas how I can be sure that resultSet.getRange is going to return the actual data in this case?

    #2
    If data is loaded, dataArrived() should fire. What do your code look like for reacting to dataArrived()?

    Comment


      #3
      I'm keeping it simple for now while I test and dataArrived is definitely not firing. My logging settings are set to show logInfo

      dataArrived
      Code:
      	dataProperties: {
      		dataArrived : function(startRow,endRow){
      			isc.Log.logInfo("hello world dataArrived");
      
      		}
      	},

      editComplete
      Code:
      	editComplete:function(rowNum,colNum,newValues,oldValues){
      			isc.Log.logInfo("hello world editComplete");
      	},

      The hello world for editComplete does show up in the Log. The hello world for dataArrived does not. However, this also appears in the log and possibly will give you a clue for what is going on?


      19:08:13.781:WARN:ListGrid:sectorFAGrid:Record:{fundAssetSectorID: 479}, lost from local cache in paged result set. Pending edits for this record will be maintained.

      Comment


        #4
        Not sure if it matters or not, but thought I'd comment this grid's data is populated using Resultset.create() and not any calls to fetchData()

        Comment


          #5
          That's the problem. dataProperties is only used in ResultSet auto-construction by fetchData(). Pass dataArrived directly to ResultSet.create() instead.

          Comment


            #6
            Ok, that's good to know. Thanks. Are you planning on documenting resultSet.create() for your next release? If so, it would probably be helpful to include the fact you can't set dataProperties on a ListGrid when using ResultSet.create().

            Thanks!

            Comment

            Working...
            X