Search in sources :

Example 1 with UpdateReportModel

use of org.activityinfo.legacy.shared.command.UpdateReportModel in project activityinfo by bedatadriven.

the class ReportDesignPage method performUpdate.

private void performUpdate(final AsyncMonitor monitor, final AsyncCallback<VoidResult> callback) {
    UpdateReportModel updateReport = new UpdateReportModel();
    updateReport.setModel(currentModel);
    dispatcher.execute(updateReport, monitor, new AsyncCallback<VoidResult>() {

        @Override
        public void onFailure(final Throwable caught) {
            callback.onFailure(caught);
        }

        @Override
        public void onSuccess(final VoidResult result) {
            dirty = false;
            callback.onSuccess(result);
        }
    });
}
Also used : VoidResult(org.activityinfo.legacy.shared.command.result.VoidResult) UpdateReportModel(org.activityinfo.legacy.shared.command.UpdateReportModel)

Aggregations

UpdateReportModel (org.activityinfo.legacy.shared.command.UpdateReportModel)1 VoidResult (org.activityinfo.legacy.shared.command.result.VoidResult)1