[ https://issues.apache.org/jira/browse/OFBIZ-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14563278#comment-14563278 ]
Christian Carlow commented on OFBIZ-6427: ----------------------------------------- Group row styles is another part of this that will need to be resolved. Default group row styles should probably be implemented based on the group level (maybe grayscale with highest group darkest and gradually get lighter) but this method would only realistically 3 groups deep given that the shades of gray have to be sufficiently far apart to distinguish from one another. Fortunately 3 groups is typically the max that will need but there should probably be style override options that can be chosen in case the default coloring is insufficient. This could be provided as a dropdown next to the groupBy check box that will appear next to fields like ignoreCase. > Implement FindService record grouping/summarization functionality > ----------------------------------------------------------------- > > Key: OFBIZ-6427 > URL: https://issues.apache.org/jira/browse/OFBIZ-6427 > Project: OFBiz > Issue Type: Improvement > Components: framework > Affects Versions: Trunk > Reporter: Christian Carlow > > Just as sortSeq and sortDir will be added to find fields like ignoreCase is > available, groupBy check box would also enhance user query capabilities. > FindService would have to be extended to process the list and create > group/summary records. > For example, if a grid/form lists customer orders and the user wants to > determine the total quantity and price of products ordered between a date > range, then check marking the groupBy for productId would insert a grouping > record before the details containing totals. > This issue is primarily meant to handle reports for which pagination isn't > used because all records are displayed. For these reports queries, group > totals can simply be calculated by looping each detail record. But if > pagination is used, the method of calculating totals for grouping records > becomes more complicated because if detail records exist outside of the > current page but are part of a group being summarized then they will be > excluded from the group total unless implemented some other way. -- This message was sent by Atlassian JIRA (v6.3.4#6332)