private void open() { form.setMode(FormMode.VIEW); form.grdList().getRows().clear(); PropertyChecklistShortVoCollection list = domain.list(form.getGlobalContext().Core.getCurrentCareContext()); if(list != null) { for(int i = 0; i < list.size(); i++) { addRowRecord(list.get(i)); } } //set selection back if (form.getLocalContext().getEditedRecordIsNotNull()) { //need to get timestamp from record retrieved from List call. GenForm.grdListRow row = form.grdList().getRowByValue(form.getLocalContext().getEditedRecord()); if (row != null && row.getValue() != null) { getAndDisplayRecord(); } else clear(); updateControlState(); } else form.ctnDetails().setCollapsed(true); updateControlState(); }