J
JR
Hi all;
We are trying to customize the Status Report template that comes with Infopath to replace an existing report that we created some time ago that was built using Excel.
The Excel form contains three cost tables; capital cost, operating cost and total cost. Each table has a column for expense type (eg. hardware, software, consultant fees, etc.) and a cost value. The users can add any number of rows that they wish, however; they have been instructed that the capital cost and operating cost tables both contain a row for each expense type used. If the expense was only a capital cost (for example), they would still create the row in the operating cost table and just report $0. Then, the total cost table totals up all the costs and reports a single number.
However, in addition to converting this to an Infopath form; they would like the totals table to break down the totals of each type before returning a grand total.
eg.
Capital Costs
hardware $100
software $50
Operating Costs
hardware $75
software $0
Total Costs
hardware $175
software $50
grand total $225
I'm have no problems coming up with the grand total, but I haven't been able to get the cost break downs, because the rows in each table are dynamic. How can I determine the value in each row, in each table; combine them; and then dynamically create a cost breakdown row in the totals table?
We are trying to customize the Status Report template that comes with Infopath to replace an existing report that we created some time ago that was built using Excel.
The Excel form contains three cost tables; capital cost, operating cost and total cost. Each table has a column for expense type (eg. hardware, software, consultant fees, etc.) and a cost value. The users can add any number of rows that they wish, however; they have been instructed that the capital cost and operating cost tables both contain a row for each expense type used. If the expense was only a capital cost (for example), they would still create the row in the operating cost table and just report $0. Then, the total cost table totals up all the costs and reports a single number.
However, in addition to converting this to an Infopath form; they would like the totals table to break down the totals of each type before returning a grand total.
eg.
Capital Costs
hardware $100
software $50
Operating Costs
hardware $75
software $0
Total Costs
hardware $175
software $50
grand total $225
I'm have no problems coming up with the grand total, but I haven't been able to get the cost break downs, because the rows in each table are dynamic. How can I determine the value in each row, in each table; combine them; and then dynamically create a cost breakdown row in the totals table?