How do I access repeating table's current row

L

Lisa

I need to calculate a field on each row of a repeating
table in the "OnChange" event but have been unable to
figure out what property gives me the current row to use
as the index. I have the code that loops through the
entire collection and recalculates each row everytime one
is changed but this takes too long and is recalculating
unchanged rows unnecessarily. Does anyone have any
suggestions?
Thanks.
 
L

Lisa.

Thank you very much. I will look at these.
-----Original Message-----
I've created some example forms that may be the answer to
what you are trying to do. Please check out the
InfoPathDev Examples I posted:
* Populating Table Row After Selection (Code)
* Populating Table Row After Selection (Rules)

They are available at http://www.InfoPathDev.com/examples/

Also checkout the InfoPathDev Dev Nugget on the subject
titled, "Identifying the Current Table Row", and the
InfoPathDev Blog entry for 2004-07-06 titled, "Using Rules
to Update Fields in a Table Row".
--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



"Lisa" <[email protected]> wrote in
message news:[email protected]...
I need to calculate a field on each row of a repeating
table in the "OnChange" event but have been unable to
figure out what property gives me the current row to use
as the index. I have the code that loops through the
entire collection and recalculates each row everytime one
is changed but this takes too long and is recalculating
unchanged rows unnecessarily. Does anyone have any
suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top