Business rules script

IDE : Delphi XE8
Version : 9.7.115.1441 Server Edition

Function “beforeProcessDeltaChange”

I am trying to keep history changes to database records.
To verify modification i use this code.

//Example
if (change.isUpdate == true) {
   var I = 0;    		
   for (I = 0; I < change.count; I++) {
         log(change.OldValues[I] +' - '+ change.NewValues[I]);
   }			
}	

But i need the field name, is any function to get the field name ?

Another question is any example how to use the funtion getField ?
I want to ignore datetime field.

Regards!

hi,

you can grab this from delta object and process it in loop like

   for (I = 0; I < delta.fieldCount; I++) {
         log("["+i+"].name="+delta.getField(I).name);
        // log("["+i+"].index='"+delta.getField(I).index);
         log("["+i+"].type="+delta.getField(I).type);
   }			

Thank you !