# # # # get_main_report_field_name() # # # subroutine(get_main_report_field_name( node base_query_header), ( debug_message("\n#### get_main_report_field_name() \n"); # Returns the main_report_field_name, which is the first non-aggregating field in the base_query_header. string main_report_field_name; node column; foreach column base_query_header ( if (!@column{"is_aggregating_field"}) then ( main_report_field_name = @column{"report_field_name"}; last; ); ); debug_message("#### main_report_field_name: " . main_report_field_name . "\n"); # Return main_report_field_name; ));