I think this is a feature request since I couln’t find it in the manual…
I would like to give the user of my solution the option to send his/her email via a button to the email address with an external email client like mail (OS X), outlook etc.
Is that possible? I think it is very much the same as showURL…
HJK:
Yep, I miss that feature too!
and with possibility to send attachements.
The same as in Filemaker
I’m currently building a newsletters management solution and having the mail stuff handled by the server is a great thing…
So, it would be nice to have them both
IT2BE:
I think this is a feature request since I couln’t find it in the manual…
I would like to give the user of my solution the option to send his/her email via a button to the email address with an external email client like mail (OS X), outlook etc.
Is that possible? I think it is very much the same as showURL…
Have you tried AppleScript on the Macintosh or VBScript on Windows? You should be able to invoke either using JavaScript. I don’t know if Servoy can invoke a script to run in the shell on os X but this would be quite cool as you could then output a script via JS then invoke the shell to run.
This would allow you to run shell scripts, Perl scripts and, of course, AppleScripts, which is osascript on the command line. Here is a good article on this stuff.
Jan, can JavaScript in Servoy invoke a shell script or VBScript?
mattman:
Jan, can JavaScript in Servoy invoke a shell script or VBScript?
Yes, you can use Application.executeProgram for that.
You guys DO understand what this means don’t you?
You can do pretty much ANYTHING you want (with limitations of permissions of course) You can invoke a Perl, Python, Sed, Awk and any of the various command line tools by calling a shell script.
Because you could carry your shell script within a field in the db, and output through a document write, you can store a SUPER WIDE variety of features and functionality. The sky’s the limit.
Of course, with email I would opt to use a JavaBean unless you really want to keep copies of the emails sent within the user’s email client. But you can store copies in the DB as well.
In addition to having a cliengt run a local program, such as with email, I also sometimes want the server to run an external program that is triggered by a client. Given Servoy’s design, I assume this would be easier than the client execution and is probably already doable.
I currently have a setup where FMP clients can cause the execution of a script running on a specific Filemaker Unlimited instance (using a plugin). This remote script maakes a DDE execute call to get a mapping program to produce a specific map. Since FM doesn’t support DDE Request, I then have to import the jpeg with another script after pausing a few seconds to let the map program complete. I have to make it slow so it will work even when the server is getting hit alot. This is an ugly approach.
So, I now need to do the same thing, and hopefully more elegantly with Servoy. Is it possible (and easy) to have a Servoy client cause the Servoy server to run a “local” script that interacts with a windows DDE program as described? Is there a new feature or plug-in needed for this. What are the platform considerations? I’m currently developing in OS X, running my backend database on Linux and the mapping software runs on Windoze. Yikes!
admin:
Most mapping programs support http get I think. You can use the http plugin to pull the image in.
Unfortunately, what I need is more complex than what you can get from a web-based programs (at least the ones that cost less than $20,000). basically, I’m plotting multiple points with concentric circles from a specific point showing the relationships between many geograaphic points on the map. I wish it was something that a mapquest.com could handle.
I’ve also spent considerable effort customizing the look and feel not to mention the work on the interface needed to produce the needed maps. It works now aand I don’t want to reinvent the wheel. What are my options?
I wasn’t referring to the free mapping servers out there. Also the more complex and paid for ones tend to offer an html interface, I don’t think there is a relation between complexity and the offering of an html interface. Can you explain more in detail how the mapping service/server works and what possibilities it offers for integration? Maybe it also offers a Java interface?
What I’ve seen is that there are three categories, free web sites, software packages, high end paackages with html interface. If you want to do more than just show maps for people to get to your stores in their area (the usual use) and want more control in addition to an http interface, it get’s pricey. As I recall, Microsoft’s product costs $20k to get the web interface. Anyway, this analysis was done about a year ago when I was just looking for a solution for Filemaker running in a solution for a client using the windows environment. If you know of other options, please let me know.
It would be great to have some way to trigger a server side script and also provide a mechanisw for that script to makes calls to the operating system the Servoy server runs on. An elegant way to pull this off would be to offer similar capabilities in both Client and Server for operating and file system access and allow us to set a property or name methods is a way that lets the target be the server of the client as the case may be. Then it is up to the developer to figure out how to use those tools on the server to make DDE calls or run shell scripts, apple scripts etc.
In this example, I’d like to be able to have a servoy client user click on a button to “show map”. A script would then tell the server to send a DDE Execute/Request command to the external application, passing the needed parameters. The map program would then provide a map jpeg which the servoy server would deliver to the client probably after it’s path (or a blob) is written to the database.
While I’m not offering aany clues on how to do this, it would be great if you could call a windows program from a Servoy server even if Servoy was running on a seperate Linux, OS X or Windows box and other combinations. It would be a shame if you had to implement a bunch of platform specific interfaces though. Since the client can already make DDE calls when runnning on a windows environment, perhaps you already figured out how to do that.
This whould be possible with a custom server plugin called by a client plugin, see the sample mail plugin (which is open source, source is in the jar) how this works.
Jan Blok:
This whould be possible with a custom server plugin called by a client plugin, see the sample mail plugin (which is open source, source is in the jar) how this works.