<?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: Get and save Sharepoint data into form template</title><link>https://www.infopathdev.com:443/forums/thread/4291.aspx</link><pubDate>Wed, 21 Mar 2007 15:53:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4291</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4291.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4291</wfw:commentRss><description>Hi Tom,&lt;br /&gt;&lt;br /&gt;Here are some examples of how to do it in the OnLoad event.  I don't think there is any way to loop through the rows in rules.&lt;br /&gt;&lt;br /&gt;IXMLDOMNodeList nodes = thisXDocument.DOM.selectNodes("/XPath/To/Nodes");&lt;br /&gt;foreach (IXMLDOMNode node in nodes)&lt;br /&gt;{&lt;br /&gt;    //perform operations on node, such as moving to a different DOM&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///////////////////&lt;br /&gt;&lt;br /&gt;IXMLDOMNodeList nodes = thisXDocument.DOM.selectNodes("/XPath/To/Nodes");&lt;br /&gt;IXMLDOMNode node;&lt;br /&gt;while ((node = nodes.nextNode()) != null)&lt;br /&gt;{&lt;br /&gt;    //perform operations on node, such as moving to a different DOM&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have always used the second one.</description></item><item><title>Re: Get and save Sharepoint data into form template</title><link>https://www.infopathdev.com:443/forums/thread/4290.aspx</link><pubDate>Wed, 21 Mar 2007 10:29:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4290</guid><dc:creator>pluto007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4290</wfw:commentRss><description>Hi Patrick - thanks for quick reply!&lt;br /&gt;&lt;br /&gt;Have tried rules on open and it works almost perfect... Problem: the rule that copies values from the table with 2DC to group in Main Source includes only the first row. How can I make the rule go trough every row in the table and copy all rows? The table is a repeating table that can contain x number of rows and I need tp copy all of them. The same will also be necessary when opening the form the second time (copy all rows from the Mian Data source group back to the repeating table in the form (overwrite the data from the 2DC data)).&lt;br /&gt;&lt;br /&gt;Hope this make sense...&lt;br /&gt;Regards,&lt;br /&gt;Tom Gullberg</description></item><item><title>Re: Get and save Sharepoint data into form template</title><link>https://www.infopathdev.com:443/forums/thread/4289.aspx</link><pubDate>Tue, 20 Mar 2007 22:20:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4289</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4289.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4289</wfw:commentRss><description>Hi Tom and welcome to our forum!&lt;br /&gt;You can add a data connection which queries the document library on load if it is the first time opening. To do this without writing code add a boolean node to your main data source called "IsNew". Use that node in the condition for the open rule. To define an open rule, go to Tools-&amp;gt;Form Options-&amp;gt;Advanced (InfoPath 2003). You can add another rule that copies the values from the SharePoint list/document library into the main data source so that you can show it after the form was opened the second time. You should be able to do this without any code since the doc library view should be "connectable" just like a regular SharePoint list, but I haven't done this recently. Anyway, good luck!</description></item><item><title>Get and save Sharepoint data into form template</title><link>https://www.infopathdev.com:443/forums/thread/1924.aspx</link><pubDate>Tue, 20 Mar 2007 21:40:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1924</guid><dc:creator>pluto007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1924</wfw:commentRss><description>Hi all, I need assistance on the following scenario:&lt;br /&gt;&lt;br /&gt;I populate data from a SPS2 doc library view (sorted and filtered) to a repeating table in a Infopath form template. The 2ds is defined as XML file type.&lt;br /&gt;&lt;br /&gt;I want two things to work:&lt;br /&gt;1. When a new form template is opened by a user in SPS2 Form Library (where my form template is published) the table should get updated data from the SPS2 Doc Library view&lt;br /&gt;2. When the form is completed it should be saved with all data so it can be opened later without populating new data into the repeating table&lt;br /&gt;&lt;br /&gt;Here's the problem: how can avoid saved forms from replacing already saved data in the table when they are opened again (and the SPS2 Doc Lib data is changed)? Cathc22??? Is it possible to combine the two scenarios in a simple way in InfoPath?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Tom Gullberg&lt;br /&gt;'Sharepint' all the way...</description></item></channel></rss>