Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
    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
        )
Ejemplo n.º 4
0
    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
        )