<?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: Trying to set value in repeating table with Qrules</title><link>https://www.infopathdev.com:443/forums/thread/90673.aspx</link><pubDate>Thu, 13 Jun 2013 14:05:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90673</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=90673</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In your formula, it looks like you are wrapping your integer in single quotes - can you try w/out those?&lt;/p&gt;</description></item><item><title>Re: Trying to set value in repeating table with Qrules</title><link>https://www.infopathdev.com:443/forums/thread/90672.aspx</link><pubDate>Thu, 13 Jun 2013 14:04:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90672</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=90672</wfw:commentRss><description>&lt;p&gt;If&amp;nbsp;TSD_x0020_day is on the secondary data source, I think it might be a string, though.&lt;/p&gt;&lt;p&gt;Try [number(TSD_x0020_day) = dayCount]&lt;/p&gt;</description></item><item><title>Re: Trying to set value in repeating table with Qrules</title><link>https://www.infopathdev.com:443/forums/thread/90670.aspx</link><pubDate>Thu, 13 Jun 2013 13:50:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90670</guid><dc:creator>MrWilde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=90670</wfw:commentRss><description>Hey Ernesto

&lt;p&gt;TSD_x0020_day is NumberType from SharePointList&lt;/p&gt;
&lt;p&gt;dayCount is and integer&lt;/p&gt;

&lt;p&gt;I tried passing dayCount through number() just to make sure the data type was correct but same result&lt;/p&gt;</description></item><item><title>Re: Trying to set value in repeating table with Qrules</title><link>https://www.infopathdev.com:443/forums/thread/90668.aspx</link><pubDate>Thu, 13 Jun 2013 12:36:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90668</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=90668</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What are the data types of TSD_x0020_day&amp;nbsp;and dayCount?&lt;/p&gt;</description></item><item><title>Trying to set value in repeating table with Qrules</title><link>https://www.infopathdev.com:443/forums/thread/90665.aspx</link><pubDate>Thu, 13 Jun 2013 10:05:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90665</guid><dc:creator>MrWilde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90665.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=90665</wfw:commentRss><description>&lt;p&gt;Interesting issue get my stumped!&lt;/p&gt;
&lt;p&gt;using setvalue to set fields in repeating table from secondary data source, sharepoint list.&lt;/p&gt;
&lt;p&gt;Currently testing and have button that sets the 7 required fields for each day.&lt;/p&gt;
&lt;p&gt;Have count(preceding-sibling::my:DAYS1to7) + 1 to set the index of the rows&lt;/p&gt;
&lt;p&gt;trying this SetValue command&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:myFields/my:tsd/my:WEEKS/my:WEEK1/my:DAYS1to7/my:w1_personalLeave[../my:w1_day=&amp;#39;&amp;quot;, dayCount, &amp;quot;&amp;#39;] /value=&amp;quot;, LEAVE_x0020_Hours[TSD_x0020_day = dayCount])&lt;/p&gt;
&lt;p&gt;I am setting a field to view and the [../my:w1_day=&amp;#39;&amp;quot;, dayCount, &amp;quot;&amp;#39;] turns too [../my:w1_day=&amp;#39;1&amp;#39;] consecuteivley, no problem&lt;/p&gt;
&lt;p&gt;I have tested retireving details from the secondary data source&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;LEAVE Data list&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:TTL_x0020_Time_x0020_Sheet_x0020[../d:TSD_x0020_day = 2]&lt;/p&gt;
&lt;p&gt;No problem&lt;/p&gt;
&lt;p&gt;issue is if I try and run&lt;/p&gt;
&lt;p&gt;LEAVE_x0020_Hours[TSD_x0020_day = dayCount]&lt;/p&gt;
&lt;p&gt;will not work. returns BLANK&lt;/p&gt;
&lt;p&gt;Just to reiterate &lt;/p&gt;
&lt;p&gt;THIS WORKS - LEAVE_x0020_Hours[TSD_x0020_day = 2]&lt;/p&gt;
&lt;p&gt;THIS WORKS - &lt;u&gt;dayCount&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;THIS WILL NOT - LEAVE_x0020_Hours[TSD_x0020_day = &lt;u&gt;dayCount&lt;/u&gt;]&lt;/p&gt;
&lt;p&gt;dont understand&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>