<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51868.aspx</link><pubDate>Wed, 17 Feb 2010 17:59:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51868</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51868.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51868</wfw:commentRss><description>&lt;p&gt;Hi, David:&lt;/p&gt;
&lt;p&gt;You have &lt;a href="http://www.infopathdev.com/forums/p/14462/51476.aspx#51476"&gt;another&lt;/a&gt; post on your web service, about rewriting it so it doesn&amp;#39;t return a choice group. Did that correct this issue for you so that you could use the CopyTable command in qRules?&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51320.aspx</link><pubDate>Tue, 02 Feb 2010 19:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51320</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51320</wfw:commentRss><description>&lt;p&gt;So is there any way to copy the contents of a returned Dataset from a secondary connection, to Main, other than copying one field at a time?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51204.aspx</link><pubDate>Sat, 30 Jan 2010 18:23:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51204</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51204</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;I fixed that problem but get the same result; An error has occurred executing the rule. The table row of the source and destination must contain the same number of elements and attributes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I noticed that in the secondary datasource, that LU_EducationLevel does not appear as repeating, even though there are multiple rows of them.&amp;nbsp; It&amp;#39;s probably becasue Choice appears as repeating, but does QRules know that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if there&amp;#39;s something else I can try, or if you need to see something else in my test project.&amp;nbsp; I&amp;#39;d be glad to post any screenshots that might help.&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51189.aspx</link><pubDate>Sat, 30 Jan 2010 04:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51189</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51189</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello and thank you for using qRules.&lt;/p&gt;&lt;p&gt;&amp;nbsp;(Choice) is not a node here, but an indicator in the taskpane to show that there should be 0 or 1 LU_Educational nodes underneath the NewDataSet node.&amp;nbsp; That could have something to do with the trouble you&amp;#39;re having but let&amp;#39;s try a few more things to try to make this work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;One issue with your command is that the &lt;b&gt;/rowdest&lt;/b&gt; parameter needs to indicate a repeating node (I think Ernesto slightly misunderstood this point).&amp;nbsp; Could you try changing your data source to make my:Group4 non-repeating and change my:LU_EducationLevel to be repeating, and then try the command again in its current format?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51164.aspx</link><pubDate>Fri, 29 Jan 2010 17:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51164</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51164</wfw:commentRss><description>&lt;p&gt;Ernesto,&lt;/p&gt;
&lt;p&gt;I appreciate you helping with this. I&amp;#39;d really like to get it working. What you suggested doesn&amp;#39;t work either.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I think the problem has something to do with the (Choice) node, which doesn&amp;#39;t get mentioned at all in my QRules command.&amp;nbsp; I don&amp;#39;t completely understand Choices and noticed that you can&amp;#39;t Copy the XPath for that node.&amp;nbsp; Here&amp;#39;s my command.&amp;nbsp; Shouldn&amp;#39;t Choice be in there someplace?&amp;nbsp; Do I include the parenthesis?&lt;/p&gt;
&lt;p&gt;CopyTable /tablesrc=/dfs:myFields/dfs:dataFields/ns1:GetRecordsResponse/ns1:GetRecordsResult/NewDataSet&amp;nbsp; &lt;/p&gt;
&lt;p&gt;/rowsrc=LU_EducationLevel /dsnamesrc=GetRecords &lt;/p&gt;
&lt;p&gt;/tabledest=/my:myFields/my:Group4 /rowdest=my:LU_EducationLevel&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the XPath from LU_EducationLevel under the GetRecords secondary datasource. Is the problem that this is not a table since it seems to skip right over the Choice node?&lt;/p&gt;
&lt;p&gt;/dfs:myFields/dfs:dataFields/ns1:GetRecordsResponse/ns1:GetRecordsResult/NewDataSet/LU_EducationLevel&lt;/p&gt;
&lt;p&gt;My new datasources are shown&amp;nbsp;below.&amp;nbsp; I still get an &amp;quot;elements or attributes&amp;quot; mismatch.&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51158.aspx</link><pubDate>Fri, 29 Jan 2010 17:04:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51158</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51158.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51158</wfw:commentRss><description>&lt;p&gt;Hi Dave,&lt;/p&gt;&lt;p&gt;The problem is in the schema: there is still a mismatch. &lt;/p&gt;&lt;p&gt;In the source you have (Choice) as the repeating node, with LU_EducationLevel as a subgroup. In the destination you have LU_EducationLevel as the repeating node.&lt;/p&gt;&lt;p&gt;You&amp;#39;ll want to modify the destination to have a repeating group, with a group under it, then your three nodes. That should allow CopyTable to work. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51100.aspx</link><pubDate>Thu, 28 Jan 2010 16:13:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51100</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51100</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks. Replace worked for the example on Main.&amp;nbsp; But I want to go from a&amp;nbsp;secondary source to Main.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The attached photo shows my datasources.&amp;nbsp; I want to copy (or Replace?) from the top one to the bottom one.&amp;nbsp; I&amp;#39;m guessing I should use CopyTable. Although I used CopyTable before I&amp;#39;m not sure what would be the table and what would be the Row for the source and dest in this case.&amp;nbsp; I tried Replace but that probably doesn&amp;#39;t work because of the repeating table.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my CopyTable command:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;CopyTable /tablesrc=/dfs:myFields/dfs:dataFields/ns1:GetRecordsResponse/ns1:GetRecordsResult/NewDataSet &lt;/p&gt;
&lt;p&gt;/rowsrc=LU_EducationLevel /tabledest=/my:myFields /rowdest=my:LU_EducationLevel /dsnamesrc=GetRecords&lt;/p&gt;
&lt;p&gt;and here&amp;#39;s the error I get:&lt;/p&gt;
&lt;p&gt;An error has occurred executing the rule. The table row of the source and destination must contain the same number of elements and attributes.&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51092.aspx</link><pubDate>Thu, 28 Jan 2010 14:40:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51092</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51092.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51092</wfw:commentRss><description>&lt;p&gt;Yes, the field names must match as well. To do this, right click on group1 and select Reference. Select a different location and InfoPath will replicate group1 in that location. See the attached screenshot for an example.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51089.aspx</link><pubDate>Thu, 28 Jan 2010 14:20:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51089</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51089</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t understand.&amp;nbsp; Each group has 2 text fields.&amp;nbsp; How is it a structure mis-match?&lt;/p&gt;
&lt;p&gt;Do the text-field names have to match too?&amp;nbsp; How can I do that when infopath doesn&amp;#39;t allow fields with the same name within a single data source?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51088.aspx</link><pubDate>Thu, 28 Jan 2010 14:11:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51088</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51088</wfw:commentRss><description>&lt;p&gt;No problem. Thanks for clarifying the scenario.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;Replace &lt;/span&gt;won&amp;#39;t work because of the structure mis-match.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt;CopyTable &lt;/span&gt;won&amp;#39;t work because these are not repeating structures.&lt;/p&gt;&lt;p&gt;Is it possible to re-do the data source so that the source and destination match?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51087.aspx</link><pubDate>Thu, 28 Jan 2010 13:50:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51087</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51087.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51087</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&amp;nbsp; Unfortunately, I was modifying my question to simplify it, as you were responding.&amp;nbsp; In my original question I forgot to specify the dsnamesrc.&amp;nbsp; However, this didn&amp;#39;t help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you take a look at the replaced question above??&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51085.aspx</link><pubDate>Thu, 28 Jan 2010 13:43:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51085</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51085.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51085</wfw:commentRss><description>&lt;p&gt;Hi Dave,&lt;/p&gt;&lt;p&gt;The command field gets cleared out after it executes.&lt;/p&gt;&lt;p&gt;From your description of the data structure it sounds like you are correct in trying Replace. The error message is telling us that the command cannot locate the source node. Though perhaps the real issue is that the data structures must match. From the mismatch above (source is &lt;b&gt;Attachments &lt;/b&gt;and destination is &lt;b&gt;my:Attachments&lt;/b&gt;) I think the command will run into issues. &lt;/p&gt;&lt;p&gt;Because of that, perhaps we should look at using CopyTable instead, which is more flexible in handling the data structure. Can you try that? If you run into issues, can you attach the file (or screenshots of the data source)?&lt;/p&gt;&lt;p&gt;Thanks, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Copy from one Group to another</title><link>https://www.infopathdev.com:443/forums/thread/51036.aspx</link><pubDate>Wed, 27 Jan 2010 15:20:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51036</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=51036</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a non-repeating group of fields I want to copy to another non-repeating group.&amp;nbsp; I&amp;#39;m not sure whether to use CopyTable or Replace.&amp;nbsp; Also, I&amp;#39;m not exactly sure what Replace does.&amp;nbsp; Does it copy the data into the corresponding fields (by field name)?&amp;nbsp; Or does it replace the entire structure under the source and destination path?&amp;nbsp; Is that why it&amp;#39;s called Replace instead of Copy?&lt;/p&gt;
&lt;p&gt;The error I&amp;#39;m getting is &amp;quot;Failed to replace the destination node&amp;quot;.&amp;nbsp; My Command looks like this:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Replace /xpathsrc=/my:myFields/my:Group1 /xpathdest=/my:myFields/my:Group2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Under each Group are 2 text fields.&lt;/p&gt;
&lt;p&gt;Group1 has text1, text2&lt;/p&gt;
&lt;p&gt;Group2 has text3, text4&lt;/p&gt;
&lt;p&gt;I also tried to use CopyTable to do this but couldn&amp;#39;t get that to work either, probably because this isn&amp;#39;t a repeating table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And an unrelated question, if I display the Command field on a form should it show up, or does&amp;nbsp;the field&amp;nbsp;immediately get cleared out after the command executes?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>