Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to Set a "Is Modified" flag

Featured Replies

Hi there,

 

I've spent some time researching this and also trying different combinations, but just can't seem to work out how to do this easily.

 

I have a table with around 93 different fields.

 

I need to be able set a flag on a record when any fields in that record are modified. ie have a IsModified field.

 

Then I need to be able to reset that field once the data has been exported.

 

The obvious issue is that simply resetting the IsModified field is a modification so I can never seem reset it.

 

I have looked at the option of using the trigger function in a calculation - That works BUT I'm concerned that as we add further fields in the future it would be quite easy to forget to update the IsModified calculation to include the new field.

 

Basically I'm looking for a way to do this so that it doesn't have to be updated each time the table is modified.

 

Does anyone have any suggestions or resources I can follow up on how to implement this?

Instead of resetting the LastModified field, set a LastExported field to the current date/timestamp. Then if =

LastModified > LastExported

you will know that the record has been modified since the last export.

 

 

I have a table with around 93 different fields.

 

I have a hunch you need to re-examine your structure. What kind of entity has 93 attributes that need tracking?

  • Author

Thanks for the suggestion. That would make it much easier!

 

 

 

What kind of entity has 93 attributes that need tracking?

 

It's a product table - Filemaker acts as a central repository for our products and data is exported to 3 different systems that all have different table / field structures.

 

Between the fields in each separate table and various calc fields etc, the number of fields has grown...

It's a product table - Filemaker acts as a central repository for our products and data is exported to 3 different systems that all have different table / field structures.

 

I am not sure what exactly that means. Unless the main purpose of your solution is to serve the other systems, I would suggest you do not let their data structures affect your own. Instead, look into XML/XSLT export that allows you to transform the data during exporting.

  • Author

Basically, we create new products in Filemaker, then export the data from filemaker into 3 different systems.

 

Each system has different fields. We need to export to csv files with specific header text, since we are running on a shared filemaker server (ie no access to the file system) I can't export from one table to another on the server. so I keep all the data in calculated fields and use it when exporting each external.

 

I'm sure there are better ways of managing this though... i should do some research on how to optimise this one day.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.