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

How to group dynamic row table by column and calculate subtotal for each group?

$
0
0

Hello,

 

In Adobe livecycle - How can we group dynamic row table by column and calculate subtotal for each group?

Hoping someone here can direct me right direction.

 

I've a source a XML data source: screenshot below, which is linked in the livecycle form.

 

datasource.jpg

I can display the data in following format based on the data source below: via data binding the table row to $.CustomerInvoice.Item[*]

    

Line#ItemDescriptionQuantityCostChargeSummaryType
1Office License15000Office
2Office License211000Office
3Parking1500Parking
4Boardroom2100RoomHire
5Fine120Parking
6Office211000Office
7Room11200RoomHire

 

But I want to group the table by column, in this example by ChargeSummaryType, and display in the following format:

 

Line#

ChargeSummaryType

 

Office

Qty

Cost$

1

 

Office License

 

1

5000

2

 

Office License2

 

1

1000

6

 

Office2

 

1

1000

Subtotal

 

 

 

 

7000

 

ChargeSummaryType

 

Parking

 

 

3

 

Parking

 

1

500

5

 

Fine

 

1

20

Subtotal

 

 

 

 

  520

 

ChargeSummaryType

 

RoomHire

 

 

4

 

Boardroom

 

2

100

7

 

Room1

 

1

200

Subtotal

 

 

 

 

  300

 

In this forum, I did find similar question asked but no solution shared. Wonder if this is even possible in adobe livecycle, in other tools like sql and crystalreport its easy as built in function is available.

Would appreciate if anyone here can share their expertise.

 

Thanks,

Sujit Gurung


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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