Hello,
after updating to SmartGWT 2.1 I received the following error on an empty ListGrid:
RDQ7:WARN:ResultSet:isc_ResultSet_1 (created by: isc_OID_39):get: invalid index -1
As datasource I used the GwtRpcDataSource Version 1.0.
The fetch code looks like:
Does anyone have an idea?
Thanks
after updating to SmartGWT 2.1 I received the following error on an empty ListGrid:
RDQ7:WARN:ResultSet:isc_ResultSet_1 (created by: isc_OID_39):get: invalid index -1
As datasource I used the GwtRpcDataSource Version 1.0.
The fetch code looks like:
Code:
@Override protected void executeFetch(final String requestId, final DSRequest request, final DSResponse response) { AdministratorService.Util.getInstance().getModerators(customer.getIdCustomer(), new AsyncCallback<List<User>>() { public void onFailure(Throwable caught) { response.setStatus(RPCResponse.STATUS_FAILURE); processResponse(requestId, response); } public void onSuccess(List<User> result) { //damit wir nicht immer neu laden müssen users = result; // Calculating size of return list int size = result.size(); ListGridRecord[] list = new ListGridRecord[size]; for (int i = 0; i < result.size(); i++) { ListGridRecord record = new ListGridRecord(); record.setAttribute("name", result.get(i).getName()); record.setAttribute("active", result.get(i).isActive()); list[i] = record; } response.setData(list); // IMPORTANT: for paging to work we have to specify // size of full result set response.setTotalRows(result.size()); processResponse(requestId, response); } }); }
Thanks
Comment