<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Set Target field of repeating table dynamically (Codeless)</title><link>https://www.infopathdev.com:443/forums/thread/91754.aspx</link><pubDate>Tue, 30 Jul 2013 07:19:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91754</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=91754</wfw:commentRss><description>&lt;p&gt;Jimmy&amp;#39;s got a technique that doesn&amp;#39;t use qRules but it&amp;#39;s quite complex. He should have time in a day or so to respond with the added detail.&lt;/p&gt;</description></item><item><title>Re: Set Target field of repeating table dynamically (Codeless)</title><link>https://www.infopathdev.com:443/forums/thread/91730.aspx</link><pubDate>Mon, 29 Jul 2013 14:11:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91730</guid><dc:creator>lockettc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=91730</wfw:commentRss><description>&lt;p&gt;Our environment is very secured.&amp;nbsp; We are unable to install anything on our machines, and have no access to Central Administration.&amp;nbsp; Even if we add a new solution to the solution gallery, it&amp;nbsp;may not be able to be activated.&amp;nbsp; Additionally, if we put code in the forms, they will require Farm Admin approval, which won&amp;#39;t happen.&amp;nbsp; So, I am basically an end user with only SCA rights in the site.&amp;nbsp; This is indeed a browser form, so my options are limited there too.&amp;nbsp; About the most I can do is edit the manifest in forms, or use jquery on sites.&amp;nbsp; IT frowns on jquery as they won&amp;#39;t support it.&lt;/p&gt;</description></item><item><title>Re: Set Target field of repeating table dynamically (Codeless)</title><link>https://www.infopathdev.com:443/forums/thread/91714.aspx</link><pubDate>Mon, 29 Jul 2013 03:10:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91714</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=91714</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It would seem that you can&amp;#39;t use xdXDocument:get-DOM() in the &lt;em&gt;targetField&lt;/em&gt;&amp;nbsp;portion of rule definitions. What you are trying to do can be accomplished very easily with a qRules command. Something like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;concat(&amp;quot;SetValue /dsname=SecDataSrc XML file1 /xpath=/Batch/Method[@ID = &amp;#39;&amp;quot;, &lt;u&gt;SB4&lt;/u&gt;, &amp;quot;&amp;#39;]/Field[@Name = &amp;#39;myfield&amp;#39;] /value=&amp;quot;, &lt;u&gt;Method[@ID = SB4]/Field[@Name = &amp;#39;myField&amp;#39;]&lt;/u&gt;, &amp;#39; hi&amp;#39;, &lt;u&gt;SB4&lt;/u&gt;)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;You mentioned that you can&amp;#39;t use code. Is that because of a security limitation, or a maintainability limitation?&lt;/p&gt;</description></item><item><title>Re: Set Target field of repeating table dynamically (Codeless)</title><link>https://www.infopathdev.com:443/forums/thread/91690.aspx</link><pubDate>Sun, 28 Jul 2013 06:03:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91690</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91690.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=91690</wfw:commentRss><description>&lt;p&gt;Hi Lockettc and welcome!&lt;/p&gt;
&lt;p&gt;You could do this quite easily with qRules SetValue command and that does work in the browser, but it requires the sandbox.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve sent your query to one of our MVPs (Jimmy) to see if he can give you the right incantation. &lt;/p&gt;
&lt;p&gt;It should be doable via the manifest.xsf, but that probably won&amp;#39;t work for browser forms. qRules SetValue will. Might be worth a look.&lt;/p&gt;
&lt;p&gt;More soon,&lt;/p&gt;</description></item><item><title>Set Target field of repeating table dynamically (Codeless)</title><link>https://www.infopathdev.com:443/forums/thread/91603.aspx</link><pubDate>Wed, 24 Jul 2013 16:52:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91603</guid><dc:creator>lockettc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91603.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=91603</wfw:commentRss><description>&lt;p&gt;Hey everyone..&amp;nbsp; Many of these posts have been very helpful to me, but now I am faced with a new issue that I can&amp;#39;t figure out.&amp;nbsp; I have a nested repeating table representing a secondary data source that looks like this:&lt;/p&gt;
&lt;p&gt;&amp;quot;SecDataSrc XML file1&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Batch&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Method (Repeating)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;@ID&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Field (Repeating)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;@Name&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;In my main data source, I have a couple of fields to store data for calculations.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;TaskFields&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;text1&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;SB4&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;What I want to do is set the Field with @Name= &amp;quot;myfield&amp;quot; and @ID = sb4 to some text string value.&amp;nbsp; seems simple right?&amp;nbsp; When modifying the manifest.xsf to place a filter on the targetField, this is what I get:&lt;/p&gt;
&lt;p&gt;Putting a constant in for the @ID value (say &amp;#39;26&amp;#39;) works:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsf:assignmentAction targetField=&amp;quot;xdXDocument:GetDOM(&amp;amp;quot;SecDataSrc XML file1&amp;amp;quot;)/Batch/Method/Field[../@ID = &amp;#39;26&amp;#39; and @Name = &amp;amp;quot;myfield&amp;amp;quot;]&amp;quot; expression=&amp;quot;concat(xdXDocument:GetDOM(&amp;amp;quot;SecDataSrc XML file1&amp;amp;quot;)/Batch/Method/Field[../@ID = &amp;#39;26&amp;#39; and @Name = &amp;amp;quot;myfield&amp;amp;quot;],&amp;#39; hi&amp;#39;,xdXDocument:get-DOM()/my:myFields/my:TaskFields/my:SB4)&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;/p&gt;
&lt;p&gt;What I need is for &amp;#39;26&amp;#39; to be a variable referencing SB4:&amp;nbsp; So I copy the reference in the expression and paste it over the &amp;#39;26&amp;#39;.&amp;nbsp; This does not work:&lt;/p&gt;
&lt;p&gt;&amp;lt;xsf:assignmentAction targetField=&amp;quot;xdXDocument:GetDOM(&amp;amp;quot;SecDataSrc XML file1&amp;amp;quot;)/Batch/Method/Field[../@ID =&amp;nbsp;xdXDocument:get-DOM()/my:myFields/my:TaskFields/my:SB4 and @Name = &amp;amp;quot;myfield&amp;amp;quot;]&amp;quot; expression=&amp;quot;concat(xdXDocument:GetDOM(&amp;amp;quot;SecDataSrc XML file1&amp;amp;quot;)/Batch/Method/Field[../@ID = &amp;#39;26&amp;#39; and @Name = &amp;amp;quot;myfield&amp;amp;quot;],&amp;#39; hi&amp;#39;,xdXDocument:get-DOM()/my:myFields/my:TaskFields/my:SB4)&amp;quot;&amp;gt;&amp;lt;/xsf:assignmentAction&amp;gt;&lt;/p&gt;
&lt;p&gt;The error I get is is Unknown Method: &amp;quot;/Batch/Method/Field[../@ID =&amp;nbsp;---&amp;gt; xdXDocument:get-DOM &amp;lt;---&amp;nbsp; ()/my:myFields/my:TaskFields/my:SB4&amp;quot;&lt;/p&gt;
&lt;p&gt;Any ideas?&amp;nbsp; I have tried //my:SB4, ../my:SB4 but none of them work.&amp;nbsp; My rule that calls the action above&amp;nbsp;is on the text1 field in the main data source. (It is used to calculate SB4).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My other option is to use rules to set the fields.&amp;nbsp; (No code).&amp;nbsp; For each method in the data source, I want to set Field with @Name = &amp;quot;StartDate&amp;quot; to the value of that same Method&amp;#39;s Field with @Name = &amp;quot;SOffset&amp;quot;.&amp;nbsp; Both are strings.&amp;nbsp; Any Ideas on how to do this?&amp;nbsp; Either will work for me.&lt;/p&gt;</description></item></channel></rss>