Search in sources :

Example 1 with CreateReport

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())));
        }
    });
}
Also used : NavigationEvent(org.activityinfo.client.event.NavigationEvent) CreateResult(org.activityinfo.shared.command.result.CreateResult) CreateReport(org.activityinfo.shared.command.CreateReport)

Aggregations

NavigationEvent (org.activityinfo.client.event.NavigationEvent)1 CreateReport (org.activityinfo.shared.command.CreateReport)1 CreateResult (org.activityinfo.shared.command.result.CreateResult)1