Hi Isomorphic,
OK, thanks a lot.
Best regards
Blama
Announcement
Collapse
No announcement yet.
X
-
The warning is correct. We added the warning because the signature doesn't force you to use ListGridRecord, so the warning tells you.
Leave a comment:
-
Wrong warning for DataSource.setCacheData() when used with Record[]
Hi Isomorphic,
after your suggestion here, I'm implementing this (using v10.1p_2017-02-22).
Now I have this code:
Code:ArrayList<Record> recordList = new ArrayList<Record>(); Record r = new Record(); r.setAttribute(DISPLAYFIELD, mappedValue[0]); ... ... recordList.add(r); [B]ds.setCacheData(recordList.toArray(new Record[recordList.size()]));[/B]
WARN:Log:setCacheData(): DataSource cache data is expected to be an array of ListGridRecords. This allows the data to be displayed as expected in ListGrids bound to this dataSource.
EDIT: Testcase is here.
Best regards
BlamaTags: None
Leave a comment: