1 Reply Latest reply on Jul 22, 2014 9:15 AM by Scott Corbett

    Edit Rule

    ravi Expert

      Hi Team,

       

      Could anyone provide me the syntax for using Changes parameters in the edit rule?

       

      The parameters for an edit rule are (User,Approvable,Fileds,Changes).According to definition (Changes is Vector of changes apply to fields parameter).How we need to use Changes in the EditRule?

       

      Thanks,

      Ravi.

        • Re: Edit Rule
          Scott Corbett Master

          Not sure why, but this is not documented by Ariba. "changes" is a vector of type LogEntry. LogEntry unfortunately is not documented in the JavaDocs. But you can look at the methods within your development tool (Eclipse or something like it).

           

          In Java code, I iterated through the list of changes and ran logic based on a fieldName


          change.

          fieldName.equals("Amount")

           

          You can get the old value and compare to new, etc.