I am working on an InfoPath 2007 form with a repeating table pulled from SQL. What I need to do is send an e-mail for each line that comes back from the query. I copied the repeating table lower in the form into a repeating section (where I will put my e-mail information), but I am clueless how to filter the repeating table/section to select the Nth record in the repeating table only (based on the position). I was able to do something similar in another form where I had the user input the number of items they need, and based on position() being less than that number, it created additional repeating sections.
Here is what is working in the other form, I assume if I can figure out how to count the records in the repeating table, this will be simple:
Conditional formating on repeating section: If position() > /my:myFields/my:field65, hide this section. Field65 is an integer typed in by the user.