我正在尝试创建一个查询,以从微调器中获取所选项,并使用URL中的信息进行查询。但是无论何时我运行它,都会抛出异常,说我的参数无效。
代码:
QueryParameters qryLotNums = new QueryParameters ();
qryLotNums.setReturnGeometry(true);
qryLotNums.setOutFields(new String[] {mLotNumColName});
qryLotNums.setWhere(String.valueOf(mSpnParcels.getSelectedItem()));
//Create a query task:
mLotLayerURL = getString(R.string.basemap_url_query) + "/" + mLotLayerID;
QueryTask qtask = new QueryTask(mLotLayerURL);
// To run query
try {
/** ================================
* add your code here
* ==================================
*/
//Get the graphics from the Query Task:
FeatureResult fSet= qtask.execute(qryLotNums);
} ...