OK, you know me, here comes a somewhat vague question:
I see this in the logs:
I am sure i haven't seen this before, but i'm not certain if this is because i've upgraded the smartgwt version (running 13.1-p20250205), or if it's one of my changes.
I not sure how to interpret this warning, i'm not seeing how i could call that function, could you perhaps help me understand it better?
cheers
EDIT:
turns out i found the reason. We have an issue where a searchfunction we've had for a grid doesn't work anymore, not sure why.
Turns out that even if the grid has tons of records, the grid.getRecords() returns an empty array. I could have sworn that this used to work, i would suspect that it stopped working after we upgraded to 13 and missed it in testing. Anyway.
I then instead tried getRecordList(), and that method does indeed return all records in the grid. However, calling that method results in the above warning being logged. Feels weird.
EDIT2:
Turns out, you get the same warning if you call grid.getResultSet().getAllRows(), which is the recommended way of getting all rows from a grid according to the Javadocs.
Also, calling any of those methods results in the dataarrivedhandler getting called for some reason. (not happening with getRecords()) This is a datasource with cacheAllData set to true.
I see this in the logs:
*17:30:29.936:MUP2:WARN:Log:Attempt to call internalSetID to change id from isc_ResultSet_0 to isc_ResultSet_0 after the SC instance has already been created
I not sure how to interpret this warning, i'm not seeing how i could call that function, could you perhaps help me understand it better?
cheers
EDIT:
turns out i found the reason. We have an issue where a searchfunction we've had for a grid doesn't work anymore, not sure why.
Turns out that even if the grid has tons of records, the grid.getRecords() returns an empty array. I could have sworn that this used to work, i would suspect that it stopped working after we upgraded to 13 and missed it in testing. Anyway.
I then instead tried getRecordList(), and that method does indeed return all records in the grid. However, calling that method results in the above warning being logged. Feels weird.
EDIT2:
Turns out, you get the same warning if you call grid.getResultSet().getAllRows(), which is the recommended way of getting all rows from a grid according to the Javadocs.
Also, calling any of those methods results in the dataarrivedhandler getting called for some reason. (not happening with getRecords()) This is a datasource with cacheAllData set to true.
Comment