[ 
https://issues.apache.org/jira/browse/OFBIZ-6427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14564824#comment-14564824
 ] 

Christian Carlow edited comment on OFBIZ-6427 at 5/29/15 1:43 PM:
------------------------------------------------------------------

Here is an updated list of the group functions that seem worthy of implementing 
for form widget find fields: sum, avg, min, max, first, last, count, 
countDistinct

The group functions listed for each find field as table rows with a sequence 
dropdown cell to control the order in which the function values should appear 
and a text box to control the actual text that should be rendered.  The 
sequence dropdown will be set to blank by default which will prevent 
processing.  The text field will be set to a default value indicating the group 
function and the function value using FlexibleStringExpander such as 
{code}
"Avg ${funcValue}", "Min ${funcValue}".
{code}


was (Author: ofbizzer):
Here is an updated list of the group functions that seem worthy of implementing 
for form widget find fields: sum, avg, min, max, first, last, count, 
countDistinct

The group functions listed for each find field as table rows with a sequence 
dropdown cell to control the order in which the function values should appear 
and a text box to control the actual text that should be rendered.  The 
sequence dropdown will be set to blank by default which will prevent 
processing.  The text field will be set to a default value indicating the group 
function and the function value using FlexibleStringExpander such as "Avg 
${funcValue}", "Min ${funcValue}".

> 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)

Reply via email to