Repeating calculations - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Repeating calculations

Last post 02-17-2005 06:30 AM by GaryR. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-14-2005 12:05 AM

    • GaryR
    • Not Ranked
    • Joined on 01-11-2005
    • Australia
    • Posts 5

    Repeating calculations

    Hi

    I have a repeating table - StartTime, EndTime, Hours.
    The EndTime has OnAfterChange with VB.Net code to calculate the time. Being new to .Net I was most happy to get this working eventually.

    However - when adding a new row in the repeating table the calculation doesn't occur. Something to do with not being the first element I presume.

    Any ideas how I can get this to work.

    Thanks

    Gary Roberts
  • 02-15-2005 07:40 AM In reply to

    First, you'll probably want to add an OnAfterChange event handler to the StartTime as well. Why? Well what happens if someone enters a start time, and then an end time, and then later changes the start time? You calculation will not be updated.

    Okay... the one question I have for you is whether you are using relative paths in your calculation (i.e. "../StartTime") or absolute paths (i.e. "/my:myFields/my:Table/my:Row/my:StartTime").

    The former should work for each row, the latter should only ever get the first row.

    Greg Collins [InfoPath MVP]
  • 02-17-2005 06:30 AM In reply to

    • GaryR
    • Not Ranked
    • Joined on 01-11-2005
    • Australia
    • Posts 5
    Many thanks for the suggestions. I was using absolute references. Will let you know how it goes.

    Cheers

    Gary Roberts
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.