Iterating Repeating Table Fields coming from Secondary Data Source - InfoPath Dev
in

InfoPath Dev

Iterating Repeating Table Fields coming from Secondary Data Source

Last post 02-25-2014 11:27 AM by infopathdude. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-19-2014 07:19 AM

    Iterating Repeating Table Fields coming from Secondary Data Source

    Hello there, Have any of you attempted to iterate thru a repeating table and capture column values in a text field using concat to parse it later? I have done this umpteen times with Main DataSource and thought would be the same with Secondary DataSource I used below to make this happen eval(eval(RepeatingGroup, ‘concat(my:Field, “;”)’), “..”) Could there be anything different while using a secondary data source? I have a webservice which returns list of Products and Quantities which need to be updated. Issue I am having when I use the above formula is i just get the same value for every row in the repeating table. Just captures the first row value and repeats for the number of rows. not sure what I am doing wrong...any ideas? Ray
  • 02-19-2014 07:57 AM In reply to

    Re: Iterating Repeating Table Fields coming from Secondary Data Source

     Could you attach a screenshot of the data source you are trying to work with, and the actual full formula you are using?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 02-19-2014 03:26 PM In reply to

    Re: Iterating Repeating Table Fields coming from Secondary Data Source

    Attached is the screenshot of secondary data source and the formula below. Appreciate you looking into it I am looping thru and trying to get AuthorityDesc||SupValue from every row eval(eval(SupUserDOAData, 'concat(xdXDocument:GetDOM("GetAllAuthoritiesByUserAndSupervisor")/dfs:myFields/dfs:dataFields/tns:GetAllAuthoritiesByUserAndSupervisorResponse/tns:GetAllAuthoritiesByUserAndSupervisorResult/tns:SupUserGroupData/tns:Subgroups/tns:SupUserSubgroupData/tns:Authorities/tns:SupUserDOAData/tns:AuthorityDesc, "||", xdXDocument:GetDOM("GetAllAuthoritiesByUserAndSupervisor")/dfs:myFields/dfs:dataFields/tns:GetAllAuthoritiesByUserAndSupervisorResponse/tns:GetAllAuthoritiesByUserAndSupervisorResult/tns:SupUserGroupData/tns:Subgroups/tns:SupUserSubgroupData/tns:Authorities/tns:SupUserDOAData/tns:SupValue)'), "..")
  • 02-21-2014 05:32 AM In reply to

    Re: Iterating Repeating Table Fields coming from Secondary Data Source

    Jimmy do you want anymore info to look into this?..Please advise
  • 02-25-2014 07:32 AM In reply to

    Re: Iterating Repeating Table Fields coming from Secondary Data Source

    In your concat, you are using the full XPath instead of the relative XPath. Instead of:

    xdXDocument:GetDOM("GetAllAuthoritiesByUserAndSupervisor")/dfs:myFields/dfs:dataFields/tns:GetAllAuthoritiesByUserAndSupervisorResponse/tns:GetAllAuthoritiesByUserAndSupervisorResult/tns:SupUserGroupData/tns:Subgroups/tns:SupUserSubgroupData/tns:Authorities/tns:SupUserDOAData/tns:SupValue

    can you try just tns:SupValue?

    Hilary Stoupa

  • 02-25-2014 11:27 AM In reply to

    Re: Iterating Repeating Table Fields coming from Secondary Data Source

    Thank you so much Hilary ...thanks for pointing this out... You are awesome
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.