def _get_filter_and_agg_indicator(self): """ Return the data source indicator that will be used for filtering, or aggregating on this question (but not display) """ column_id = get_column_name(self._property.strip("/")) return make_form_question_indicator(self._question_source, column_id)
def _get_filter_and_agg_indicator(self): """ Return the data source indicator that will be used for filtering, or aggregating on this question (but not display) """ column_id = get_column_name(self._property.strip("/")) return make_form_question_indicator(self._question_source, column_id)
def _get_indicator(self, ui_aggregation, is_multiselect_chart_report=False): """ Return the report config snippet for the data source indicator for this form question column option """ assert ui_aggregation in UI_AGGREGATIONS, ( '"{}" is not an aggregation recognised by the Report Builder interface.'.format(ui_aggregation) ) if ui_aggregation in (UI_AGG_SUM, UI_AGG_AVERAGE): data_type = "decimal" else: data_type = None # use the default column_id = get_column_name(self._property.strip("/"), suffix=data_type) return make_form_question_indicator( self._question_source, column_id, data_type, root_doc=is_multiselect_chart_report )
def _get_indicator(self, ui_aggregation, is_multiselect_chart_report=False): """ Return the report config snippet for the data source indicator for this form question column option """ assert ui_aggregation in UI_AGGREGATIONS, ( '"{}" is not an aggregation recognised by the Report Builder interface.'.format(ui_aggregation) ) if ui_aggregation in (UI_AGG_SUM, UI_AGG_AVERAGE): data_type = "decimal" else: data_type = None # use the default column_id = get_column_name(self._property.strip("/"), suffix=data_type) return make_form_question_indicator( self._question_source, column_id, data_type, root_doc=is_multiselect_chart_report )