Varied Default Values in a repeating table control - InfoPath Dev
in

InfoPath Dev

Varied Default Values in a repeating table control

Last post 09-01-2013 02:48 PM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-27-2013 02:31 PM

    Varied Default Values in a repeating table control

    Hi all, I have created a repeating table in a form, with which I have made generate 7 rows automatically, using the default values function. I was able to set the value of the "Day Field" to a value statically by just typing into the field. However in the next column over I would like to increment using the adddays xpath function. When I go to generate the function though, all of the default values for that field equal the function, instead of individually like when I statically type a word in there (so for example, in case this isn't clear: row 1 I would like to have a default value of addDays(datefield, 1), row 2 of addDays(datefield, 2), etc). Is there some recourse here to achieve what I would like without custom code? Maybe some way to reference the row id of a repeating table or something (addDays(datefield, rowid)? Or am I left without an option? Any help/guidance/suggestions here would be greatly appreciated. Thank you in advance for your time.
    Filed under:
  • 08-28-2013 07:35 AM In reply to

    Re: Varied Default Values in a repeating table control

    I actually figured it out if anyone was interested. All you need to do is include the following for the default field and the values calculate correctly: addDays(insert field with date of start here, count(preceding-sibling::gpDate))
  • 09-01-2013 02:48 PM In reply to

    Re: Varied Default Values in a repeating table control

    Fantastic! Glad to hear you figured it out. Sorry we were delayed in responding.

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