0

ADF モバイルでイテレータを使用してプログラムでデータを読み取りたい。私のコードは次のとおりです。

try {
    ValueExpression vex = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescriptionIterator}", Object.class);
    AmxIteratorBinding iter = (AmxIteratorBinding)vex.getValue(AdfmfJavaUtilities.getAdfELContext());
    GenericType row = null;
    BasicIterator bIter = iter.getIterator();
    iter.getIterator().first();
    ArrayList employees = new ArrayList();
    for(int i = 0; i < iter.getIterator().getTotalRowCount(); i++) {
        row = (GenericType)iter.getCurrentRow();
        String phone = "";
        String email = "";
        if(row.getAttribute("Description") != null)
            phone = row.getAttribute("Description").toString();
        if(row.getAttribute("WeatherID") != null)
            email = row.getAttribute("WeatherID").toString();

        setTempValue(phone + " " + email);

        iter.getIterator().next();

    }
}
catch(Exception e1) {
    AdfException ex = new AdfException(""+e1.getLocalizedMessage(), AdfException.ERROR );
    throw ex;
}

エラーが発生します:->プロパティバインディングが見つかりません

4

1 に答える 1

0

式は次のようになります。ValueExpression vex = AdfmfJavaUtilities.getValueExpression("#bindings.WeatherDescriptionIterator.iteratorBinding}", Object.class);

于 2014-06-19T11:33:24.893 に答える