Search in sources :

Example 1 with ReportsStorage

use of com.evolveum.midpoint.web.session.ReportsStorage in project midpoint by Evolveum.

the class PageReports method clearSearchPerformed.

private void clearSearchPerformed(AjaxRequestTarget target) {
    searchModel.setObject(new ReportSearchDto());
    Table panel = getReportTable();
    DataTable table = panel.getDataTable();
    ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
    provider.setQuery(createQuery());
    ReportsStorage storage = getSessionStorage().getReports();
    storage.setReportSearch(searchModel.getObject());
    storage.setPaging(null);
    panel.setCurrentPage(null);
    target.add((Component) panel);
}
Also used : DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportSearchDto(com.evolveum.midpoint.web.page.admin.reports.dto.ReportSearchDto) Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportsStorage(com.evolveum.midpoint.web.session.ReportsStorage) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider)

Example 2 with ReportsStorage

use of com.evolveum.midpoint.web.session.ReportsStorage in project midpoint by Evolveum.

the class PageReports method searchPerformed.

private void searchPerformed(AjaxRequestTarget target) {
    ObjectQuery query = createQuery();
    ObjectDataProvider provider = getDataProvider();
    provider.setQuery(query);
    ReportsStorage storage = getSessionStorage().getReports();
    storage.setReportSearch(searchModel.getObject());
    storage.setPaging(null);
    Table table = getReportTable();
    table.setCurrentPage(null);
    target.add((Component) table);
    target.add(getFeedbackPanel());
}
Also used : Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportsStorage(com.evolveum.midpoint.web.session.ReportsStorage) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider)

Example 3 with ReportsStorage

use of com.evolveum.midpoint.web.session.ReportsStorage in project midpoint by Evolveum.

the class PageCreatedReports method refreshTable.

private void refreshTable(AjaxRequestTarget target) {
    Table panel = getReportOutputTable();
    ReportsStorage storage = getSessionStorage().getReports();
    storage.setReportOutputSearch(searchModel.getObject());
    storage.setReportOutputsPaging(null);
    panel.setCurrentPage(0);
    target.add((Component) panel);
    target.add(getFeedbackPanel());
}
Also used : Table(com.evolveum.midpoint.web.component.data.Table) DataTable(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable) ReportsStorage(com.evolveum.midpoint.web.session.ReportsStorage)

Aggregations

Table (com.evolveum.midpoint.web.component.data.Table)3 ReportsStorage (com.evolveum.midpoint.web.session.ReportsStorage)3 DataTable (org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable)3 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)2 ReportSearchDto (com.evolveum.midpoint.web.page.admin.reports.dto.ReportSearchDto)1