<?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: Store Data for Offline Use</title><link>https://www.infopathdev.com:443/forums/thread/3592.aspx</link><pubDate>Wed, 04 Apr 2007 17:50:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3592</guid><dc:creator>BanGotti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3592.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3592</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I have used the code of the how to:&lt;br /&gt;&lt;br /&gt;Allow Offline Use of a SharePoint List by Caching Locally&lt;br /&gt;&lt;br /&gt;But I have a problem, when I disconnect my computer, my form uses the same data than the in the first xml file. But when I reconnect it, I have the updated data.&lt;br /&gt;&lt;br /&gt;However, logiccaly, when offline, I should see the latest updated data. But it does not, any idea why?&lt;br /&gt;&lt;br /&gt;Here is the code (which is the same actually, than in the how to):&lt;br /&gt;&lt;br /&gt;	try{&lt;br /&gt;   // Avoid DOM updates when the document has been digitally signed.&lt;br /&gt;   XDocument.DataObjects["MQuestDataIn"].Query();&lt;br /&gt;	&lt;br /&gt;	 // Get the ShareList DOM&lt;br /&gt;	  var oDataIn = XDocument.GetDOM("MQuestDataIn" );&lt;br /&gt;	  &lt;br /&gt;	 // Setup the Namespaces   &lt;br /&gt;oDataIn.setProperty("SelectionNamespaces",'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:tns="http://tempuri.org/"' );&lt;br /&gt; // Get the local DOM - to does not use namespaces&lt;br /&gt; &lt;br /&gt; var oLocalDom = XDocument.GetDOM( "Local Productys" );&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; // Get a sample cached list node that we will need to clone later&lt;br /&gt;   var nSampleProductNode = oLocalDom.selectSingleNode( "/CachedList/Products/Product");&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; // Remove all of the items from the local copy of the list&lt;br /&gt;oLocalDom.selectNodes( "/CachedList/Products/Product" ).removeAll();&lt;br /&gt;&lt;br /&gt; // Loop through all of the items in the Web Service List&lt;br /&gt; var nlSharedItems = oDataIn.selectNodes( "/dfs:myFields/dfs:dataFields/tns:MQuestDataInResponse/tns:MQuestDataInResult/OdsChaudiaires/chaudiaires" );&lt;br /&gt; &lt;br /&gt;	 while( (nSharedItem = nlSharedItems.nextNode() ) != null )    &lt;br /&gt;	{        &lt;br /&gt;	// Create a new row from the sample        &lt;br /&gt;	var nNewLocalCacheRow = nSampleProductNode.cloneNode(true);&lt;br /&gt;&lt;br /&gt;	  // Set the values       &lt;br /&gt;	nNewLocalCacheRow.selectSingleNode( "@ID" ).text = nSharedItem.selectSingleNode( "IDTYPECHAUDIAIRE" ).text;        &lt;br /&gt;	nNewLocalCacheRow.selectSingleNode( "@Name" ).text = nSharedItem.selectSingleNode( "NOMCOMBUSTIBLE" ).text;       &lt;br /&gt;	nNewLocalCacheRow.selectSingleNode( "@Description" ).text = nSharedItem.selectSingleNode( "NOMCOMBUSTIBLE" ).text;&lt;br /&gt;&lt;br /&gt;	  // Append to to our local cached list&lt;br /&gt;	  oLocalDom.selectSingleNode( "/CachedList/Products" ).appendChild( nNewLocalCacheRow );   &lt;br /&gt;&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;catch(e)&lt;br /&gt;{   &lt;br /&gt;&lt;br /&gt;// Uncomment this line for more debug information    &lt;br /&gt;//XDocument.UI.Alert( e.description );&lt;br /&gt;// Tell the user that they must be connected to the Internet to use this feature.    &lt;br /&gt;XDocument.UI.Alert( "Vous devez être connecté pour avoir la version updatée des données.");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Store Data for Offline Use</title><link>https://www.infopathdev.com:443/forums/thread/3591.aspx</link><pubDate>Thu, 15 Mar 2007 19:15:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3591</guid><dc:creator>Vastedge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3591.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3591</wfw:commentRss><description>This code works great except when I have a field that is blank in my SharePoint List. (i.e. Address 2, Address 3, etc.) I get the following error:&lt;br /&gt;&lt;br /&gt;TypeError: -2146827864: Object Required&lt;br /&gt;&lt;br /&gt;Can anyone help please?</description></item><item><title>Re: Store Data for Offline Use</title><link>https://www.infopathdev.com:443/forums/thread/3590.aspx</link><pubDate>Sat, 02 Dec 2006 05:32:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3590</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3590</wfw:commentRss><description>Hi mschmit,&lt;br /&gt;Go through this thread, hope it helps you!&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=3b9d4d677daf4ef18d8e93d0cd188194&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=3b9d4d677daf4ef18d8e93d0cd188194&lt;/a&gt;&lt;br /&gt;</description></item><item><title>Store Data for Offline Use</title><link>https://www.infopathdev.com:443/forums/thread/1701.aspx</link><pubDate>Fri, 01 Dec 2006 21:36:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1701</guid><dc:creator>mschmit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1701</wfw:commentRss><description>Currently I have a form where I collect data from an sql call and populate a bunch of drop-downs. The issue is that when I take the form offline, the drop-downs don't populate because I don't have access to the database. Hence, I'm trying to figure out how to store the data retrieved in the background xml file. Is this possible? Does anyone have a good example of this? Thanks!</description></item></channel></rss>