Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record - InfoPath Dev
in

InfoPath Dev

Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

Last post 01-07-2015 03:42 AM by AndreasEG. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-02-2015 03:00 PM

    Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

    Hi, basically I would like to build something like a simple MSProject timeline calculation in a Sharepoint repeating table with Infopath.

    Important: I need a solution in Infopath xpath and no VB/C# solution since code is blocked by the server.

    My table looks like this where only the first three columns are filled out manually and the fourth one (i.e. "CopiedDate") is calculated:

    CurrentRecord ; PlannedCompletionDate ; CopyDateFromThisRecord ; CopiedDate

    1 ; 12/08/2013 ;  ;

    2 ; 11/12/2013 ; 1 ; 12/08/2013

    3 ; 12/30/2013 ; 1 ; 12/08/2013

    4 ; 01/11/2014 ;  ;

    5 ; 12/13/2014 ; 3 ; 12/30/2013

    The idea is to fill the "CopiedDate" of each record with the "PlannedCompletionDate" from the record specified in "CopyDateFromThisRecord": For example the "CopiedDate" in record 3 would be populated with the "PlannedCompletionDate" from record 2.

    I tried this by setting the Default Value of the "CopiedDate" field to: ../preceding-sibling::my:group2[../my:CurrentRecord = ../my:CopyDateFromThisRecord]/my:PlannedCompletionDate

    Unfortunately all CopiedDate fields are empty. I also played around with "current()" but without any meanfulgful results

    Any idea what I am doing wrong with the filtering?

    Andreas

  • 01-02-2015 03:08 PM In reply to

    Re: Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

    If you'll attach your form under the Options tab I can give you a hand with this.

    Hilary Stoupa

  • 01-03-2015 04:24 AM In reply to

    Re: Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

    Hi Hilary, thanks. I just added the XML and XSN under the options tab of my original post above.

  • 01-05-2015 07:50 AM In reply to

    Re: Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

    That made it easy to help, thanks! Use this for your calculated value for CopiedDate:

    ../../my:group2[my:CurrentRecord = current()/../my:CopyDateFromThisRecord]/my:PlannedCompletionDate

    Hilary Stoupa

  • 01-07-2015 03:42 AM In reply to

    Re: Infopath Repeating Table for Sharepoint 2010 - Populate a field with an entry from a different variable in a different, dynamically determined record

    Hi Hilary - many thanks !!!! - it works fine - you helped me a lot.

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