<?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: Insert node within nested repeating node</title><link>https://www.infopathdev.com:443/forums/thread/61114.aspx</link><pubDate>Fri, 05 Nov 2010 14:03:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61114</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=61114</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;thank you for quick response, you provide excellent help in this forum.&lt;/p&gt;
&lt;p&gt;I hadn&amp;#39;t noticed I was using qrules 2.2 in that form. so&amp;nbsp;I just injected&amp;nbsp;2.3 :-) (I love it)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(&lt;strong&gt;&lt;u&gt;&amp;#39;Insert&lt;/u&gt;&lt;/strong&gt; /&lt;strong&gt;&lt;u&gt;parent&lt;/u&gt;&lt;/strong&gt;=/my:UserDataChangeRequest/my:people/my:person[my:UserName=&amp;quot;&amp;#39;, current()/my:UserName, &amp;#39;&amp;quot;]/my:ActiveDirectoryFields /&lt;strong&gt;&lt;u&gt;xpathsrc&lt;/u&gt;&lt;/strong&gt;=/my:UserDataChangeRequest/my:people/my:person/my:ActiveDirectoryFields/my:PropertyData&amp;#39;)&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So instead of /child I use the new /xpathsrc-parameter and everything worked right away. I am quite impressed.&lt;br /&gt;This parameter by the way is not documented in the 2.3 User Guide. Are there any other cool parameters? :-)&lt;/p&gt;
&lt;p&gt;Thankyou, what a nice friday :-) have a nice weekend&lt;br /&gt;Michael&lt;/p&gt;</description></item><item><title>Re: Insert node within nested repeating node</title><link>https://www.infopathdev.com:443/forums/thread/61112.aspx</link><pubDate>Fri, 05 Nov 2010 12:52:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61112</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61112.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=61112</wfw:commentRss><description>&lt;p&gt;The problem with your first approach is that the current() function is only available within InfoPath designer features (rules, condt&amp;#39;l formatting, etc.) and not in code-based features.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To get around this, you can use a concat() statement to fold the value you want into the command:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(&amp;#39;Insert /parent=/my:form/my:people/my:person[my:UserName=&amp;quot;&amp;#39;, current()/../my:UserName, &amp;#39;&amp;quot;]/my:ActiveDirectoryFields /child=my:PropertyData&amp;#39;)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This way InfoPath will evaluate current()/../my:UserName before the command is sent to qRules. Pay special attention to the use of apostrophes and quotes near the commas.&lt;/p&gt;
&lt;p&gt;In order to use the Insert command within nested nodes, you must use a special parameter called xpathsrc, which should be the full path to the child node without any filtering:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/xpathsrc=/my:form/my:people/my:person/my:ActiveDirectoryFields/my:PropertyData&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This parameter is a very new feature (added 9/29/2010) so please let us know if it is not available in your copy of qRules.&lt;/p&gt;</description></item><item><title>Insert node within nested repeating node</title><link>https://www.infopathdev.com:443/forums/thread/61110.aspx</link><pubDate>Fri, 05 Nov 2010 12:10:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61110</guid><dc:creator>joanfuture</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61110.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=61110</wfw:commentRss><description>&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;i cannot seem to get the following to work: I want to add a child to a repeating node, that itself is part of repeating node. &lt;/p&gt;
&lt;p&gt;my:form&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my:people&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my:person (repeating)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my:ActiveDirectoryFields&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my:propertyData (repeating)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (add new node here&amp;nbsp;for a certain person-node)&lt;/p&gt;
&lt;p&gt;I tried the following Command for Qrules:&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Insert&lt;/u&gt; /&lt;u&gt;parent&lt;/u&gt;=/my:form/my:people/my:person[my:UserName=current()/../my:UserName]/my:ActiveDirectoryFields /&lt;u&gt;child&lt;/u&gt;=my:PropertyData&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Qrules throws this message:&lt;br /&gt;An unexpected error occurred executing the rule. Action: Insert&lt;br /&gt;&amp;nbsp;Arguments: &lt;br /&gt;parent: /my:UserDataChangeRequest/my:people/my:person[my:UserName=current()/../my:UserName]/my:ActiveDirectoryFields&lt;br /&gt;child: my:PropertyData&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Details: XsltContext is needed for this query because of an unknown function.&lt;br /&gt;Stack: &amp;nbsp; at MS.Internal.Xml.XPath.CompiledXpathExpr.UndefinedXsltContext.ResolveFunction(String prefix, String name, XPathResultType[] ArgTypes)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.FunctionQuery.SetXsltContext(XsltContext context)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.BaseAxisQuery.SetXsltContext(XsltContext context)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.BaseAxisQuery.SetXsltContext(XsltContext context)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.LogicalExpr.SetXsltContext(XsltContext context)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.FilterQuery.SetXsltContext(XsltContext input)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.BaseAxisQuery.SetXsltContext(XsltContext context)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at MS.Internal.Xml.XPath.CompiledXpathExpr.SetContext(XmlNamespaceManager nsManager)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at Qdabra.Tools.RulesLibrary.Commands.GetValidNode(XPathNavigator dom, String xpath, String errorMessage)&lt;br /&gt;&amp;nbsp; &amp;nbsp;at Qdabra.Tools.RulesLibrary.Commands.Insert()&lt;br /&gt;&amp;nbsp; &amp;nbsp;at Qdabra.Tools.RulesLibrary.Commands.ExecuteCommand()&lt;/p&gt;
&lt;p&gt;Do you know, if this is at all supported?&lt;/p&gt;
&lt;p&gt;I also tried to just hardcode the query but to no avail:&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Insert&lt;/u&gt; /&lt;u&gt;parent&lt;/u&gt;=/my:UserDataChangeRequest/my:people/my:person[my:UserName = &amp;quot;abc&amp;quot;]/my:ActiveDirectoryFields /&lt;u&gt;child&lt;/u&gt;=my:PropertyData&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Then I get this message:&lt;br /&gt;An error has occurred executing the rule. Failed to select the child node.&lt;/p&gt;
&lt;p&gt;Can you help me please?&lt;br /&gt;Thank you&lt;br /&gt;Michel&lt;/p&gt;</description></item></channel></rss>