Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

I am new to es3 and trying to script how to group by several categories.

$
0
0

I would need to group by several categories, subtotal within the main category and then total on tha main category on a repeatable form. The data is from an underlying db. Here is my scenario:

 

MAIN GROUP: OFFICE

SECOND GROUP (WITHIN MAIN): TYPE

 

THIRD GROUP (WITHIN SECOND/MAIN)

BASED ON SECOND GROUP WITH 4 TYPES OF POSSIBLE COMBINATIONS:

1. NO $ in AMT_TRES

2. $ in AMT_TRES

3. $ in AMT_ACCT

4. $ in both AMT_TRES and AMT_ACCT

 

IN_TRES: Column name to capture third group indentifier 'X'

IN_ACCT: Column name to capture thrid group indentifier 'X'

 

#COUNT: per Type and THIRD GROUP

SUBTOTAL OF TYPE

TOTAL of OFFICE (MAIN GROUP)

 

***FORM EXAMPLE***:

 

                                      IN_TRES        IN_ACCT      #COUNT        AMT_TRES       AMT_ACCT

OFFICE: DITCO

   (TYPE)   UMD                                                            167            $           0.00       $          0.00

                 UMD                  X                                         800           $     18232.00      $          0.00

                 UMD                                        X                     12            $           0.00       $        12.53

                 UMD                  X                    X                  432            $      9672.25      $     1269.00

SUBTOTAL UMD                                                        1411           $     27904.25      $     1281.53

 

                RAP                   X                                           17           $    42596.00       $           0.00

SUBTOTAL RAP                                                             17          $     42596.00      $            0.00

 

               OTHER                                    X                    411          $             0.00       $      4212.50

              OTHER                X                   X                    630          $        4679.75      $      7569.00

SUBTOTAL OTHER                                                    1041          $       4679.75       $    11781.50        

 

                 INTF                                      X                       72          $              0.00      $       5812.53

SUBTOTAL INTF                                                             72          $             0.00       $       5812.53     

 

TOTAL FOR: DITCO                                                    2541         $      75180.00      $      18875.56         



 

Thanks



 




Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>