<?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: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71980.aspx</link><pubDate>Fri, 11 Nov 2011 17:42:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71980</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71980</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;I think I have found a solution thanks to your expert guidance. When I unchecked the &amp;quot;Include data for the active form only&amp;quot; checkbox in the data connection for retrieving the ID from the form Library, I found that it just returns the first ID in the library. If this checkbox is checked, it doesn&amp;#39;t return any value. Obviously it is of no use to me if the ID returned all the time is the first item in the list, so as a workaround, when I&amp;#39;m setting the value for referral on the form I used the function max(ID) and this returns the highest/latest/current value of the submitted item. I cannot think of an instance whereby this logic might fail, but please let me know if I&amp;#39;m missing something obvious.&lt;/p&gt;&lt;p&gt;In addition, I also discovered that I only need to submit the form one time to the library.&lt;/p&gt;&lt;p&gt;Many thanks for your patience and help with this issue. It is very much appreciated.&lt;/p&gt;&lt;p&gt; Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71979.aspx</link><pubDate>Fri, 11 Nov 2011 17:42:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71979</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71979</wfw:commentRss><description>&lt;p&gt;If the referreral field is not getting set in the form, of course, there is no data in the field to submit, then.&lt;/p&gt;&lt;p&gt;Perhaps deactivate most of your rules and just try your submit and query rule to see if you are getting data back in your query? Drag the query datafields onto the form to verify you have the data you&amp;#39;d expect?&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71978.aspx</link><pubDate>Fri, 11 Nov 2011 17:41:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71978</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71978</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;I think I have found&amp;nbsp;a solution thanks to your expert guidance. When I unchecked the &amp;quot;Include data for the active form only&amp;quot; checkbox in the data connection for retrieving the ID from the form Library, I found that it just returns the first ID in the library. If this checkbox is checked, it doesn&amp;#39;t return any value. Obviously it is of no use to me if the ID returned all the time is the first item in the list, so as a workaround, when I&amp;#39;m setting the value for referral on the form I used the function max(ID) and this returns the highest/latest/current value of the submitted item. I cannot think of an instance whereby this logic might fail, but please let me know if I&amp;#39;m missing something obvious.&lt;/p&gt;&lt;p&gt;In addition,&amp;nbsp;I also discovered&amp;nbsp;that I only need to submit the form one time&amp;nbsp;to the library.&lt;/p&gt;&lt;p&gt;Many thanks for your patience and help with this issue. It is very much appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71977.aspx</link><pubDate>Fri, 11 Nov 2011 17:07:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71977</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71977</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;The referral field does not obtain a value from the ID of the library. This field remains blank throughout the process.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve used the full Xpath for the referral&amp;nbsp;in the main form when updating the&amp;nbsp;ReferralID as a test column and it submits o.k. However, I can change it to reflect your advice.&lt;/p&gt;&lt;p&gt;I don&amp;#39;t get any errors displayed when I submit this form.&amp;nbsp;The only field that doesn&amp;#39;t get mapped is the lookup column in the Keywords list. The keyword&amp;nbsp;gets posted to the SharePoint list but not the&amp;nbsp;lookup column.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71976.aspx</link><pubDate>Fri, 11 Nov 2011 16:53:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71976</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71976</wfw:commentRss><description>&lt;p&gt;Does the command fail with the same error as your initial post? If you change the lookup column to text (temporarily) does a value get submitted there?&lt;/p&gt;&lt;p&gt;The only thing that looks off to me is the mapping for your referral field:&lt;/p&gt;&lt;p&gt;/my:myFields/my:General/my:referral&lt;/p&gt;&lt;p&gt;I would use XPath relative to the repeating group:&lt;/p&gt;&lt;p&gt;../../my:referral&lt;/p&gt;&lt;p&gt;Your rules look right to me - you are getting an ID set in your referral field, correct?&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71975.aspx</link><pubDate>Fri, 11 Nov 2011 15:57:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71975</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71975</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;I got a chance to try this out and followed your steps but I&amp;#39;m still not able to set the value in the lookup column in the Keywords List.&lt;/p&gt;&lt;p&gt;Can you have a look at the rules on the Submit button in the attached form&amp;nbsp;to determine if I am doing this correctly?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Many thanks,&lt;/p&gt;&lt;p&gt;Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71962.aspx</link><pubDate>Fri, 11 Nov 2011 10:55:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71962</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71962</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;This makes sense. However, I won&amp;#39;t get a chance to try it out until someitme this weekend.&lt;/p&gt;&lt;p&gt;I will let you know how I get on.&lt;/p&gt;&lt;p&gt;Padraic&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71954.aspx</link><pubDate>Thu, 10 Nov 2011 23:43:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71954</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71954</wfw:commentRss><description>&lt;p&gt;When I say submit the XML to the library, yes, I&amp;#39;m referring to the XML generated by the filled out form (IP files are XML).&lt;/p&gt;&lt;p&gt;You have a data connection that submits the form to the TestRL library. I think you need to add a receive connection to that same library. If you are using SharePoint 2010, you&amp;#39;ll have the option of only returning data for the current item. You should select that. You&amp;#39;ll want to be sure to return the ID column from the library in this data connection.&lt;/p&gt;&lt;p&gt;Your rules would then:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Submit to your TestRL library&lt;/li&gt;&lt;li&gt;Query using your new data connection, to get the TestRL library ID of the XML you just submitted&lt;/li&gt;&lt;li&gt;Set some main data source field to the ID you&amp;#39;ve returned in step 2&lt;/li&gt;&lt;li&gt;Submit your list data to your list, being sure that you&amp;#39;ve mapped the field populated in step 3 to your column that has a lookup defined on the TestRL library&lt;/li&gt;&lt;li&gt;Since your SubmitToSharePointList command is populating the id node in your repeating group, you need to submit to your TestRL library again - that is, repeat step 1&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I just tested a CAML UpdateListItems batch earlier today using only an ID for my lookup - submitting the ID alone should be sufficient, you don&amp;#39;t have to muck about with &amp;quot;;#DisplayName&amp;quot;.&lt;/p&gt;&lt;p&gt;Does this make a little more sense?&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71953.aspx</link><pubDate>Thu, 10 Nov 2011 23:13:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71953</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71953</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;You are correct in your assumption that I submit the form to the library and the keywords to the list at the same time. I am using SharePoint 2010. When you say submit your XML to the library do you mean submit the form to the library. I have uploaded a scaled down version of what I&amp;#39;m trying to achieve and I&amp;#39;d be grateful if you could have a look and let me know where I&amp;#39;m going wrong.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71952.aspx</link><pubDate>Thu, 10 Nov 2011 22:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71952</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71952</wfw:commentRss><description>&lt;p&gt;So, I just re-read your 10-24 post descibing what you need to do. I think you are saying that you need to submit the referral library id for the form to the keywords list at the same time as the form itself is submitted? Is that the case? If so, you may need to submit your XML to the library, get the ID for the XML from the library (what version of SharePoint do you have? I&amp;#39;m hoping you are going to say &amp;quot;2010&amp;quot;), submit the keywords to the list, and if your form is using the /id parameter in SubmitToSharePointList, you&amp;#39;ll want to re-submit the XML to the library again in order to have the id fields in the repeating table populated...&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71950.aspx</link><pubDate>Thu, 10 Nov 2011 21:50:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71950</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71950</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;I&amp;#39;m only getting a chance to return to this now due to other priorities in work. I understand what you are saying above but I don&amp;#39;t know how to get the ID of the lookup item in the form library to update the Keywords list&lt;/p&gt;&lt;p&gt;How can I acheive this?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Padraic&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71407.aspx</link><pubDate>Tue, 25 Oct 2011 18:52:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71407</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71407</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;Now I&amp;#39;ve got it.......&lt;/p&gt;&lt;p&gt;Thanks for your patience on this one. Much appreciated.&lt;/p&gt;&lt;p&gt;Padraic&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71384.aspx</link><pubDate>Mon, 24 Oct 2011 23:53:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71384</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71384</wfw:commentRss><description>&lt;p&gt;So, the issue then is with the Keywords list. It has a lookup that uses the Referrals Library. &lt;/p&gt;
&lt;p&gt;Your form - what is submitting to the Keywords list? Valid ReferralIDs? That is, does your form give the user a dropdown to select the ReferralID from?&lt;/p&gt;
&lt;p&gt;I think I&amp;#39;m doing a poor job of explaining what I mean, but I will try again.&lt;/p&gt;
&lt;p&gt;Currently, you are probably submitting &lt;strong&gt;1&lt;/strong&gt;, &lt;strong&gt;2&lt;/strong&gt;, etc. to the Keywords list ReferralID field from your form field.&lt;/p&gt;
&lt;p&gt;When the ReferralD column in the Keywords list is just a text field, your submit works without issue. SharePoint is expecting some text, and that is what you are providing.&lt;/p&gt;
&lt;p&gt;Lookup columns require the data be in a different format. The format that the lookup column wants is the ID of the lookup item, followed by a semi-colon, a pound sign, and the display value.&lt;/p&gt;
&lt;p&gt;If your Referral Library looked like this:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&lt;br /&gt;&lt;/strong&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First Item&lt;br /&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Second Item&lt;/p&gt;
&lt;p&gt;You&amp;#39;d want to submit:&lt;/p&gt;
&lt;p&gt;1;#FirstItem&lt;/p&gt;
&lt;p&gt;To successfully populate the lookup from your form. &lt;/p&gt;
&lt;p&gt;This is why I&amp;#39;m suggesting you add another field to your form data source and use a formula to set it to the value SharePoint expects (whether a default value or a rule) and submit &lt;em&gt;this new field&lt;/em&gt; to the ReferrallID column in your Keywords list.&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71381.aspx</link><pubDate>Mon, 24 Oct 2011 22:08:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71381</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71381</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;This is what I am trying to achieve. I have a form that I submit to a Referrals Library.&lt;/p&gt;&lt;p&gt;There is a repeating table in that form that allows the user to record certain keywords&amp;nbsp;relating to the case.&amp;nbsp;When the user hits the submit button,&amp;nbsp;a couple of&amp;nbsp;actions are kicked off. Firstly, the repeating&amp;nbsp;table&amp;nbsp;data is deployed to a sharepoint list and there are a few of these&amp;nbsp;tables. Secondly, the form is&amp;nbsp;posted to the Referrals library. &amp;nbsp;The parent list is the Referrals Library and the child list is the Keywords list that I populate using qRules SharePointToList command. The Referrals Library has a Referral No field that is promoted from the form. The Keywords List has a ReferralID field that it uses to lookup the value in the Referrals Library.&lt;/p&gt;&lt;p&gt;I have created a mapping file to use for the SharePointToList command and it works as exepcted if I use a normal text column for the ReferralID field. However, when the ReferralID field is cast as a lookup, then the field does not get populated with data.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Padraic&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SubmitToSharePoint List and Lookup Columns</title><link>https://www.infopathdev.com:443/forums/thread/71379.aspx</link><pubDate>Mon, 24 Oct 2011 21:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71379</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71379.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=71379</wfw:commentRss><description>&lt;p&gt;The first thing you&amp;#39;ll need to know is what is providing the lookup values to your target SharePoint list.&lt;/p&gt;
&lt;p&gt;Is it another list on the site? Or have they been hard coded in?&lt;/p&gt;
&lt;p&gt;You need to submit the ID of the lookup item (for example, if it is from another list, you need to use the ID of the item in that list), then a semi-colon, the pound sign, and the display name (although you may be able to submit just the ID if you have it.... I&amp;#39;m not 100% sure on that....). So, most likely, instead of submitting the field you currently are from your form to your list, you&amp;#39;ll want another field, not on the form, that has a formula to create the value SharePoint needs to use the UpdateListItems method to update a lookup. Does that make more sense?&lt;/p&gt;</description></item></channel></rss>