<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Setting a secondary datasource field</title><link>https://www.infopathdev.com:443/forums/thread/93033.aspx</link><pubDate>Fri, 13 Sep 2013 23:20:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93033</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=93033</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi - out of the box, InfoPath is not going to let you set another list item from your list form. And since this is a list form, you can&amp;#39;t add code or qRules to do this either. Are you using Office365? If not, you &lt;em&gt;may&lt;/em&gt; be able to use the Lists web service and UpdateListItem method with a CAML query to do this.&lt;/p&gt;</description></item><item><title>Setting a secondary datasource field</title><link>https://www.infopathdev.com:443/forums/thread/93019.aspx</link><pubDate>Fri, 13 Sep 2013 20:42:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93019</guid><dc:creator>knightlinger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=93019</wfw:commentRss><description>&lt;p&gt;I had assistance from QDabra staff yesterday in setting up a form that calculated the difference in value from&amp;nbsp;a meter reading entered today and the reading from yesterday.&amp;nbsp; The solution pulled in a secondary data source, and set a rule to run after todays meter reading was entered in the form.&amp;nbsp; The rule checked the last record entered in the sharepoint list (using Max(ID)) and calcuated the value to a field in the primary data source&lt;/p&gt;
&lt;p&gt;&amp;nbsp;After meeting with the departments staff, I found out the value needs to be set on the last record entered of the day before.&amp;nbsp; So I need to set the value to the last record in&amp;nbsp;the secondary data source, not the primary.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;
&lt;table cellspacing="0" cellpadding="3"&gt;

&lt;tr&gt;
&lt;td&gt;Date&lt;/td&gt;
&lt;td&gt;Meter Reading&lt;/td&gt;
&lt;td&gt;Water Treated&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9/10/2013&lt;/td&gt;
&lt;td&gt;259,167&lt;/td&gt;
&lt;td&gt;754&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9/11/2013&lt;/td&gt;
&lt;td&gt;259,921&lt;/td&gt;
&lt;td&gt;748&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9/12/2013&lt;/td&gt;
&lt;td&gt;260,669&lt;/td&gt;
&lt;td&gt;&lt;font color="#a00000"&gt;9/13 meter reading value minus 9/12 meter reading value&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9/13/2013&lt;/td&gt;
&lt;td&gt;261,250&lt;/td&gt;
&lt;td&gt;&lt;font color="navy"&gt;to be left blank during form entry&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;What would be the best way to go after this?&amp;nbsp; I tried setting the rule to update the secondary dataset, however no filter could be applied.&amp;nbsp; I created a Form Load rule to filter the table to the current record, however when I try to set the field, the value shows in the form, but not in the list after the form is submitted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Using a sharepoint list - infopath form on Sharepoint 2010&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Keith&lt;/p&gt;</description></item></channel></rss>