I am using SmartGWT Enterprise 5.1d, Chrome browser, superdev mode for debugging.
My issue is with the following code
So far as I can tell in debugging, it throws an exception that simply states "java.lang.string cannot be cast into java.util.list". The exception actually appears in a smartgwt popup dialog. I have placed breakpoints in my code all the way up to the first line inside this code, and it never makes it past
I have no idea why the error is happening, as every variable leading up to this is properly initialized. Any help is appreciated!
My issue is with the following code
Code:
myReadingDs.fetchData(c, new DSCallback() {
public void execute(DSResponse response, Object rawData, DSRequest request) {
// Grab an array of records or a RecordList. The latter handy for searches.
RecordList recordList = response.getDataAsRecordList();
for(int i = 0; i < recordList.getLength(); i++) {
consoleLog(recordList.get(i).getAttribute("collectedAt"));
}
}
});
Code:
myReadingDs.fetchData(c, new DSCallback() {
Comment