2 Replies Latest reply on Nov 8, 2013 8:14 AM by SteveKeiser

    Edit log



      Edit log


           I'm creating a log which will track edits. I can't figure out how to grab the information from the currently selected field. I know I can create a separate script to do so for each field, but I am trying to create a script that will work for any field. Any ideas?

        • 1. Re: Edit log

               Set up each field with the OnObjectEnter trigger to do something like this:

               Set Variable [$$OrigValue ; value: Get ( ScriptParameter ) ]

               Put the field to be entered in the script parameter box for the script trigger.

               OnObjectSave can then be used to capture the field name and can log both it and the value of $$OrigValue in a table or a list of values in a global variables. (By building lists of data in global variables, the OnCommitRecord trigger can run a script to log all the data into a log table as a single entry.)

          • 2. Re: Edit log

                 I had previously seen about using optional script parameters, but had never had occasion to do that, so forgot about it. Thanks so much for providing a solution. It works!!