use of org.activityinfo.shared.command.CreateReport in project activityinfo by bedatadriven.
the class ReportDesignPage method performCreate.
private void performCreate() {
currentModel.setTitle(currentModel.getTitle() + " (" + I18N.CONSTANTS.copy() + ")");
dispatcher.execute(new CreateReport(currentModel), new AsyncCallback<CreateResult>() {
@Override
public void onFailure(final Throwable caught) {
}
@Override
public void onSuccess(final CreateResult created) {
eventBus.fireEvent(new NavigationEvent(NavigationHandler.NAVIGATION_REQUESTED, new ReportDesignPageState(created.getNewId())));
}
});
}
Aggregations