Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to figure out a way to test a record for modification.

I have a record that contains perhaps 20 fields, including an auto enter Modification date timestamp field. What I wanted to be able to do was check the timestamp. If the record was modified from when they entered it, give them an option to save it or revert the changes to what existed when they got there. I can't seem to get it to tell me if the record was modified, or if it was, to be able to revert the record to what was there before the user entered the record. Is there an easy way to do this?

Thanks,

Mike

Posted

If the record has been modified then you cannot revert the record. The last modification has taken place and the previous record state is now the current. FM does not hold historical data like this.

Posted

When reading about the revert record script step, if you have not left the record or committed the record, it says it should be revert-able. Am I understanding that incorrectly?

Also, with the modify timestamp field, won't the contents change only when the contents of a field has been modified on the record?

Ideally if I can't revert, I'd still like to know if a change has actually been made to the file, and if so, perform and action via a script.

Posted

Do a search for Audit, or +Field +Modification and you will find a lot of information about this.

Take a look at this file SuperAudit

HTH

Lee

Posted

You can also look into FM Dataguard.

http://www.worldsync.com/fmdataguard/faq.html

Posted

While audit trail methods seem to be what I need, I work for a notoriously cheap department who want things free, and done yesterday. Some of the audit trails methods are free, but are going to require me to create complex calculations based on the fields in the database. Looks like that will have to be a phase 2 of the project, as I would not be able to implement by end of week for testing.

Oh well, at least it puts me in the area I need to look.

Thanks all......

Posted

Well I had 1 idea but it didn't work out...

2nd idea is if there aren't to many fields set up a duplicate table..

Start in table1 all fields locked

Export (or something) to table2 matching fields

If commit - export back to table1

If revert clear fields return to table 1

3rd idea.... although not the best way what about opening the file via FMP Instant Web Publishing? As I recall when playing with it it did have the ability to revert and commit.

Wish I had time to play but I have to drive 3 hrs. to install some cabinets.

Oh Joy!

Posted

Mike

check out Matt Petrowsky Suoer Audit Trail. For a subscription of $29.95 for three months. His is as ready to go as they come out of the box. You get to watch a video of how it works .

Hope this helps

Posted (edited)

Actually, that one is Free for the taking. Link

BTW, it also includes a link to the File I link in my last Reply.

Lee

[color:red]Update

You might be correct, I tried to download it and it won't let me unless I log in. Also the previous Audit Modification technique is also locked, I'm not sure that this is what Matt wants, so I'll drop him a note and see what he has to say.

Edited by Guest
  • Newbies
Posted

You could write a script to duplicate a given record, then delete the altered record if the changes are no longer required - or delete the duplicate if they are - if that makes sense!

This topic is 5893 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.