if(selectedRecord != null) {
RecordList rs = myList2.getRecordList();
int numRecords = rs.getLength();
int idx = myList2.getRecordIndex(selectedRecord);
if(idx < numRecords - 1) {
rs.removeAt(idx);
rs.addAt(selectedRecord, rs.getLength() -1);
}
}
}
});