Setting the value of a field in repeating table after Insert - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Setting the value of a field in repeating table after Insert

Last post 08-07-2017 07:37 AM by ShaneHarvy. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-21-2017 06:09 AM

    Setting the value of a field in repeating table after Insert

    I have created a rule that triggers Insert to create a new instance of a repeating table. After this function, I am trying to use GenerateGuid to create a GUID and then I want to put that guid in a field in the row I just created. I am assuming I should use SetValue, but I am having trouble getting the syntax to find the node I just created to set the value to. Any help would be appreciated!
  • 07-22-2017 05:29 AM In reply to

    Re: Setting the value of a field in repeating table after Insert

     Hi - are you inserting at the end? If so, just use last(). So the XPath for your set value would be like: my:myFields/my:group/my:repeatinggroup[last()]/my:field

    Hilary Stoupa

  • 08-07-2017 07:37 AM In reply to

    Re: Setting the value of a field in repeating table after Insert

    That did it! Thank you for the help, Hilary!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.