Embedding Drupal in FileMaker

In an earlier post, I cautioned against using FileMaker's ESS feature to bypass application logic in order to write to external SQL databases. This sort of begs the question: If you can't write to it directly, how are we doing any sort of interoperability between FileMaker, Drupal or other systems out there?

In general, if an API exists, that's the logical first choice. Updating a 'student' row directly is not always the same thing as updating the Student over a well understood API. In the case of web applications, we look for REST, SOAP or other kinds of services that let us play nice with the applications security model while practicing safe data-exchange.

In Drupal's case, there are a number of options, notably the Services module and a REST API module that, unfortunately, seems to be lagging in development.

That said, we've been succesful with a different method altogether to get FileMaker to speak Drupalese.

Instead of relying on another module, we bootstrap Drupal inside of FileMaker, effectively running a copy of Drupal locally that connects to a remote Drupal database. The great thing about this is that you instantly have access to the entire Drupal environment. Instead of writing additional XML or JSON files, you can write code that will work as if it were run remotely!

For this, you'll need a the help of a FileMaker PHP plugin. I highly recommend Scodigo's SmartPill plugin. Great stuff. Micah Woods and his team do some amazing work. Cheers!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

+1

Just want to second the motion of using existing API to access an external application. After all, that's what APIs are for ;-) In particular, I'm regularly alarmed by developers wanting to write directly to tables in an external accounting system - something that I'd say 90% of the code monkeys out there (including myself) are unqualified to do.

That being said, there are certainly cases where you are going to want to use the power of ESS to write to a SQL database, though probably only in situations where you are the creator of said database.

My $.02

The other situation where

The other situation where FileMaker's ESS functionality can come in handy, of course, is where you need to repair some messed-up records. You can always look at the records in a web-based application like phpMyAdmin, but FileMaker makes it a lot easier to hand-edit individual records. You can also use it to import a batch of records into a local table on your computer, modify them there and copy them back.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><p><div> <br><img>
  • Lines and paragraphs break automatically.

More information about formatting options

Verification
This question is for testing whether you are a human visitor and to prevent automated spam submissions.