Show a value of the last row of a repeating table in a calculated field - InfoPath Dev
in

InfoPath Dev

Show a value of the last row of a repeating table in a calculated field

Last post 03-18-2010 12:03 AM by cpalm. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-17-2010 05:05 PM

    • cpalm
    • Not Ranked
    • Joined on 11-04-2009
    • Posts 4

    Show a value of the last row of a repeating table in a calculated field

    Hi,

    I thought this was simple but for me it turned out to be not.
    I have a repeating table and one of the fields is a date. I my example the first row represents the starting date of a range and the last row the ending date.

    Now getting the first date is quite simple but I didn't manage to get the last one. I tried everything in xpath with e.g. ../field[last] and so on but I could never get past the first row.

    Does anybody know the answer how to do this?

    Thanks!

     Christian

  • 03-17-2010 06:34 PM In reply to

    Re: Show a value of the last row of a repeating table in a calculated field

    Did you try this?:

    /path/to/repeatingField[last()]/dateField

    The last() selector should be on the repeating node, not the date field itself.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-18-2010 12:03 AM In reply to

    • cpalm
    • Not Ranked
    • Joined on 11-04-2009
    • Posts 4

    Re: Show a value of the last row of a repeating table in a calculated field

    Thank you!!!

    That works! My mistake. Now it looks so simple...

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