Concat Repeating SQL Data - InfoPath Dev
in

InfoPath Dev

Concat Repeating SQL Data

Last post 03-12-2012 06:21 AM by dannylam4. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-07-2012 10:44 AM

    Concat Repeating SQL Data

    Hey there, I feel like this question has been asked and answered already, but I couldn't really find anything. I'm looking to concat two dataFields pulled in from SQL into a single text field. It's simply grabbing a Site and their Comments all into one field, but the two fields are repeating data. When I try and do a standard concat(../dfs:dataFields/d:program/@Site, " - ", ../dfs:dataFields/d:program/@comments) The data won't repeat the data even if placed in a repeating section. I'm expecting something like: PA - These are my comments NY - Here are my comments But I'm just getting PA - These are my comments PA - These are my comments I saw some topics using eval with concat, but I wasn't sure what the purpose of that was. Thanks!
    Filed under: ,
  • 03-09-2012 09:41 AM In reply to

    Re: Concat Repeating SQL Data

    You'll need to create a repeating control (table or section) that is bound to the secondary data connection.  Then inside the repeating control you can create a calculated value control whose value is the concat of those 2 fields that you mentioned.  That should allow the data to repeat rather than only give you the first row.

    Eval only works for when you want to concat repeating data into a single line of text, which I don't believe is what you want.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 03-12-2012 06:21 AM In reply to

    Re: Concat Repeating SQL Data

    Oooo, that makes sense. Awesome, everything worked out. Thanks!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.