ParseQuery not retrieving all of data rows

岁酱吖の 提交于 2019-12-25 04:19:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!