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

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

Recommended Posts

  • Newbies
Posted

I was wondering if anyone could tell me a way to get a script to run automatically after a field gets modified.

The script is designed to look-up a value in a different record in the same table and paste that value into the new record.

Cheers!

  • Newbies
Posted

Thanks!

I went and got the EventScript plug-in and am trying to get it to do want I want... However, I'm confused as to what the "Get(FileName)" part of the script is supposed to be doing.

Is it something I leave blank if the data is in the file that I am running the script it?

Cheers!

Posted

However, I'm confused as to what the "Get(FileName)" part of the script is supposed to be doing.

I guess you mean, "part of the calculation" ?

If so, the Get(FileName) part is the built-in function of FileMaker that returns the name of the current file.

You can also use an hard-coded 'absolute filename' as per example "YourDatabase.fp7" but if someone is later renaming the file, then the trigger won't be fired anymore.

The parameters accepted by EventScript are :

1. The name of the file where the target-script is placed

2. The exact name of the target-script itself

3. The optional script parameters if you want to run this target-script with special parameters.

Each of the EventScript parameters can also be provided through the content of predefined fields. This is the 'relative' approach.

HTH

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