# --------------------------- # get_static_report_file_name # --------------------------- # returns a unique static report file name with max length of 32 characters subroutine(get_static_report_file_name(string report_name), ( if (length(report_name) > 27) then ( # cut the report name and add the node position as unique id node report; node reports_node = "profiles." . internal.profile_name . ".statistics.reports"; int count = 0; string report_number; foreach report reports_node ( if (node_name(report) eq report_name) then ( report_number = count; last; ); count++; ); report_name = substr(report_name, 0, 27 - length(report_number)) . report_number; ); string file_name = report_name . ".html"; file_name; ));