Group sort / print
Hello
I have a Group in my report that splits classes (A.B,C), then prints a list per class (All A's, then B's, then C's). Each class contains several names and sorts on a time field (shortest 1st, longest last). The issue is with names that do not contain a time (null / empty field) - when printing, these names are grouped together away from the rest. For example, I have all the A groups together with names and their times, but then another A group is printed containing names with no times. I want all names (with times or without) to show as a single group result.
Can anyone assist?
Thanks
I have a Group in my report that splits classes (A.B,C), then prints a list per class (All A's, then B's, then C's). Each class contains several names and sorts on a time field (shortest 1st, longest last). The issue is with names that do not contain a time (null / empty field) - when printing, these names are grouped together away from the rest. For example, I have all the A groups together with names and their times, but then another A group is printed containing names with no times. I want all names (with times or without) to show as a single group result.
Can anyone assist?
Thanks
This discussion has been closed.
Comments
Hello!
To ensure that records without a time stamp always appear at the end of their group and do not split the class group:
In GroupHeaderBand.Condition, leave only the class ([Table.Class]) so that all records of that class are placed in a single group.
In DataBand -> Sort, set two sort keys (both Ascending):
1st key (expression): IsNull(“Table.Time”) ? 1 : 0 (or String.IsNullOrEmpty(Convert.ToString([Table.Time])) ? 1 : 0)
2nd key: [Table.Time]
This will first display all rows with a time (from fastest to slowest), while rows without a time will appear strictly at the end of the same class