ParseQuery不检索所有数据行

时间:2015-05-31 04:54:10

标签: java parse-platform constraints rows

出于某种原因,我只从查询中获取前几行数据。我不确定我做错了什么。我需要逐行从一个名为states的列中获取所有对象。但它只抓住前几排。我做错了什么?

    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 个答案:

答案 0 :(得分:0)

您是否检查了ACLPermissions?用户是否具有您尝试获取的行的读取权限?