-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call FileMaker-Scripts #41
Comments
UPDATE config/filemaker.yml
|
Hey @chmich , sorry I missed this post, I'm not sure if I fully understand the problem you're trying to solve. Is it an issue with Rfm's implementation or with a missing functionality of Filemaker's XML interface? Or maybe both? Version 4 of RFM will have some significant changes. Most notably, it splits the query code, the xml parsing, and the data modeling into separate modules (or likely separate gems). This should make it more flexible and more sustainable into the future. It should also make it simpler to set-up, configure, and make calls to FM Server. I imagine a REST API implementation would just be another module in the new Rfm "suite". However... I can't tell yet if the REST/JSON API is a viable replacement for the XML interface. Without the metadata in the JSON response, Rfm would not be able to translate data types between Filemaker and Ruby. They did add perform-script in FM Server 17, but I haven't experimented with it yet. Looks like it has the same requirements as the XML API (including a layout name). |
Hi ginjo, thanks for your reply! Situation is:
By reading and writing records, from rails by FileMaker-Script you have no problem if a FileMaker-developer changes a filed-name. In XML, you have a problem. Its more work for the developer on this way, but then its stable. For the case, you are interested to implement this feature in your gem, i updated my above script to my current version. Best Regards, |
Dear, makers of this really smart gem!
Could it be possible to implement a new feature?
Altough your gem is made to deal with records, it could be the a fine tool to call FileMaker-Scripts on the FileMaker-Server and get the results back?
I know, like many things in FileMaker, this would be a fairish hack, but a great help for many cases.
Situation:
In near Future, it may be that with the restFM-Interface, the dealing with Scripts would become easier, but there are a lot of older versions running and there are reasons to maintain a older Version and don't update.
Examples: In File-Maker its common to rename Fields. If you have a big system with a lot fo xml-Interfaces and a 100% FileMaker-Developer in the team or the chief of the company also develops in the System, you can tell them 100 times that it's not allowed to rename Fields - you will have a problem.
If you want to push larger texts to a older FileMaker, it can not receive by 'put', so it blocks. You have to call a FileMaker-Script, which gets it by 'get'.
This are only two examples - there are more reasons.
To call a FileMaker-Script over the XML - Interface, you have to call a layout, and then you can call a script see: XML-Interface (url: "..&-script="). This is the easier part.
More complex is to deliver back the result over the xml-interface:
You have to call the Script by ".prefind", then give a UID with the parameter, the FileMaker-Script does his work, creates a record with this uid and the result, and in the same step, the XML - Interface finds and picks up this record and delivers it back within the xml - result. Yes, sorry, this is a real Hack!! But, this steps could be implemented once in this gem and given a description or a example for the FileMaker-Side. I've written such a logic in Xojo for interacting with FileMaker and it works very stable and also on the older FileMaker-versions.
If this FileMaker-Script runs with full privileges, it is then able to do anything on the FileMaker-Side, also on other layouts and Tables.
Problem: give Script-Parameters to FileMaker
In the XML - interface, FileMaker can only receive a single Script-Parameter in one string.
Since FileMaker-16, fileMaker can deal with json. To have Json-Ability on older Versions you can install Base-Elements on FileMaker-Server. A other way to give FileMaker multiple Script-Parameters is to deal with Custom-Functions. One Example, i've written, i've attached.
If you or we can implement this new Feature to this gem, i could deliver the counterpart as a example-FileMaker-File and we could deliver this with your gem.
Many thanks and best Regards in advance,
chmich
SetPar_Demo.fmp12.zip
The text was updated successfully, but these errors were encountered: