<?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: Submitting using field values</title><link>https://www.infopathdev.com:443/forums/thread/9461.aspx</link><pubDate>Tue, 04 Apr 2006 18:25:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9461</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9461</wfw:commentRss><description>One other thing ... When I have the "Stop processing when this Rule finished" unchecked, the View switches but the error appears "Some rules did not finish processing" and then the app closes.  I assume that's because it's continuing to try and process the second rule, which is Submit.</description></item><item><title>Re: Submitting using field values</title><link>https://www.infopathdev.com:443/forums/thread/9460.aspx</link><pubDate>Tue, 04 Apr 2006 18:17:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9460</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9460</wfw:commentRss><description>So, here's what I'm trying:&lt;br /&gt;&lt;br /&gt;1) I added a text field for "OrigDate".  I've hidden it by making the font color and borders white.&lt;br /&gt;2) I added a Rule that sets OrigDate to FormDate if OrigDate is blank.  That should happen the first time the form is used.&lt;br /&gt;3) My submit action runs a rule that checks if OrigDate=FormDate.  If it does, it switches to a view where an option button is displayed.  Option 1 is Overwrite original. Option 2 displays the value of FormDate and lets the user change it.  There is also a Submit button on this view that does the same thing as the other view's Submit button.&lt;br /&gt;&lt;br /&gt;So far so good, except for one minor glitch.  During the Submit process two rules are run in this order:&lt;br /&gt;&lt;br /&gt;1.  Check Date (OrigDate=FormDate) (If true, switch Views)&lt;br /&gt;2.  Submit.&lt;br /&gt;&lt;br /&gt;The problem is if Rule 1 is true, the views aren't switched, the form just closes.  If I try and check the "Stop processing after this rule finishes," the form also closes.  &lt;br /&gt;&lt;br /&gt;BTW, there is also code that closes InfoPath at the end.  I assume code is always processed after Rules.&lt;br /&gt;&lt;br /&gt;How do I get Rule 1 to switch views and stop?  It's almost like the stop function interferes with the View being shown.</description></item><item><title>Re: Submitting using field values</title><link>https://www.infopathdev.com:443/forums/thread/9459.aspx</link><pubDate>Tue, 04 Apr 2006 15:23:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9459</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9459.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9459</wfw:commentRss><description>Yeap, that thread was useful for getting the message box, but I'm missing all the checking conditions; i.e., if the filename of the record in the Sharepoint list already exists. &lt;br /&gt;&lt;br /&gt;Does submit use the "Save" methods?  I thought those were restricted to save operations.&lt;br /&gt;&lt;br /&gt;On thinking through the requirements further, here's what I would like to happen:&lt;br /&gt;&lt;br /&gt;1)  On Submit, if the date is the same as it was when the form was first filled out, then present a "Do you want to overwrite?" message box.  If they say no, the user needs to change the date.&lt;br /&gt;&lt;br /&gt;How do I establish whether that date has changed?  The IsDirty property seems to apply to the XDocument object, not a specific field within the document.&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Submitting using field values</title><link>https://www.infopathdev.com:443/forums/thread/9458.aspx</link><pubDate>Mon, 03 Apr 2006 21:28:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9458</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9458</wfw:commentRss><description>Was this thread not useful?&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=2030&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=2030&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;With this if the user clicks "OK" then you will just overwrite the form, if they click "Cancel", you could generate a new filename and save it as the new filename.&lt;br /&gt;&lt;br /&gt;Take a look at the XDocument.UI.SetSaveAsDialogFileName and XDocument.UI.SetSaveAsDialogLocation methods.&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Submitting using field values</title><link>https://www.infopathdev.com:443/forums/thread/5500.aspx</link><pubDate>Mon, 03 Apr 2006 20:14:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5500</guid><dc:creator>CycleFitness</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5500</wfw:commentRss><description>Hello:&lt;br /&gt;&lt;br /&gt;I have a status report with a Submit data connection that uses this formula:&lt;br /&gt;&lt;br /&gt;concat(concat(Date, "_", txtEmpl)&lt;br /&gt;&lt;br /&gt;That is, the date of the status report followed by the employee's name.  The problem is that I want to allow overwrite so they can modify a previous report, but I don't want their previous report to be overwritten if they use it as the basis for the next status report.  I need a confirm dialog "Are you sure you want to overwrite the form dated x".  I tried adding a formula that checks the date in the form and if it's older than today change the date to today, but that doesn't account for a user creating their status report for last week this week.&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item></channel></rss>