<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Newbie...need help with a CAML repeating table to push updates to Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/64402.aspx</link><pubDate>Mon, 21 Feb 2011 20:32:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64402</guid><dc:creator>Anderson10</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=64402</wfw:commentRss><description>&lt;p&gt;Sorry that was bad.&lt;/p&gt;
&lt;p&gt;I will retype: &lt;/p&gt;
&lt;p&gt;Hi, newbie, and need help to complete an infopath form (07) which updates a sharepoint list called &amp;quot;Sharepoint_List_Items&amp;quot;)&lt;/p&gt;
&lt;p&gt;Basically i have a list such as follows (this is being pulled from list Sharepoint_List_Items). It is worth noting that the ID is not an inputted field representing a code of the item/person, but actually relates to the actual unique ID assigned by the Sharepoint list, so reference to it in CAML would result in update to the table.&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item&amp;nbsp;No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;/p&gt;
&lt;p&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&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; Pencil&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&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; Pen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&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; Pen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&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; Ruler&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&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; Eraser&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&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; Case&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blank (needs to be populated by input into the form)&lt;/p&gt;
&lt;p&gt;My target audience for this form will only see the items they need, this is done using conditional formatting on the name they input. The reason for this is person A only needs a pencil, pen and eraser whilst person c only needs a ruler. So for example person A will key in &amp;quot;A&amp;quot; into a field &amp;quot;Person_Name&amp;quot;, which his view then filters to a table like the below:&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item Name&lt;/p&gt;
&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pen&lt;/p&gt;
&lt;p&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Eraser&lt;/p&gt;
&lt;p&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case&lt;/p&gt;
&lt;p&gt;Each person is then aksed to confirm if they have received the items, with checkbox options against the following these are independent checkbox fields, not tied to the Sharepoint_List_Items data source:&lt;/p&gt;
&lt;p&gt;Received All [checkbox]&lt;/p&gt;
&lt;p&gt;Received None [checkbox] &lt;/p&gt;
&lt;p&gt;(I also have &amp;quot;Received Some&amp;quot; as check, but i don&amp;#39;t want to worry about that now)&lt;/p&gt;
&lt;p&gt;I have a rule which then populates a CAML repeating table that i have set up (Name, Field, etc). So when person A selects checkbox &amp;quot;Received All&amp;quot;, I have a rule, which checks, against Sharepoint_List_Item&amp;#39;s all the item IDs which has person A against it. This compares to Person_Name (inputted by the user on IP form).&amp;nbsp;The results of the rule and data filters then writes to a CAML repeating table. Example, if person A checks &amp;quot;Received All&amp;quot;, my rule should write to the CAML repeating table:&lt;/p&gt;
&lt;p&gt;Name Field&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; Received&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/p&gt;
&lt;p&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; Received&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; Received&lt;/p&gt;
&lt;p&gt;This is intended to then update Sharepoint_List_Items record IDs 2, 5 and 6 with &amp;quot;Received&amp;quot; in the status column. I would expect that my rule would update records 2, 5 and 6 with the status is all was smooth. So once person A enters his name, marks his checkbox appropriately and clicks submit, my lookup rule executes and writes to CAML table, then web service calls out the CAML template and through a submit data connection push to Sharepoint_List_Items to populate Status column.&lt;/p&gt;
&lt;p&gt;My problem is that the CAML repeating table only looks up the first value which is allocated to person A, ie, ID 2. The CAML table looks like:&lt;/p&gt;
&lt;p&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&lt;/p&gt;
&lt;p&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp; Received&lt;/p&gt;
&lt;p&gt;Items 5 and 6 do not appear on the CAML repeating table so when person A submits, only record ID 2 gets updated, not 2, 5 and 6 which should be right. In the same way, if person B completed the form and checked &amp;quot;Received All&amp;quot;, only ID 1 would be written to CAML, not both 1 and 3. My rule, using filtered data functionality is as below, for the lookup that writes to the CAML table:&lt;/p&gt;
&lt;p&gt;Action: fx set a fields value&lt;/p&gt;
&lt;p&gt;Field: Field [@Name=&amp;quot;ID&amp;quot;]&lt;/p&gt;
&lt;p&gt;Value: @ID[@Person = Person_Name]&lt;/p&gt;
&lt;p&gt;The xpath for value is as follows:&lt;/p&gt;xdXDocument:GetDOM(&amp;quot;Sharepoint_List_Items&amp;quot;)/dfs:myFields/dfs:dataFields/dfs: &lt;a href="mailto:Sharepoint_List_Items/@ID[../@Person"&gt;Sharepoint_List_Items/@ID[../@Person&lt;/a&gt; = xdXDocument:get-DOM()/my:myFields/my:Person_Name] 
&lt;p&gt;CAML template:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;Batch OnError=&amp;quot;Continue&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Method ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;Update&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;#39;ID&amp;#39;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Field Name=&amp;quot;Status&amp;quot;&amp;gt;&amp;lt;/Field&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Method&amp;gt;&lt;br /&gt;&amp;lt;/Batch&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Not sure what i&amp;#39;m doign wrong, basically, how&amp;nbsp;do i get my CAML repeating table to populate items 5 and 6&amp;nbsp;to then publish into Sharepoint_List_Items, rather than just looking up and retriving the first item it finds ie, item 2? I have everything else right such as being able to write &amp;quot;Received&amp;quot; or &amp;quot;Not Received&amp;quot; against individual IDs, and pushing succesfully to update the status in Sharepoint_List_Items&amp;nbsp;but its just that the first line of lookup against Sharepoint_List_Items is being returned, and nothing else which means only the first lookup value will get updated. I have read that it may be related to &amp;quot;current()&amp;quot; command in the filter lookup above, but tried it and didn&amp;#39;t work, though maybe i could have done it wrongly.&lt;/p&gt;
&lt;p&gt;Would appreciate help very much, this forum has gotten me very far&amp;nbsp;and i&amp;#39;m close but this is stopping me! I should also highlight that i&amp;#39;m not in a position to download or purchase other software so QRules and CAML Query Writer are out of the question.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Newbie...need help with a CAML repeating table to push updates to Sharepoint List</title><link>https://www.infopathdev.com:443/forums/thread/64400.aspx</link><pubDate>Mon, 21 Feb 2011 20:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64400</guid><dc:creator>Anderson10</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=64400</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:8pt;"&gt;&lt;/span&gt;
&lt;p&gt;See below..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>