<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17387.aspx</link><pubDate>Tue, 05 Sep 2006 19:54:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17387</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17387</wfw:commentRss><description>What is the function that the code is in? Is it OnAfterChange or OnSubmitRequest? I think the SPListItem dereference may be bad. Not sure about the syntax but ["Status] seems bad. And, the list items can't be set to strings since they are objects. Do you have the SharePoint SDK? &lt;br /&gt;&lt;br /&gt;If you'd like, we can spend a couple hours and fix this for you. Go to our store at the www.qdabra.com site and send us some money and the XSN and we'll work on it.</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17386.aspx</link><pubDate>Tue, 05 Sep 2006 19:06:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17386</guid><dc:creator>Christiane</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17386</wfw:commentRss><description>&lt;br /&gt;Hi again,&lt;br /&gt;&lt;br /&gt;Here is my code Patrick:&lt;br /&gt;&lt;br /&gt;oXmlHttp.Open("DELETE", strUrl, false);&lt;br /&gt;oXmlHttp.Open("PUT", strUrl, false);&lt;br /&gt;           &lt;br /&gt;oXmlHttp.Send(XDocument.DOM.xml);&lt;br /&gt;			&lt;br /&gt;SPListItem["Status"] = "To be Approved";&lt;br /&gt;SPListItem.Update();&lt;br /&gt;&lt;br /&gt;Do I need to define any variables because it is not working :(&lt;br /&gt;The form is saved but without the Status.&lt;br /&gt;The status field from my SharePoint site stays empty...&lt;br /&gt;&lt;br /&gt;Thank you for any help.</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17385.aspx</link><pubDate>Tue, 05 Sep 2006 18:20:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17385</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17385</wfw:commentRss><description>Hi again Christiane,&lt;br /&gt;No, it's easy to update. We do this too for several projects. Do you have the signature on the section or the entire DOM? Maybe you aren't using per-section signatures even though you mentioned that above. I'd check on that. You'll want to use the OnSubmit event handler to get the SPListItem after submitting and then modifying the form with that. After which, you'll need to submit again using code. Jscript shouldn't be too hard.</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17384.aspx</link><pubDate>Tue, 05 Sep 2006 18:12:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17384</guid><dc:creator>Christiane</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17384</wfw:commentRss><description>Thanks for your Reply Patrick.&lt;br /&gt;&lt;br /&gt;But my status field is outside the signed section.&lt;br /&gt;&lt;br /&gt;But because signature node afterupdate event handler, DOM is read-only??&lt;br /&gt;&lt;br /&gt;I am now thinking of updating the sharepoint status field with SPListItem.&lt;br /&gt;&lt;br /&gt;Is that complicated?&lt;br /&gt;&lt;br /&gt;Can I do it in Jscript?&lt;br /&gt;&lt;br /&gt;Thanks.</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17383.aspx</link><pubDate>Tue, 05 Sep 2006 17:28:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17383</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17383</wfw:commentRss><description>Hi Christiane,&lt;br /&gt;You'll want to move the field outside of the signed section. If the field is in the section and you sign it, you can't change it. That is the design. Otherwise, the signature wouldn't mean anything - if people could change it after signing. You could also set the form up to do counter sign which allows signatures on top of signatures. Good luck.</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17382.aspx</link><pubDate>Tue, 05 Sep 2006 15:44:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17382</guid><dc:creator>Christiane</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17382.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17382</wfw:commentRss><description>HI,&lt;br /&gt;&lt;br /&gt;I am trying to set a field value in my infopath form, but I can't I get the message, DOM is read-only.&lt;br /&gt;&lt;br /&gt;I was wondering how I could restore to not read-only.&lt;br /&gt;&lt;br /&gt;After a section is signed, I use the signature node to send email (that works fine) but I also want to change the status of the field to "Pending Approval".  But I cant't!!!&lt;br /&gt;&lt;br /&gt;I don't want to put a rule on a button.&lt;br /&gt;&lt;br /&gt;Thanks for any reply.&lt;br /&gt;&lt;br /&gt;Christiane</description></item><item><title>Re: How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/17381.aspx</link><pubDate>Thu, 31 Aug 2006 07:14:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17381</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17381</wfw:commentRss><description>Hi Christiane,&lt;br /&gt;Can you give me some context? Where did you read about "restoring to global state"? What are you trying to do? Thanks!</description></item><item><title>How do you restore to global state???</title><link>https://www.infopathdev.com:443/forums/thread/16847.aspx</link><pubDate>Thu, 24 Aug 2006 18:35:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16847</guid><dc:creator>Christiane</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16847.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16847</wfw:commentRss><description>What does restoring to global state mean.&lt;br /&gt;&lt;br /&gt;And how can you do it?</description></item></channel></rss>