<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/10853.aspx</link><pubDate>Wed, 10 Jan 2007 00:54:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10853</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10853.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10853</wfw:commentRss><description>Sorry-no way using this forum software to do that. We can lock the post, but others sometimes have similar issues and use the same post to continue the conversation.</description></item><item><title>Re: Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/10852.aspx</link><pubDate>Tue, 09 Jan 2007 10:21:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10852</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10852</wfw:commentRss><description>Hi Greg,&lt;br /&gt;I have still a little issue in relation with the deactivation of Save-Menu and button. I have send a new post for it. See&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=4058&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=4058&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So you can consider, that this problem is solved. &lt;br /&gt;&lt;br /&gt;By the way, isn't it possible to set the status of the post to "solved" or something like that? It would simplify the search inside the forum.&lt;br /&gt;Best regards.&lt;br /&gt;Philippe&lt;br /&gt;</description></item><item><title>Re: Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/10851.aspx</link><pubDate>Fri, 05 Jan 2007 00:17:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10851</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10851</wfw:commentRss><description>So is your problem solved now, or is there something else that still isn't working right with this?</description></item><item><title>Re: Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/10850.aspx</link><pubDate>Thu, 04 Jan 2007 08:40:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10850</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10850.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10850</wfw:commentRss><description>Hi Shilpa,&lt;br /&gt;Thanks for your answer.&lt;br /&gt;&lt;br /&gt;You're right. SetDirty is no use in the Onload event handler. I have searched and realized why it was not working for one of my form template. "Save and Save As" was not selected in the form options.&lt;br /&gt;&lt;br /&gt;What I will do now is setting "Save and Save As" in the form options and deactivate the Save menu and button (with CommandBars object) to avoid, that user save the form in another location. &lt;br /&gt;&lt;br /&gt;I have realized that signatures are not considered as modification before closing, and the form could be not saved. I've put the SetDirty function in the OnSign event handler and it works. &lt;br /&gt;&lt;br /&gt;I don't use the OnSaveRequest because I need the Save() ans SaveAs() functions. These functions seem not to be working with this event handler.&lt;br /&gt;&lt;br /&gt;Best regards.&lt;br /&gt;Philippe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/10849.aspx</link><pubDate>Wed, 03 Jan 2007 13:18:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10849</guid><dc:creator>Shilpa Pitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10849</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I think we have  to call XDocument.SetDirty  method only in OnSubmitRequest and OnSaveRequest and try to call  this methods only instead of Onload event handler and it will work for you&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Problem with XDocument.SetDirty(true)</title><link>https://www.infopathdev.com:443/forums/thread/5992.aspx</link><pubDate>Wed, 03 Jan 2007 12:34:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5992</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5992</wfw:commentRss><description>Hi,&lt;br /&gt;To keep sure, that the user save every change in a form, also by leaving with the red close-button, I have put the following instruction in the OnLoad event handler (JScript):&lt;br /&gt;&lt;br /&gt;XDocument.SetDirty(true);&lt;br /&gt;&lt;br /&gt;It works with one form template, but not in another one. Does anybody understand the problem? For the both templates, the forms are saved in SharePoint.&lt;br /&gt;&lt;br /&gt;Thanks for your help.&lt;br /&gt;&lt;br /&gt;Philippe</description></item></channel></rss>