jsubiros Posted November 9, 2009 Posted November 9, 2009 Hello, I was trying to register that without scriptmaster database fp7, in my solution directly, by [color:red]registergroovy,... and cannot do it. It doesn't appear on external functions : . Do I have to call [color:orange]jar. library first On the other hand, For example, I did it with "selectfile" and was running good, but "sendEmail...." not. why? : : Thanks a lot...
Smef Posted November 9, 2009 Posted November 9, 2009 (edited) Yes, you will need to register the .jar using SMLoadJar(externaJar) before registering the function. You will need to load Mail.jar, which can be found in the jar libraries section of the ScriptMaster File. Edited November 9, 2009 by Guest
jsubiros Posted November 9, 2009 Author Posted November 9, 2009 Sorry, but You didn't understand me. I put the scriptmaster plugin correctly. So, I wanna register this plug-in not open and close (scriptmaster.fp7), I wannt register on my start script, with "registergroovy" external function. ... but I don't know how to do it. Thanks.
Smef Posted November 9, 2009 Posted November 9, 2009 Sorry about the confusion. I edited my post above, which should give you the information you are looking for.
jsubiros Posted November 9, 2009 Author Posted November 9, 2009 That's right How can I load it ?? SMLoadJar(externaJar) What do I have to put in "externalJar" [color:purple]parameter ?? thanks a lot. :)
Smef Posted November 9, 2009 Posted November 9, 2009 (edited) For the parameter for that function you can either specify a URL to the .jar file or a container field which stores the .jar file. I would recommend using a container if you only have a few .jars to load, so that you don't need to worry about having the jar available on all of your client machines. Edited November 9, 2009 by Guest
jsubiros Posted November 9, 2009 Author Posted November 9, 2009 THANKS A LOT, two questions more: 1) Can I send more than 1 [color:brown]attachment at the same time ?? 2) On the html body.... CAn I put fields, like "name" , "surname ?? Thanks a lot again :)
Smef Posted November 9, 2009 Posted November 9, 2009 1. ScriptMaster does not handle more than one attachement, but we could either customize it to do this for you, or you could try our Email plugin which does have this feature. 2. When you are calling the Send Email With Authentication function you can pass in whatever fields you like as parameters. Our example file uses the text fields on the left side of the layout, but when you are calling the function manually you can set it to be whichever field you like. If you want to have a mix of fixed text and filemaker fields I would recommend creating a new calculation field which you would use to create the body and include your filemaker fields.
jsubiros Posted November 11, 2009 Author Posted November 11, 2009 I'm sorry, but I don't know how to do [color:blue]html body with fields of my database. I did a txt field with html code, but i don't know how I have to put different fields mixed with html body. Can you explain me better ?? Thanks a lot. :)
Smef Posted November 11, 2009 Posted November 11, 2009 As I mentioned, you will need to do a calculation to mix text and fields. You can use an ampersand to concatenate text, fields, and functions. For example, you can have your calculation be: "Hello, my name is " & MyTable::FirstName & "!" which might return return: Hello, my name is David! A second option is to use a specific, distinct character set in your text field, such as "xxxxFirstNamexxxx" and then write a find-and-replace script to replace xxxxFirstNamexxxx with your field.
jsubiros Posted November 11, 2009 Author Posted November 11, 2009 [color:blue]"Hello, my name is " & MyTable::FirstName & "!"
Smef Posted November 11, 2009 Posted November 11, 2009 (edited) You need to extend your quotes so that your full html is included in the quotes. Edited November 11, 2009 by Guest
jsubiros Posted November 12, 2009 Author Posted November 12, 2009 (edited) [color:blue]"Hello, my name is " & MyTable::FirstName & "!" Edited November 12, 2009 by Guest
Smef Posted November 12, 2009 Posted November 12, 2009 You extended the quotes, but forgot to escape the quote characters within the quotes and make sure that your quotes all match up. I can do this script for you as a development project, if you are interested. I would like to take a look at your database to see what functionality you would like for your database to have before giving you a real estimate, but my initial guess for implementing the emailing functionality would probably be 1-2 hours of billed time. If you are interested in having 360Works do this for you, you can email me at [email protected] or call in to the office at 866-662-9185. 1
Recommended Posts
This topic is 5501 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