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

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

Recommended Posts

Posted

I'm running a FM back end with a relationship to an external MySQL table, in this case users_mysql. Is there a way to trigger a FM script whenever a new MySQL user record is created?

All I've been able to think of is to have a get( found count) field and then run this throughout the day:

If $$recordCount < $currentRecordCount and run the script if it's true.

Thanks for any thoughts...

Posted

I'm not an expert in MySQL but, as you haven't yet received a reply, I'll do my best. There are triggers in MySQL. These are bits of code that are triggered when an event occurs. Your event would be new record creation. It says here:

http://dev.mysql.com/doc/refman/5.0/en/faqs-triggers.html

that triggers can now call stored procedures or external applications so this would be a way of achieving what you want to do. You could do it via a Python or Perl script as I'm pretty sure these languages have an interface to both mySQL and to Filemaker. Maybe there is a direct way to call an FM script from within mySQL?

Posted

I am actually. You 're obviously considerably more knowledgeable on this topic than I, but how does that make any difference if FM is not seeing the record unless I run some kind of timed script?

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