问题
For some reason I am only getting the first few rows of data back from my query. I'm not sure what I am doing wrong. I need to get all the objects from one column named states row by row. But its only grabbing the first few rows. What am I doing wrong?
ParseQuery<ParseObject> system = ParseQuery.getQuery("StatesSystem");
// system.fromLocalDatastore();
system.setLimit(30);
system.orderByAscending("SpinnersTitle");
// system.whereExists("System");
system.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> list, ParseException e) {
if (e == null) {
int i = 0;
choiceList = list.get(i).getString("SpinnersTitle");
holder = new ArrayList<String>();
for (i = 0; i < choiceList.length(); i++) {
try {
choiceList = list.get(i).getString("SpinnersTitle");
holder.add(choiceList);
} catch (Exception ex) {
ex.getMessage();
}
}
if (!holder.isEmpty()) {
adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_1, holder);
Choice = (ListView) findViewById(R.id.lvChooseSystem);
adapter.setDropDownViewResource(android.R.layout.simple_list_item_1);
Choice.setAdapter(adapter);
}
} else {
Toast.makeText(getApplicationContext(), "Error retrieving system from local datastore", Toast.LENGTH_LONG).show();
}
}
});
回答1:
Did you check your ACLPermissions? Does the user have the read access to the rows you are trying to fetch?
来源:https://stackoverflow.com/questions/30554000/parsequery-not-retrieving-all-of-data-rows