<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/119129.aspx</link><pubDate>Wed, 30 May 2018 18:56:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119129</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=119129</wfw:commentRss><description>&lt;p&gt;I found a solution to grabbing the data, based on what Hilary mentioned in her last post. It involves creating helper fields in the repeating table of the secondary data source.&lt;/p&gt;&lt;p&gt;In the repeating table of the secondary data source create duplicate fields for all of the columns of your data and call them M[FieldName] or whatever makes the most sense to you. These fields will be promoted as merged fields when you publish. The default value in these fields will be a concatenation of the duplicate field&amp;#39;s data, a delimiter, and the row reference.&lt;/p&gt;&lt;p&gt;Ex:&lt;br /&gt;I have a field that populates a combo box of product names from a list; &lt;u&gt;ProductName&lt;/u&gt;. I create a duplicate field for merged data, &lt;u&gt;MProductName&lt;/u&gt;, in the same repeating table. This field (&lt;u&gt;MProductName&lt;/u&gt;) is not displayed on the form.&lt;/p&gt;&lt;p&gt;The&amp;nbsp;default value&amp;nbsp;for &lt;u&gt;MProductName&lt;/u&gt; is as follows: concat(&amp;quot;|&amp;quot;, count(preceding-sibling::*), &amp;quot;|&amp;quot;, &lt;u&gt;ProductName&lt;/u&gt;, &amp;quot;||&amp;quot;, count(preceding-sibling::*), &amp;quot;||&amp;quot;). This will&amp;nbsp;result in the following value for &lt;u&gt;MProductName&lt;/u&gt;: |1|[&lt;u&gt;ProductName&lt;/u&gt;]||1||&amp;nbsp;|2|[&lt;u&gt;ProductName&lt;/u&gt;]||2||&amp;nbsp;|3|[&lt;u&gt;ProductName&lt;/u&gt;]||3||...&lt;/p&gt;&lt;p&gt;Now publish the secondary data source, promoting the repeating table fields M__ as &amp;quot;merged.&amp;quot; Now all the data is available for you to parse in your main InfoPath form, with unique delimiters surrounding each field&amp;#39;s data.&lt;/p&gt;&lt;p&gt;On your main&amp;nbsp;InfoPath form&amp;nbsp;you have a&amp;nbsp;repeating table in which you wish to populate the data from the secondary data source repeating table.&lt;/p&gt;&lt;p&gt;The default&amp;nbsp;values for these fields&amp;nbsp;should be:&amp;nbsp;&lt;/p&gt;&lt;p&gt;substring-after(substring-before(&lt;u&gt;ProductName[SecondaryDatasourceID = MainDatasourceID&lt;/u&gt;], concat(&amp;quot;||&amp;quot;, count(current()/../preceding-sibling::ProductInformation) + 1, &amp;quot;||&amp;quot;)), concat(&amp;quot;|&amp;quot;, count(current()/../preceding-sibling::ProductInformation) + 1, &amp;quot;|&amp;quot;))&lt;/p&gt;&lt;p&gt;What&amp;nbsp;this says&amp;nbsp;is: in the string for Product Name, from the specific form in the&amp;nbsp;Secondary data source,&amp;nbsp;grab everything before ||[current row number]|| and everything after |[current row number]|. That&amp;#39;s it.&amp;nbsp;As long as you have a unique identifier&amp;nbsp;between the datasources to&amp;nbsp;properly filter the data it will populate only the data from the corresponding repeating table element.&amp;nbsp;The nice thing about this is that&amp;nbsp;even if you don&amp;#39;t have the&amp;nbsp;correct number of rows prepopulated in&amp;nbsp;the main InfoPath form all&amp;nbsp;the user needs to do is&amp;nbsp;append rows to&amp;nbsp;populate any remaining data. &lt;/p&gt;&lt;p&gt;&amp;nbsp;So it&amp;nbsp;doesn&amp;#39;t look as messy&amp;nbsp;or confusing you can always create an additional&amp;nbsp;helper column in each&amp;nbsp;repeating table called &amp;quot;counter.&amp;quot; This field would&amp;nbsp;hold :&amp;nbsp;&amp;nbsp;count(current()/../preceding-sibling::ProductInformation) + 1.&lt;/p&gt;&lt;p&gt;&lt;u&gt;counter&lt;/u&gt;&amp;nbsp;can take the place of &amp;quot;count(current()/../preceding-sibling::ProductInformation) + 1&amp;quot; in your subsequent fields.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;There is an alternative method&amp;nbsp;using&amp;nbsp;the &amp;quot;double eval()&amp;quot; trick&amp;nbsp;to concatenate the&amp;nbsp;data into a field outside of the repeating&amp;nbsp;table, but I&amp;nbsp;could not get that to work.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118932.aspx</link><pubDate>Thu, 03 May 2018 20:37:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118932</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118932</wfw:commentRss><description>&lt;p&gt;I was afraid of that. It is frustrating since I know the data is there, but I just don&amp;#39;t know how to get to it. Coding would make it so simple, but I am not allowed to&amp;nbsp;use custom code on the forms. I will play around with merging the promoted data and will report back if I find anything useful.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for&amp;nbsp;your time.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118931.aspx</link><pubDate>Thu, 03 May 2018 20:03:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118931</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118931</wfw:commentRss><description>I understand now. So the issue you will have is that there is no easy (non-code) way to get that repeating data from one form to another. If you promote the repeating data as merged, if every field in each row is filled out, you may be able to use something similar to the default data approach outlined in this thread - but I&amp;#39;m not confident in that. My guess is that if the promoted column is merged your secondary data connection will have a repeating &amp;quot;value&amp;quot; for each column, but I&amp;#39;d have to test that to be certain.</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118930.aspx</link><pubDate>Thu, 03 May 2018 18:57:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118930</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118930</wfw:commentRss><description>&lt;p&gt;My original&amp;nbsp;form is the CCR document. This gets filled out by the user and then submitted to a SharePoint form library. Depending on what the needs are, different documents may be created using the data&amp;nbsp;from the CCR form. Credit memo is one, RGA another, and CAPA is the third. I am attempting to use the ID field from the CCR form as a way to tie all the&amp;nbsp;associated documents together.&lt;/p&gt;&lt;p&gt;Let&amp;#39;s say that I am creating&amp;nbsp;CCR&amp;nbsp;1950. I then create a credit memo from that form using a workflow and populate the field CMNumber to be 1950 (using the workflow). Then&amp;nbsp;I have the&amp;nbsp;Credit Memo&amp;nbsp;form fetch the&amp;nbsp;product information data&amp;nbsp;from form CCR 1950 by setting default&amp;nbsp;values and&amp;nbsp;using the ID&amp;nbsp;as a filter. I am not sure how else would I have it populate the repeating table data from a particular form. Am I approaching this wrong?&lt;/p&gt;&lt;p&gt;I&amp;nbsp;am not familiar with merging fields, from the little bit I read today&amp;nbsp;it appears as though what I have actually done in my CCR form is to only promote the first row of data from the Product Information repeating table; is that correct? I will continue to read up on&amp;nbsp;promoting merged fields today.&lt;/p&gt;&lt;p&gt;Also I do many squirrely things&amp;nbsp;on that form,&amp;nbsp;as I am not that familiar with InfoPath and working with VBA in the past&amp;nbsp;has led me to believe that&amp;nbsp;when Microsoft auto populates something it&amp;nbsp;is&amp;nbsp;generally done in a convoluted manner. As such, when I create repeating tables I notice that&amp;nbsp;two&amp;nbsp;nested groups are created, the inner group being the repeating table. I generally un-nest the groups and delete the empty group. I&amp;#39;m guessing that&amp;nbsp;maybe&amp;nbsp;I should not be doing that, but I don&amp;#39;t know what function the &amp;quot;outer&amp;quot; group serves.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118922.aspx</link><pubDate>Thu, 03 May 2018 15:03:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118922</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118922</wfw:commentRss><description>I&amp;#39;m confused by your formula. In the Product Name field in the main data source of your AP_Credit Memo template, you are comparing the ID for the product to a non-repeating field in your main data source, that is, ID from the secondary data source should equal the CRMNumber in the form. That confuses me, since every single ID in your product list will be unique. Can you explain why you are doing this, and help me understand? In terms of promoting repeating data, you can promote as &amp;quot;merged&amp;quot; which will then give you a semi-colon delimited list in the column.</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118919.aspx</link><pubDate>Thu, 03 May 2018 14:33:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118919</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118919.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118919</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This is the form template I am using as my secondary data source. Each belongs to its own SharePoint Library, if that makes a difference.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118918.aspx</link><pubDate>Thu, 03 May 2018 14:29:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118918</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118918</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary,&lt;/p&gt;&lt;p&gt;Thank you for your quick response to my post. Changing to IE did the trick. I seem to only be able to&amp;nbsp;attach one file&amp;nbsp;to a post. The one attached to this post is my main data source. I will attach the secondary&amp;nbsp;data source in&amp;nbsp;my next post.&lt;/p&gt;&lt;p&gt;To answer your question regarding the XPath, this is the XPath of the promoted group: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Product_x0020_Information&lt;/p&gt;&lt;p&gt;However,&amp;nbsp;that is my issue. These are two separate forms; each a template for its own form library. When publishing the form I am using as a secondary data source I had tried to promote the repeating table group, but it only promotes it as a count of the group items if I add it as a column, and will not promote it at all if I try to&amp;nbsp;use it as a web part connection&amp;nbsp; (I am fairly new to SharePoint and InfoPath, so I still don&amp;#39;t fully understand much of it yet).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118912.aspx</link><pubDate>Wed, 02 May 2018 23:16:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118912</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118912</wfw:commentRss><description>What is the XPath to your repeating group? You can right click on it in the fields pane and select copy XPath to find it. You can also try using Internet Explorer to see if you are able to attach a file under the Options tab &amp;amp; I can give you a hand - sometimes the forum works better w/ IE.</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/118909.aspx</link><pubDate>Wed, 02 May 2018 21:55:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:118909</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/118909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=118909</wfw:commentRss><description>Hi Hilary,

I am having a similar issue as the OP. I am attempting to pull field data from a repeating table in a secondary data source to populate a repeating table in my main data source. My secondary data source is a SharePoint InfoPath form library. I am not able to use code as my site does not allow it. I am trying to use default data and Xpath to set default values and, thanks to the help I received reading this post, I feel that I am very close to a solution but I am not there.
&lt;br /&gt;&lt;br /&gt;
The XPath I am using is: 
&lt;br /&gt;&lt;br /&gt;
xdXDocument:GetDOM(&amp;quot;Customer Complaint Reports&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Product[../d:ID = xdXDocument:get-DOM()/my:myFields/my:CMNumber][count(current()/../preceding-sibling::my:ProductInformation) + 1]
&lt;br /&gt;&lt;br /&gt;
This will successfully pull the first item, but I cannot get the remainder to populate (Even if I set the number to &amp;quot;2&amp;quot;, &amp;quot;3&amp;quot;, etc.). Can you tell me what I am doing wrong?
&lt;br /&gt;&lt;br /&gt;
I attempted to attach my forms for reference, but I get the error that the upload webpage may be down or may have moved to a new address.
&lt;br /&gt;&lt;br /&gt;
Any help would be greatly appreciated.
&lt;br /&gt;&lt;br /&gt;
Thanks,
&lt;br /&gt;&lt;br /&gt;
Daniel</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/115721.aspx</link><pubDate>Fri, 03 Mar 2017 16:06:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115721</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115721</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The general approach should be the same, regardless of the names of your fields. Attach your form file under the Options tab if you need a hand. :)&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/115714.aspx</link><pubDate>Thu, 02 Mar 2017 22:42:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115714</guid><dc:creator>ganesh.thiagarajan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=115714</wfw:commentRss><description>Hi Hillary,

Thanks for the innovative solution, I had a run through the Data source that you have used, I have a slightly different source and looking to see how I can use your solution.

Your Sample Data Source:

	
		A
		A-1
		A-2
		A-3
	
	
		B
		B-1
		B-2
	
	
		C
		C-1
		C-2
		C-3
		C-4
	


My Sample Data Source:

	
		1.20
		 GENERAL INFORMATION
		Port of the last Port State Control inspection (this includes if vessel was detained, or if significant deficiencies were listed)
		 10
	
	
		1.23 
		GENERAL INFORMATION 
		 Date the last special survey was completed
		10 
	
	
		1.24 
		 GENERAL INFORMATION
		 Date of departure from the last class-credited drydock/repair period
		 3
	


Question: Is there a way to Populate each &amp;#39;Question&amp;#39; tag as a separate row with QNo,Category,QText,PotentialRisk as columns to that row?</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/101689.aspx</link><pubDate>Thu, 12 Mar 2015 15:01:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101689</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101689</wfw:commentRss><description>&lt;p&gt;Oh - I see - I hadn&amp;#39;t realized your secondary data had repeating fields. If you want the same structure in your main data source, I think you&amp;#39;ll need to make field29 (for example) in your main DS repeating, then add instances in the default data and set default values again.&lt;/p&gt;</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/101682.aspx</link><pubDate>Thu, 12 Mar 2015 08:57:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101682</guid><dc:creator>lindaopiyo55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101682</wfw:commentRss><description>See preview of form attached.</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/101681.aspx</link><pubDate>Thu, 12 Mar 2015 08:53:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101681</guid><dc:creator>lindaopiyo55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101681</wfw:commentRss><description>Hi Hilary,

I&amp;#39;ve attached the form for your review. Please open it in design view to access.
It seems the issue is with how the data is being copied to the main data source (group 29). Even though I have set 3 of these groups with the same default value, it copies all of it into the first line. Please see the preview attached in the next post.

I would really appreciate your help.</description></item><item><title>Re: Repeating Table from Secondary Data Source with additional fields from Main Data Source</title><link>https://www.infopathdev.com:443/forums/thread/101658.aspx</link><pubDate>Wed, 11 Mar 2015 09:37:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101658</guid><dc:creator>lindaopiyo55</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101658.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=101658</wfw:commentRss><description>My form picks data from a sharepoint list, &amp;amp; you may be unable to preview this data due to restricted access to the SHP. How else can I replicate a secondary data source without connecting to a website? I wanted to create an xml doc for the data connection but I don&amp;#39;t have xml notepad.
Even sharing the form is proving a challenge - but I&amp;#39;m trying to build my infopath skills.
Maybe you can share a quick tutorial on how one executes option 3 so I can see if I missed a step. 
Or could it be because your form picks data from an xml file while mine is from a SHP list?</description></item></channel></rss>