InfoPath 2007 XmlFormHostItem Dirty - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath 2007 XmlFormHostItem Dirty

Last post 07-13-2011 12:15 AM by michaelr524. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-12-2011 07:14 AM

    InfoPath 2007 XmlFormHostItem Dirty

    Hi, I've created a C# class library project containing functionality common between forms. I pass there the current form 'this' (XmlFormHostItem) object. Problem is the 'Dirty' property is not available for some reason in the class library project. It is available from the form project (FormCode.cs). Does anyone know how this stuff supposed to work? Thanks, Michael
    Filed under: ,
  • 07-12-2011 04:32 PM In reply to

    Re: InfoPath 2007 XmlFormHostItem Dirty

    You should be able to use our qRules product to return the IsDirty value:

    http://www.qdabra.com/en/products/qRules_new.aspx

    IsDirty is one of the commands you have access to.

    Ted

  • 07-12-2011 10:58 PM In reply to

    Re: InfoPath 2007 XmlFormHostItem Dirty

    Hi Ted, I will consider that. In the mean time I already found a workaround but it's kinda "Dirty" :) formObject.GetType().GetProperty("Dirty").GetValue(formObject, null); Isn't it strange I can't access it the normal way? Thanks Michae
  • 07-13-2011 12:02 AM In reply to

    Re: InfoPath 2007 XmlFormHostItem Dirty

    It could be a problem with your DLL reference.  There are two versions of the InfoPath 2007 OM, one for browser forms, and one for client forms.  It sounds like you're referencing the browser version.

    My MSTA shows the browser version existing at

    C:\Program Files\Microsoft Office\Office12\InfoPathOM\Microsoft.Office.Infopath.dll

    and the client version at

    C:\Windows\assembly\GAC_MSIL\Microsoft.Office.InfoPath\12.0.0.0__71e9bce111e9429c\Microsoft.Office.InfoPath.dll

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 07-13-2011 12:15 AM In reply to

    Re: InfoPath 2007 XmlFormHostItem Dirty

    Thanks Jimmy!! You've spotted it again.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.