1 Reply Latest reply: Feb 26, 2014 1:38 AM by Cvele_new_account RSS

    How to change date when record modified

    phaivv

      I have a table Student : StudentID, StudentName, Create_Date (use : adf.currentDate in entity) , Update_Date (adf.currentDate)

      When create new record for Student, example:

      StudentID                StudentName              

      1                                   AAA               

      After commit ---> we will insert into table db

      StudentID                StudentName               Create_Date       Update_Date

      1                                   AAA                        2/25/2014             2/25/2014.

       

      Ok, now when i edit this record...Example:

      StudentID                StudentName              

      1                                   BBB.

      ---> records will change

      StudentID                StudentName               Create_Date       Update_Date

      1                                   BBB                       2/25/2014             2/26/2014

       

      The column Update_Date will change.