Insert new item in repeating section removes data from the prior item - InfoPath Dev
in

InfoPath Dev

Insert new item in repeating section removes data from the prior item

Last post 01-05-2017 08:00 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-05-2017 07:17 AM

    • agtmak
    • Not Ranked
    • Joined on 12-19-2016
    • Posts 3

    Insert new item in repeating section removes data from the prior item

    Hello,

    I have an InfoPath form I'm working with that is used for an internal R&D process around product cuttings. The data model I have created in SharePoint is 3 lists: Cuttings, Samples, and Evaluations. So how it works is the person in R&D will create an item in the cuttings list, create samples linked to a cutting in the samples list, and employees will give their feedback in the evaluations list. The InfoPath form I have created is on the Evaluations list.

    On the form, an employee has to select a cutting (data source: cuttings list). Once a cutting is selected, employees have to select a sample #. The sample #s are filtered to the selected cutting (data source: samples list w/ selected cutting as a filter). Below the sample # dropdown, I have a repeating section which just pulls back the name of the selected sample #. Afterwards, there are some fields to evaluate the sample. All of these are in a repeating section as sometimes a cutting can have multiple samples we need to evaluate.

    Now here's my issue: when an employee evaluates multiple samples (insert new item), the sample name disappears from the prior item.

    Example:
    Cutting: Bacon
    Sample #: 123
    Sample Name: Thick cut (this is in its own repeating section, I used this to pull back the name from the sample #)
    Color: 3
    Texture: 3
    Saltiness: 3
    Overall Liking: 7

    *insert new item*
    The prior item will now say:
    Cutting: Bacon
    Sample #: 123
    Sample Name: (blank)

    If I select a sample # in the new item, it will change the sample name for all of the prior and current items.

    Any ideas?
  • 01-05-2017 07:45 AM In reply to

    Re: Insert new item in repeating section removes data from the prior item

    Oh - is the sample name in its own repeating section that is bound to a different data source? If so, that may explain the issue. Do you mind attaching a copy of your form under the "Options" tab & I can take a quick look at it?
    Hilary Stoupa

  • 01-05-2017 07:55 AM In reply to

    • agtmak
    • Not Ranked
    • Joined on 12-19-2016
    • Posts 3

    Re: Insert new item in repeating section removes data from the prior item

    I will send you the .xsn through a PM. Appreciate you looking at this!

    **edit**: Seems I can't send it through PM. I tried to attach it to this post, but it is greater than 500kb.
  • 01-05-2017 08:00 AM In reply to

    Re: Insert new item in repeating section removes data from the prior item

    Just emailed you via the forum - you can reply to my email w/ the form attached & I'll take a quick look later today. :)
    Hilary Stoupa

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