Expand my Community achievements bar.

How to call getItems(List identityList) ?

Avatar

Former Community Member
Hi LCDS Gurus,
Currently I have trouble of configure the LCDS Assember. Our data polling frontend is pretty standard:

DataService->ArrayCollection->DataGrid

The DataService has following settings (In action script):

ds = new DataService("datahelper");
ds.autoCommit = false;
ds.autoSyncEnabled = true;

The backend Assembler has following configuration in data-management-conf.xml:
======




false





com.xx.DataAssembler
application







=====

Also the com.xx.DataAssember has overriden following methods:
=====
public List getItems(List arg0)
public Object getItem(Map identity)
public void updateItem(Object newVersion, Object previousVersion, List changes)
public Collection fill(List fillParameters, int startIndex, int numberOfRows)
public Collection fill(List fillParameters)
public int refreshFill(List fillParameters, Object item, boolean isCreate) {
return DO_NOT_EXECUTE_FILL;
}
public boolean autoRefreshFill(List fillParameters) {
// TODO Auto-generated method stub
return false;
}
public int count(List fillParameters)
=====

My problem is, whenever the DataGrid request the next page, it always invoke the getItem() 30 times (30 is my page size) instead of invoke getItems() once. So I can save 29 queries.

Do you know what's wrong with my configruation?

Thx a lot !
0 Replies