2

I was hoping to calculate fields using some rather complicated functions, which I don't think I can realistically write in filemaker.

I would prefer to write a script to extract data into python, perform some procedures and then import it back into filemaker (so a user can see the results "live" in layouts, without having to leave filemaker).

Is this possible in Filemaker Pro?

Andy Hayden
  • 359,921
  • 101
  • 625
  • 535

3 Answers3

3

I have a FileMaker plug-in called bBox that executes Python code. Mac OS X only, but a free download at http://beezwax.net/bbox.

It has these Python related functions:

  • bBox_PythonCompile ( mode; script )
  • bBox_PythonExecute ( mode )
  • bBox_PythonFinalize
  • bBox_PythonGetVar ( name {; asType) }
  • bBox_PythonSetVar ( name; value {; asType} )

A few parts are admittedly still a bit rough. The types that the GetVar and SetVar functions can work with are limited, for example. But the code has been out for a while with only a few reported issues, all since fixed.

I've worked with a couple solutions that used pyFilemaker with good results. It isn't getting much attention these days. On the other hand, there haven't been many external changes to FileMaker's XML interface either.

Simon
  • 174
  • 1
  • 3
3

That python module is meant to work with FileMaker server: send GET/POST requests, get back response in XML, and parse it. Technically you can use it to do a lot (add and delete records, run scripts, etc.) but in your case it won't fit.

There are some plug-ins that can execute shell commands, so this way you can call Python from a command line. Other than that you cannot do this.

But in some time (a few months) there will be a FileMaker plug-in with embedded Python :)

Mikhail Edoshin
  • 2,639
  • 16
  • 25
0

You may want to checkout PyFileMaker (python object wrapper for FM.) It enables you to access/edit FileMaker server database.

cmelan
  • 247
  • 5
  • 13