kshack201 Posted July 13, 2004 Posted July 13, 2004 [color:"blue"]Is it possible to call a file maker script through a custom function? Or import a xml file from a website through a custom function? Reason I need this is because I have filemaker tied to a program called PCMiler to give me the distance from one zip code to another through XML. I got this to work fine with a script and button but I would really like it to be automatic (with a function). As soon as they fill in the 2 zip code fields It would call a function that imports the data or calls a script... But is this possible ?!? (I hope it is)
rogermax Posted July 13, 2004 Posted July 13, 2004 I think the example plugin that comes with Dev7 would allow you to call the script on exit from the second field. If you don't have Developer then you can get it from DatabasePros website. othe messages on the forum have given this message. I don't think you can call it from a custom function, but would be cool if someone else has creatively found a way.
kshack201 Posted July 14, 2004 Author Posted July 14, 2004 hmm I got filemaker 7 developer and the only plug in come with is the autoupdate plugin. Auto update plugin doesnt do that but is there another plugin I didnt see? whats the name of it?
Fenton Posted July 14, 2004 Posted July 14, 2004 I believe it's on the CD, not installed by default. But it's also on the databasepros web site, in an example file. For PCs it's WinExample.fmx.
MoonShadow Posted July 14, 2004 Posted July 14, 2004 I'd be careful depending upon that 'free' plugin. Here is a reference link you might find interesting: CobaltSky on Cafe' And this one explains a bit more.
Fenton Posted July 14, 2004 Posted July 14, 2004 Good heads up. It's true that the example plug-in is dangerous. It's one reason why FileMaker has never included this functionality directly; because even with parameters it's nowhere near idiot-proof. It's also probably the reason they make you explicitly look for and install it. I have not used the free one for any client's files, just messed about with it. What I find generally is that when you want a script to run on field exit, there is usually more than 1 field involved. It would be silly to run a script for each field; it makes more sense to design the interface with a trap and run the script once. Yes, it means some extra work, and yes, there's usually a button involved. But I don't see much alernative, plug-in or no plug-in. Another factor is that the existing commercial plug-ins for this functionality are kind of expensive. Hopefully the new API's of version 7 will enable less complex development and lower prices. I would prefer to use an inexpensive commercial plug-in rather than a simplistic free example. But I couldn't justify, to my rather cheap clients (not you, if you're reading -), much cost for something I only used in one or two places, which could have been done another (but perhaps less elegant) way.
Recommended Posts
This topic is 7504 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 accountSign in
Already have an account? Sign in here.
Sign In Now