I should haven noticed when I first read your answer, but it looks like an InfoPath 2010 answer, not a InfoPath 2007 answer. There is no ribbon for me to use.
When I go to Default Values, I don't have any options that give me a certain number of rows. I'm going to go into more detail as to what I want.
I want a table with X number of rows (say 50) of data. The table should also have a header and a footer row. I would like the table to have 8 visible columns. The first column will be the Fiscal Year, which will start with FY 2012/13 in the first data row, and then increment by one (FY 2013/14, FY 2014/15, etc.) until I reach the end of the table. The second through seventh column will be input columns for currency formatted integers. The eighth column will be a calculated currency column which is the sum of the six data columns. The footer will say Total in the first column. The rest of the columns will be the total of all the rows above it.
I suspect that I'll also need two hidden columns, with the beginning and ending dates for each Fiscal Year. I want to hide the rows that are outside the Project Start and End dates (determined earlier), which means that I'll be setting up a conditional for each row based upon the beginning and ending dates.
The worst possible way that I can think of to do this is to use just a normal format table, and have each row (other than the header and footer) defined as an optional section. This would require that I define (for a 50 year grid) 350 separate data fields, plus an additional seven total fields. (Given the limitations of functions in InfoPath 2007, each of the footer total fields will need to have something like Construction01+Construction02+Construction03+...+Contruction50 entered into their formula box. This is doable, but seems like a lot of extra work.
I'd like to use a repeating table, because I only need to define seven columns once (as opposed to seperately for each row), and InfoPath functions should allow for me to total the entire column simply. Theoretically, if I had hidden columns with the start and end dates for each fiscal year, I could also set up a simple conditional formatting to hide/display the applicable rows.
To make it even easier (if it's doable), I've also created separately a SharePoint list with every fiscal year I could possibly want, and the Start and End Date of each year. If I could, non-programmatically and through a data connection, read the list and create the table, life would be great. But I can't figure out how to do that, either. When I attempt to read the list, I only get the first entry rather than a separate row for each item on the list.
I'm stuck, and don't want to hand define 357 fields, and type in 50 simple formulas and 7 real nasty ones. (Not to mention setting up 50 separate sections with conditional formatting.)