<?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: Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67696.aspx</link><pubDate>Thu, 23 Jun 2011 15:44:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67696</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67696.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67696</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, just did a re-jig of the data source and now the insert command works a treat!&lt;/p&gt;
&lt;p&gt;Inserts a new row below the previous one and I don&amp;#39;t need the /posn= or /count= paramaters&lt;/p&gt;</description></item><item><title>Re: Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67695.aspx</link><pubDate>Thu, 23 Jun 2011 15:34:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67695</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67695.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67695</wfw:commentRss><description>&lt;p&gt;Hello Ben,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The problem here is with the design of your data source.&amp;nbsp; For the Insert command to work properly, the repeating node being modified needs to have its own parent, whereas &lt;strong&gt;ExpenseItems&lt;/strong&gt; and &lt;strong&gt;Mileage&lt;/strong&gt; both have sibling nodes that share the same parent nodes as themselves (ExpenseSubTotal, FuelType, etc.).&amp;nbsp; Giving repeating nodes their own parent also tends to be good schema design in general.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s not too late in the form design process, I would suggest restructuring the data source to remedy this issue.&amp;nbsp; If that&amp;#39;s not possible,&amp;nbsp;a potential workaround&amp;nbsp;is to use a concat formula to specify the position:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;nbsp;concat(&amp;#39;Insert /parent=/my:ExpenseReport/my:MileageDetails /child=my:Mileage /posn=&amp;#39;, (count(&lt;strong&gt;&lt;u&gt;Mileage&lt;/u&gt;&lt;/strong&gt;) + 1))&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&amp;#39;t think you should need to use the /count parameter, so please give the command a try without it.&lt;/p&gt;</description></item><item><title>Re: Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67690.aspx</link><pubDate>Thu, 23 Jun 2011 14:14:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67690</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67690</wfw:commentRss><description>&lt;p&gt;Hi Patrick,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try the workaround discussed and see if that works...in the meantime I&amp;#39;ve emailed a copy of my template over (was too large to attach!).&lt;/p&gt;
&lt;p&gt;For the record, I was having other issues with the template so I created a new one from scratch as I thought that using an old (and rather messy) datasource may have been causing the issue.&amp;nbsp; Still no luck though, Insert command is always inserting a row/section above the previous one!&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;</description></item><item><title>Re: Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67672.aspx</link><pubDate>Thu, 23 Jun 2011 04:55:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67672</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67672</wfw:commentRss><description>&lt;p&gt;Shouldn&amp;#39;t matter if it&amp;#39;s repeating section or tableand your child node should be relative, so you&amp;#39;re correct there. Not sure why the other posts speak differently. Need to investigate that. &lt;/p&gt;
&lt;p&gt;I use qRules Insert all the time and I don&amp;#39;t see it pre-inserting. But you know, qRules does contain the Sort command so you could conceivably add the now() time on insert (via a rule on the repeating section to set a hidden field) and then just reorder the rows using that... crazy workaround, but hey if it works why not ... meanwhile as Jimmy said, please attach your XSN (or a sample) and we will do the deeper dive ...&lt;/p&gt;</description></item><item><title>Re: Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67652.aspx</link><pubDate>Wed, 22 Jun 2011 15:31:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67652</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67652.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67652</wfw:commentRss><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you send a copy of your form to our support alias &amp;quot;support AT qdabra DOT com&amp;quot; so we can have a look?&lt;/p&gt;</description></item><item><title>Problem with qRules Insert Command</title><link>https://www.infopathdev.com:443/forums/thread/67650.aspx</link><pubDate>Wed, 22 Jun 2011 15:11:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67650</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=67650</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having a bit of an issue using the &amp;quot;Insert&amp;quot; command on qRules and having looked through the other posts on the subject haven&amp;#39;t encountered anyone else who seems to be having the same problem.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve managed to get the insert command to work, although I&amp;#39;ve found that it will only work if I include both the /posn= and /count= elements in the command; if I leave this off I get the &amp;quot;Failed to insert child node&amp;quot; error.&amp;nbsp; Both /posn= and /count= also have to be numbers, I can&amp;#39;t use the term &amp;quot;last&amp;quot; like in the sample qRules form.&amp;nbsp; The problem I&amp;#39;m having is that the insert command is always inserting a row/section above the previous one and not below it.&amp;nbsp; In some cases this hasn&amp;#39;t really been an issue but in this particular case it&amp;#39;s rather annoying and I&amp;#39;d like to sort it out!&lt;/p&gt;
&lt;p&gt;Here is the command that is being fired on the button click (I&amp;#39;ve entered it in the value field, not in the fx section):&amp;nbsp; Insert /parent=/my:ExpenseReport/my:MileageDetails /child=my:Mileage /posn=1 /count=1&lt;/p&gt;
&lt;p&gt;Reading through the other posts I&amp;#39;ve seen a lot of discussion about /child and it always seems to be written as /child=/my:Mileage however this results is the same &amp;quot;Failed to insert&amp;quot; error...the above is the only way this command seems to work for me!&lt;/p&gt;
&lt;p&gt;Below is the structure of my data souce, I&amp;#39;m trying to use the &amp;quot;insert&amp;quot; command to insert a new my:Mileage row.&amp;nbsp; Should note that my:Mileage is currently set-up as a repeating section rather than a repeating table but I&amp;#39;ve tried changing to a repeating table and I still encounter the same issue&lt;/p&gt;
&lt;p&gt;/my:ExpenseReport&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /my:ExpenseReport/my:MileageDetails&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /my:ExpenseReport/my:MileageDetails/my:Mileage&lt;/p&gt;
&lt;p&gt;Any help is appreciated as always!&lt;/p&gt;
&lt;p&gt;Oh yeah, IP 2010 &amp;amp; qRules 3.1&lt;/p&gt;</description></item></channel></rss>