Guys, I have been using infopath for a while and I always find challenging implementing basic functions...I rem I had to perform a division on couple of fields and had some tough time...I think it was just me once i figured it out...:(
Well today I am struck with a new issue which i thought would be no issue..Trying to write an expense report form ...Have a repeating table to enter expense details
Now after all the expenses are entered i need to group them by expense categories and show the sub total for each category in a separate section
For Eg-Expense Detail Repeating Table
Rental-$10
Food-15$
Hotel-$50
Food-$20
Misc-$30
Hotel-$50
Rental-$10
I want the summary section to go thru the repeating table, pick these expense categories and summarize them as
Rental-$20
Food-$35
Hotel-$100
Misc-$30
How do I accomplish this, trying to do this in browser enabled forms
I have read about preceeding-sibling,following-sibling,eval but don't seem to figure out where to start...
Preceeding sibling will only tell me the last expense category, seems like i need to be able to iterate the repeating table to get the groupings...
Also not sure how does the preceeding functions impact when you try to insert an entry in the middle of the table ..
Please help