Version History - InfoPath Dev
in

InfoPath Dev

Version History

Last post 08-10-2006 08:07 AM by anotherchrisberry. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 08-07-2006 05:34 AM

    • IamJunk
    • Not Ranked
    • Joined on 08-07-2006
    • India
    • Posts 3

    Version History

    Hi,

    I've an InfoPath 2003 form published to a SharePoint portal.
    I now have a requirement to fetch the change history (stored in the SharePoint using Versions) and display it on the screen.

    How do we fetch the version history from SharePoint?
    Any pointers in this regard are welcome.

    Best Regards,
    Sidhu
  • 08-07-2006 12:17 PM In reply to

    Welcome to our forum!

    In the Form Library on WSS where the forms are stored, hover over the hyperlink name. A dropdown will appear. Click the dropdown arrow and you will see an option for "Version History".
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-07-2006 09:33 PM In reply to

    • IamJunk
    • Not Ranked
    • Joined on 08-07-2006
    • India
    • Posts 3
    Thanks for the reply,

    I wanted to the same thing programmatically :-) and obtain the XML files into my program

    Best Regards,
    Sidhu
  • 08-07-2006 09:48 PM In reply to

    Ah! That I don't know how to do. The SharePoint SDK might have information on how the versions are exposed. Many things on SharePoint are exposed through web services. That means that if you can figure out the web service parameters (GUIDs usually) then you can connect using InfoPath's web service data connection.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-08-2006 02:51 AM In reply to

    • IamJunk
    • Not Ranked
    • Joined on 08-07-2006
    • India
    • Posts 3
    Thanks Shiraz
  • 08-09-2006 10:39 AM In reply to

    Glad to help. :)
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 08-10-2006 08:07 AM In reply to

    I've done this before, to an extent. What information do you need on the version history?

    Do you need to display it within the Infopath form?

    Here's basically what I've done:
    Create a repeating section called "Version_History" or something like that in the form.
    In the form's onload event, try this:
    ==============
    objOldSource = new ActiveXObject("Msxml2.DOMDocument.5.0");
    objOldSource.async = false;
    verString = "http://[your sharepoint site url]/_vti_history/1/[form_library_name]/[form_name.xml]"

    for (var x = 2; objOldSource.load(verString); x++)
    {
    thisFormRoot = objOldSource.selectSingleNode("//[rootName]");
    [process data and insert it into the current form]
    verString = "http://[your sharepoint site url]/_vti_history/"+x+"/[form_library_name]/[form_name.xml]"
    }
    The for loop exits when all the old versions have been loaded. It's not lightning-quick, but it works...
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.