use of com.axelor.studio.service.filter.FilterSqlService in project axelor-open-suite by axelor.
the class FilterController method updateTargetType.
public void updateTargetType(ActionRequest request, ActionResponse response) throws AxelorException {
Filter filter = request.getContext().asType(Filter.class);
FilterSqlService filterSqlService = Beans.get(FilterSqlService.class);
if (filter.getTargetField() == null)
return;
StringBuilder parent = new StringBuilder("self");
String targetType = filterSqlService.getTargetType(filterSqlService.getTargetField(parent, filter, null, false));
response.setValue("targetType", targetType);
response.setValue("filterOperator", null);
}
Aggregations