Track History Information Audit Trail - InfoPath Dev
in

InfoPath Dev

Track History Information Audit Trail

Last post 09-26-2006 10:35 PM by rajthayi. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-24-2006 11:24 PM

    Track History Information Audit Trail

    I have a field called Assigned To and Assigned Date as fields in a form. And i have a repeating group Workflowhistories->WorkflowHistory(HistoryAssignedTo, HistoryAssignedDate)

    When ever there is a change in Assigned To and Assigned Date , I want the changes stored in the HistoryAssignedTo, HistoryAssignedDate.

    Kind of keeping track of the changes. Like Audit Trail.

    Is there some code there to do this.

    What will be the best design to implement this.

    Appreciate any help.
  • 09-25-2006 12:07 AM In reply to

    Re: Track History Information Audit Trail

    Hi

    View the following link.i hope this will help You.

    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2994&SearchTerms=History
    Madhuri
    http://www.ggktech.com
  • 09-25-2006 12:09 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Track History Information Audit Trail

    Hi rajthayi,

    You need to write one function in Onload to maintain history like audit trial. This function every time adds the WorkFlowHistory node.

    AddWorkFlowHistoryNode()
    {
    //Get the first work flow history node
    IXMLDOMNode previousWorkFlowHistoryNode = thisXDocument.DOM.selectSingleNode("my:myFields/my:WorkFlowHistories/my:WorkFlowHistory[1]");

    //Get the work flow history node form sample data.
    //You need to write code form this function to get the empty WorkFlowHistory node from Sample Data.
    IXMLDOMNode workFlowHistoryNode = GetNodeFromSampleData("my:myFields/my:WorkFlowHistories/my:WorkFlowHistory");

    //If You want to set the ‘Assigned To#%92 and ‘Assigned Date#%92 field values to ‘workFlowHistoryNode#%92 before inserting this node to WorkFlowHistoryNode.

    previousWorkFlowHistoryNode.insertBefore(workFlowHistoryNode, previousWorkFlowHistoryNode);
    }
  • 09-25-2006 04:47 PM In reply to

    Re: Track History Information Audit Trail

    Hi Rajthayi and welcome to our forum,
    Madhuri and Shiva's replies are a good start. Audit Trails are also covered in Chapter 10 of our book - Developing Solutions with InfoPath. Our Database Accelerator suite includes Audit Trail support out of the box. Send me e-mail if you want more informaiton.
    Patrick Halstead
    Project Manager at Qdabra
  • 09-26-2006 10:35 PM In reply to

    Re: Track History Information Audit Trail

    I did purchase the book that you mentioned. I will look at the example and try to implement this feature.

    Thanks for your prompt response and help.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.