Jump to content

This topic is 8225 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, I'm trying to define a calculation field that will count the number of times another field is modified. For example if field "Trigger" is modified, field "Counter" is incremented by 1. Any ideas?

Thanks - Grahame.

Posted

There's also the self-modifying field trick which uses a self-join relationship, a calculated field and a look-up field to update whenever a change is made.

Posted

quote:

Originally posted by Grahame:

Hi, I'm trying to define a calculation field that will count the number of times another field is modified. For example if field "Trigger" is modified, field "Counter" is incremented by 1. Any ideas?

Either control editing of that field via scripting or use one of the various script scheduling plug-ins (Azium Events or Troi Activator) to run a script that does the incrementation after you exit from that field.

  • 1 year later...
Posted

I am not incrementing the counter, there is the function:

Status (CurrentRecordModificationCount) The number of times changes to the current record have been committed.

Copyright

Posted

cool.gif

Hello Grahame,

You can do this by creating a 'log' field to keep track of every change to the field. Then create a 'count' field to count the number of items in the 'log' field:

"LogField" (calc, text result)

<< GetField("LogField") & GetField("DataField") & "

This topic is 8225 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.