paramName corresponds to the name of an input in the HTML form, which may differ from the label for the field as it appears on-screen.
The paramName should match the name attribute on the <input type="text" name="my_input"> input element in the HTML source code.
In addition to field inputs, you can specify files to upload to a form using the WAUploadFileAtURL function.
Again, the inputName should match the name attribute on the <input type="file" name="my_upload"> in the HTML source code.
You can specify multiple parameters or file uploads. They will all be sent the next time the WAGetURL function is called.
For more advanced users, there is the option of setting the content of the request manually, using the WASetRawPostData function.
This will be sent as-is in the request, which is useful if (for example) the POST data should contain an XML document instead of key/value pairs. You are responsible for encoding this information correctly, as it will be sent as-is to the URL.
Let ( setup = WAReset & WASetInputValue( "first_name" ; "Sam" ) & WASetInputValue( "last_name" ; "Barnum" ) & WASetInputValue( "email" ; "sam@example.com" ) ; WAGetURL( "http://example.com/test/signup.php" ) )
To get an image from a password-protected website, just use the following calculation:
Let ( setup = WAReset ; WAGetURL( "http://example.com/images/logo.jpg" ; "bob123", "secretpass" ) )
To upload files to a web form, pass container data to the WASetInputValue function, or a URL to the WAUploadFileAtURL function:
Let ( setup = WAReset ; WASetInputValue( "upload1" ; Products::picture_container ) & WAUploadFileAtURL( "upload2" ; "file:///Users/sam/Pictures/header.jpg" ) ; WAGetURL( "http://example.com/upload.php" ) )
FileMaker version 7 or higher.
Java Virtual Machine (JVM) version 1.4.2 or later. If you are running a JVM earlier than 1.4.2, you should upgrade. Download a JVM from http://www.java.com/en/download/. If you are not sure what version of Java you have installed, you can do 'java -version' on the command line in Windows or OS X.
Windows, or Mac OS X version 10.4 or higher.
Note to intel Mac users: running this plugin under Rosetta is not supported. Upgrade to FileMaker 8.5 to run our plugin in native Intel mode.
Drag the plugin from the MAC or WIN folder into your FileMaker extensions, and restart FileMaker. You will need to enter your license key before you can use it. After FileMaker starts up with the plugin installed, open FileMaker preferences, click on the Plug-ins tab, select the plugin from the list, and click the Configure button. Enter your license key and company name in this dialog. You will only need to do this once on a given machine. Alternately, you can use the registration function to register the plugin during a startup script.
This will also enable the plugin for use with Instant Web Publishing from the FileMaker Pro client software.
If the plugin does not load correctly, double-check that you meet the system requirements.
You do not need to do this step unless you plan on using the plugin with Instant Web Publishing or Custom Web Publishing with FileMaker Server Advanced. You will need an Enterprise License to use this feature.
For installing into the Web Publishing Engine with FileMaker 9 Server or FileMaker Server Advanced, drag the plugin from the MAC or WIN folder into the FileMaker Server/Web Publishing/publishing-engine/wpc/Plugins folder. If there is no 'Plugins' folder inside the 'wpc' folder, then create it manually. Restart FileMaker Web Publishing, and now the plugins should be ready to go.
Note that you must use the registration function to register the plugin, since there is no preferences dialog in the FileMaker Web Publishing Engine to enter the license key and company name.
Note that due to a bug which we and other plugin vendors have reported to FileMaker, web plugins do not work in FileMaker Web Publishing Engine 8.0v4 on Mac OS X. You will need to use a later version, like 9, or an earlier version, like 8.0v3. The Windows FileMaker Server 8.0v4 does not have this bug, and will work correctly.
The easiest way to test whether the plugin is working is to have a calculation which calls the version function of the plugin, and display that on an IWP layout. If it shows "?", then the plugin is not working. If it shows a number, then the plugin has been installed successfully.
You do not need to do this step unless you plan on using the plugin with scheduled script triggering, a new feature in FileMaker Server 9. You will need an Enterprise License to use this feature.
FileMaker Server/Database Server/Extensions folder (Server 8 and older versions of server use the path FileMaker Server/Extensions/Plugins).Configuration -> Database Server->Server Plug-ins.
Note that you must use the registration function to register the plugin, since there is no preferences dialog in FileMaker Server to enter the license key and company name.
We love to hear your suggestions for improving our products! If you are experiencing problems with this plugin, or have a feature request, or are happy with it, we'd appreciate hearing about it. Send us a message on our website, or email us!
https urls.SO_TIMEOUT) in milliseconds which is the timeout for waiting for data. A timeout value of zero (the default value) is interpreted as an infinite timeout.optionName - the optionName to set.value - the value of the optionName.headerName - the name of the HTTP header to fetchname, or null if no such header was found.
POST request.
Otherwise, a GET request is used to get the contents of the URL.
You can also use this to get the contents of files on your local machine, using the following syntax: file:///path/to/file.txt.
If the content type of the returned data is text, this function returns the text. Otherwise, a container is returned.
You can optionally supply a username and password, for accessing password-protected content. This must be passed in with each request, as the values are cleared out after doing the request.
url - the location of the file to get.username - optional username for authentication purposespassword - optional password for authentication purposesnull if there was no error.
Calling this function will scan the HTML parameter text for the form identified by the whichForm parameter.
For every input element in the specified form, WASetInputValue will be called with the corresponding inputName and value.
html - block of HTML code containing one or more <form>swhichForm - the optional id, name, or index of the form to use. If omitted, the first <form> will be used.ERROR on failure.
licenseKey - a valid license key string, or the literal string "DEMO" to run in demo mode.registeredTo - the company name for the license key used.charset - a character set name, for example US-ASCII, ISO-8859-1, UTF-8, UTF-16.WASetInputValue( "email" ; Contacts::emailAddress )
To send a container field as an attachment, pass the container field as the value.
WASetInputValue( "photo" ; Contacts::portrait )
If you want to upload the contents of a local file or URL instead of a container, use the WAUploadFileAtURL function instead.
You can call this function multiple times before sending a form. If called twice with the same inputName, this will _not_ overwrite the previous value, but will send both values.
inputName - the unencoded name of the form inputvalue - the unencoded value text, or a container to send as an upload.GET arguments instead of POST arguments.
You cannot combine this with calls to WAUploadFileAtURL in the same request.
You can call this function multiple times before sending a form.
POST - raw encoded POST data to send in the next request.headerName, and the cookie data as the value.
WASetRequestHeader("Cookie", "sessionID=123456789;style=basic")
headerName - the name of the HTTP header to setvalue - the value of the HTTP headerhtml - some HTML.multipart/form-data.
If you want to upload the contents of a container field instead of a URL, use the WASetInputValue function instead, passing the container as the value parameter.
inputName - the input name to associate with this file.url - URL pointing to a file to upload. This can be a local file (file:///path/to/file) as well as a remote URL (http://example.com/logo.jpg).