Is the Dirty flag set to False when a form is submitted ? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Is the Dirty flag set to False when a form is submitted ?

Last post 04-25-2008 09:46 AM by Albert. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-25-2008 09:39 AM

    Is the Dirty flag set to False when a form is submitted ?

    I am using Infopath 2007

    I am trying to use the Dirty flag to conditionally show buttons.

    I expected the Dirty flag to be set to False when the form is submitted - but this is not what I am seeing.  

    Is it something I could re-set manually ? or is there another flag to indicate whether something has not been submitted ? 

    Thank you

    Catharine

  • 04-25-2008 09:46 AM In reply to

    • Albert
    • Top 500 Contributor
    • Joined on 04-03-2008
    • The Netherlands
    • Posts 32

    Re: Is the Dirty flag set to False when a form is submitted ?

    I don't know, but according to the documentation:

    XDocument.IsDirty: A read-only property that returns a Boolean value that indicates whether the data in a Microsoft Office InfoPath 2007 form has been modified since it was last saved. Read-only

    So i bet i only changes when you change a field in the maindatasource.

    Good thing there is a SetDirty:
    XDocument.SetDirty(): Sets the IsDirty property on the XDocument object to a Boolean value that indicates whether the data in a Microsoft Office InfoPath 2007 form has been modified since it was last saved.

    Albert

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.