use of org.activityinfo.ui.client.input.view.FormDialog in project activityinfo by bedatadriven.
the class TableToolBar method onEditRecord.
private void onEditRecord(SelectEvent event) {
Optional<RecordRef> selected = viewModel.getSelectedRecordRef().get();
if (!selected.isPresent()) {
return;
}
FormDialog dialog = new FormDialog(formStore, selected.get());
dialog.show();
}
use of org.activityinfo.ui.client.input.view.FormDialog in project activityinfo by bedatadriven.
the class TableToolBar method onNewRecord.
private void onNewRecord(SelectEvent event) {
ResourceId newRecordId = ResourceId.generateSubmissionId(viewModel.getFormId());
RecordRef newRecordRef = new RecordRef(viewModel.getFormId(), newRecordId);
FormDialog dialog = new FormDialog(formStore, newRecordRef);
dialog.show();
}
Aggregations