Select to view content in your preferred language

FeatureEditResult

2878
1
08-24-2015 02:39 AM
HectorChapa
Frequent Contributor

How to get the object id back need help. I see is a two dimensional array.

layer.applyEdits(new Graphic[]{}, new Graphic[]{}, update, new CallbackListener<FeatureEditResult[][]>(){

@Override

public void onCallback(FeatureEditResult[][] result){

    result[0][0].getObjectId()); put this doesnt work at all..

}

});

0 Kudos
1 Reply
EricBader
Honored Contributor

Hi Hector,

Before calling getObjectId() on the result, check to see:

if (result[2] != null && result[2][0] != null && result[2][0].isSuccess())

0 Kudos