use of com.storedobject.ui.ObjectBrowser in project SODevelopment by syampillai.
the class SchedulerLogViewer method process.
@Override
protected boolean process() {
close();
Schedule s = jobField.getObject();
DatePeriod p = periodField.getValue();
StringList cols = StringList.create("Status", "Message", "Date", "StartedAt", "CompletedAt");
ObjectBrowser<Log> logs = new ObjectBrowser<>(Log.class, cols, EditorAction.VIEW, s.getName() + " (" + s.getDescription() + ")");
logs.load("Schedule=" + s.getId() + " AND Date " + p.getDBCondition());
logs.execute();
return true;
}
Aggregations